Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
Line 12: Line 12:
(to get it written down)
(to get it written down)


Begin with a nested table of ratios, with the nested table containing the ratio 1/1.
Begin with a nested table of ratios, with the nested table containing the ratio 1/1. Use this table to keep track of all found ratios, where 1/1 is the initial ratio.


Given a subgroup (as a table of whole numbers and/or ratios) and an int limit, repeat the following until the following until no new ratios can be found.
Given a subgroup (as a table of whole numbers and/or ratios), equave, and an int limit, repeat the following until the following until no new ratios can be found.
* Create an empty table to keep track of products of ratios.
* For each ratio in the last table in the nested table and for each member in the subgroup, find the product of that ratio and that subgroup member and insert it to the table of products. Simplify any new ratios and do not add duplicates.


== Main mindset ==
== Main mindset ==