OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
Benoit Cloitre, N. J. A. Sloane and Matthew J. Vandermast, Numerical analogues of Aronson's sequence, J. Integer Seqs., Vol. 6 (2003), #03.2.2.
Benoit Cloitre, N. J. A. Sloane and Matthew J. Vandermast, Numerical analogues of Aronson's sequence, arXiv:math/0305308 [math.NT], 2003.
FORMULA
It appears that a(n) is asymptotic to c*n where c=2.36... is the largest root of q^2-3*q+3/2 = 0.
MATHEMATICA
a[1] = 1;
a[n_] := a[n] = If[MemberQ[Array[a, n-1], n], If[OddQ[n], a[n-1]+1, a[n-1]+2], a[n-1]+3];
Array[a, 60] (* Jean-François Alcover, Feb 13 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Mar 23 2003
STATUS
approved