OFFSET
1,2
MAPLE
A000961 := proc(n) option remember ; local a; if n = 1 then 1; else for a from procname(n-1)+1 do if nops( ifactors(a)[2] ) = 1 then RETURN(a); fi; od: fi; end: A025473 := proc(n) option remember ; if n <= 2 then n; else ifactors( A000961(n))[2] ; op(1, op(1, %)) ; fi; end: A137152 := proc(n) option remember ; local a, m, i; if n = 1 then RETURN([1]) ; else a := procname(n-1) ; m := A025473(n) ; for i from 1 to nops(a) do if gcd(op(i, a), m) <> 1 then m := m*op(i, a) ; a := subsop(i=1, a) ; fi; od; a := [op(a), m] ; fi; RETURN(a) ; end: A135524 := proc(n) add(k, k=A137152(n)) ; end: for n from 1 to 80 do printf("%d, ", A135524(n)) ; od: # R. J. Mathar, Dec 17 2008
CROSSREFS
KEYWORD
nonn
AUTHOR
Mats Granvik, Feb 19 2008
EXTENSIONS
More terms from R. J. Mathar, Dec 17 2008
STATUS
approved