Recamán's Sequence

A visualisation of Recamán's sequence, with the option to apply the same process to starting sequences other than the integers. Inspired by a Numberphile video (see below).




Animate




Note: I use a slightly different visualisation approach. Instead of the arcs alternating above and below the horizontal, I have them above for terms where the sequence is increasing, and below when decreasing.