OFFSET
1,2
COMMENTS
The formula could be generalized to a class of sequences as a(n)= A000005(A*a(n-1)+B) if a(n-1) is not divisible by C, else a(n)= a(n-1)/C, where A, B, C are integers. In this case we have A=n, B=0 and C=2.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
nxt[{n_, a_}]:={n+1, If[Mod[a, 2]==0, a/2, DivisorSigma[0, a(n+1)]]}; NestList[nxt, {1, 1}, 100][[;; , 2]] (* Harvey P. Dale, Oct 28 2025 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Jan 07 2008
EXTENSIONS
Edited, corrected, extended and Scheme-code added by Antti Karttunen, Oct 05 2009
STATUS
approved
