r/logicbox • u/[deleted] • May 29 '15
Trademarking a Fractions challenge level!
Simplify Nested Fractions
Objective: Simplify the nested fraction to lowest terms.
Comments: A nested fraction is a fraction packed with another fraction, nested or not. Some examples:
[3 5] is (3/5),
[[3 5][2 4]] is ((3/5)/(2/4)) (simplifies to 6/5),
[[[6 9][[2 5][9 5]]][[3 4][4 5]]] is (((6/9)/((2/5)/(9/5)))/((3/4)/(4/5))) (simplifies to 16/5).
Visualized: http://i.imgur.com/yNeuani.png