OFFSET
1,2
COMMENTS
a(n)-n is eventually periodic with period 18. - Ivan Neretin, Mar 03 2016
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..1000
B. Cloitre, N. J. A. Sloane and M. J. Vandermast, Numerical analogues of Aronson's sequence, J. Integer Seqs., Vol. 6 (2003), #03.2.2.
B. Cloitre, N. J. A. Sloane and M. J. Vandermast, Numerical analogues of Aronson's sequence, arXiv:math/0305308 [math.NT], 2003.
MATHEMATICA
Fold[Append[#1, #1[[-1]] + If[MemberQ[#1, #2], -4, 5]] &, {1}, Range[2, 62]] (* Ivan Neretin, Mar 03 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 01 2003
STATUS
approved