OFFSET
1,2
COMMENTS
At the vast majority of positions the term is changed at most once, but at some positions a change occurs twice. An example is position 20. In step 4 the term at position 4 + a(4) = 8 is changed to 8 + a(4) = 12; in step 8 the term at position 8 + a(8) = 20 is changed to 20 + a(8) = 32; in step 10 the term at position 10 + a(10) = 20 is changed to a(20) + a(10) = 32 + 10 = 42.
The first position where the term is changed three times is 3498. [Klaus Brockhaus, Apr 23 2008]
The first position where the term is changed four times is 1024914. [Rémy Sigrist, Mar 11 2017]
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Scatterplot of first 2000000 terms
MATHEMATICA
Block[{a, nn = 71}, a = Range[Max[3, IntegerLength[nn]] nn]; Do[a[[n + a[[n]]]] = a[[n + a[[n]]]] + a[[n]], {n, nn}]; a[[1 ;; nn]] ] (* Michael De Vlieger, Jul 28 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ctibor O. Zizka, Apr 16 2008
EXTENSIONS
Extended by Klaus Brockhaus, Apr 23 2008
STATUS
approved