OFFSET
1,1
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..1000, Jan 07 2019
FORMULA
a(n) = A184478(n) + s(n). - M. F. Hasler, Jan 07 2019
For n up to 1000 at least, a(n) = round(m*n + c) with m ~ 4.302774 and c ~ 0.268517. - M. F. Hasler, Jan 07 2019
MATHEMATICA
k=3; r=-1; d=Sqrt[4+k^2];
a[n_]:=Floor[(1/2)(d+2-k)(n+r/(d+2))];
b[n_]:=Floor[(1/2)(d+2+k)(n-r/(d+2))];
Table[a[n], {n, 120}]
Table[b[n], {n, 120}]
PROG
(PARI) A184479_upto(N, s(n)=3*n+1, U=[0], b=[])={until(b[#b]>=N, b=concat(b, s(1+#b)+U[1]+=1); U=setunion(U, [b[#b]]); while(#U>1 && U[2]==U[1]+1, U=U[^1])); b} \\ M. F. Hasler, Jan 07 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jan 15 2011
STATUS
approved