OFFSET
1,4
MATHEMATICA
nxt[{n_, a_}]:=Module[{divs=Reverse[Divisors[n+1]]}, {n+1, a*SelectFirst[ divs, #<=Sqrt[n+1]&]}]; Transpose[NestList[nxt, {1, 1}, 40]][[2]] (* The program uses the SelectFirst function from Mathematica version 10 *) (* Harvey P. Dale, Jun 12 2015 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jul 13 2002
EXTENSIONS
PARI program from Michael B. Porter, Jan 30 2010
STATUS
approved