OFFSET
0,3
COMMENTS
This sequence is a variant of Recamán's sequence (A005132).
Up to about 1.7 million terms the sequence values are concentrated along lines of integer gradient - see the image of the first 100000 terms. However beyond that each of these lines splits into two which subsequently cross and form a pattern reminiscent of a Cat's Cradle figure. See the linked images of the first 2 million and 20 million terms. - Scott R. Shannon, Jan 18 2021
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Scott R. Shannon, Image of the first 2 million terms. Note the splitting lines beyond about 1.7 million terms.
Scott R. Shannon, Image of the first 20 million terms.
Rémy Sigrist, Colored scatterplot of the sequence for n = 0..100000 (where the color is function of round(a(n)/n) for n > 0)
Rémy Sigrist, Scatterplot of the first 500000000 terms (the plot alternates phases with losanges (Cat's Cradle figures) and phases with lines that radiate from the origin)
Rémy Sigrist, Colored scatterplot of the first 2000000 terms (the color changes in one direction or the other according to whether one passes from a(n) to abs(a(n)-n) or to a(n)+n, with an inversion with each bounce on the X axis)
PROG
(PARI) { rr = 0; r = 0; for (n=0, 64, if (!bittest(rr, m=abs(r-n)), r = m, r = r+n; ); rr = bitor(rr, 2^r); print1 (r", ")) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, May 31 2020
STATUS
approved