OFFSET
1,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
nxt[{n_, a_}]:={n+1, Which[PrimeQ[n+1], a, CompositeQ[n+1]&&Divisible[ a, n+1], a/(n+1), True, a(n+1)]}; NestList[nxt, {1, 1}, 40][[All, 2]] (* Harvey P. Dale, Nov 18 2020 *)
PROG
(PARI) b=1; for(n=2, 39, if(isprime(n), a=b, if(b%n==0, a=b/n, a=n*b)); print1(b, ", "); b=a)
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 01 2003
EXTENSIONS
Extended by Klaus Brockhaus and Ray Chandler, Oct 06 2003
STATUS
approved