OFFSET
0,3
LINKS
MATHEMATICA
nxt[{n_, a_}]:={n+1, If[Divisible[a, n], a/n^IntegerExponent[a, n], a*n]}; Join[ {1, 1}, Transpose[NestList[nxt, {3, 2}, 30]][[2]]] (* Harvey P. Dale, Jan 08 2013 *)
PROG
(Haskell)
a065422 n = a065422_list !! n
a065422_list = 1 : 1 : f 2 1 where
f n x = x' : f (n+1) x' where
x' | x `mod` n == 0 = until ((> 0) . (`mod` n)) (`div` n) x
| otherwise = x * n
-- Reinhard Zumkeller, Oct 10 2011
CROSSREFS
KEYWORD
AUTHOR
Naohiro Nomoto, Nov 23 2001
EXTENSIONS
Definition and offset corrected by Reinhard Zumkeller, Oct 10 2011
Typo in Crossrefs fixed by Paul Tek, Aug 01 2015
STATUS
approved