OFFSET
1,2
COMMENTS
A high proportion of terms are the same as A004938, which is the nearest integer to n*r, where r=2+sqrt(5) as defined in the formula section. Allowing for the difference in offset, the first 3 terms to differ are those which have values 46, 63 and 118 instead of 47, 64 and 119. - Peter Munn, Aug 07 2019
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = floor(r*n-(5*r-1)/(r+1)) where r=2+sqrt(5).
MATHEMATICA
Clear[used]; used={}; nxt[{n_, a_}]:=Module[{c=If[MemberQ[ used, n+1], 5, 4]}, Flatten[ AppendTo[ used, a+c]]; {n+1, c+a}]; NestList[nxt, {1, 0}, 60][[All, 2]] (* Harvey P. Dale, Aug 16 2021 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Apr 11 2003
STATUS
approved