OFFSET
0,1
COMMENTS
The behavior of this sequence depends on a(0).
For a(0) in {1,4,7,9,19,27,34,47,52,59,63,66,69,71,105,133,147,178,183,202,...} we have a(n) = n.
For a(0) in {2,5,10,21,26,35,50,51,53,82,91,96,101,111,122,154,165,170,193,...} we have a(n) = n+2.
For other a(0) the sequence is "saw"-like with small irregular periods between saw teeths. For such a(0), a(n) < n/2.
LINKS
Indranil Ghosh, Table of n, a(n) for n = 0..50000
EXAMPLE
a(0)=3. a(1)=1+3/gcd(3,1)=4. a(2)=1+4/gcd(4,2)=3. a(3)=1+3/gcd(3,3)=2. etc
MATHEMATICA
FoldList[1+#1/GCD[#1, #2+1]&, 3, Range[0, 107]] (* Ivan N. Ianakiev, Jun 05 2015 *)
nxt[{n_, a_}]:={n+1, 1+a/GCD[a, n+1]}; NestList[nxt, {0, 3}, 110][[All, 2]] (* Harvey P. Dale, Jul 27 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, May 30 2015
EXTENSIONS
Typo in data corrected by Ivan N. Ianakiev, Jun 05 2015
STATUS
approved