I want to nest each element inside the previous at the mid point. How can I do this by indexing a very large list?
{5/24,mid,19/24}/.mid-> {7/24,mid,17/24}/.mid-> {11/24,mid,13/24}
({5/24, {7/24, {11/24, mid, 13/24}, 17/24}, 19/24}) Yes, it's Goldbach that creates the lists. The sample is 5+19, 7+17 and 11+13 with the sum, 24, as the denominator. After the nest: we notice 5,7 on the left and 17,19 on the right. We put the sum of 17,19 divided by 2 (the mid point) into our solver to create the next chain link. I haven't shown any of that code, because the last time I did, I found out the ones who viewed were math phobic.
{a, mid, b}
, it's unclear where the a's and the b's come from or how the large list is to be modified. $\endgroup$mid
and the denominators, Thanks. $\endgroup$