OFFSET
0,3
LINKS
James A. Sellers, Feb 18 2008, Table of n, a(n) for n = 0..101
MAPLE
with(numtheory): a:=proc(n) option remember: if n = 0 or n = 1 then RETURN(1) fi: a(n-1) + a(n-ifactors(n)[2][1][1]): end: for i from 0 to 100 do printf(`%d, `, a(i)) od: # James A. Sellers, Feb 18 2008
MATHEMATICA
a = {1, 1}; Do[AppendTo[a, a[[ -1]] + a[[n - FactorInteger[n][[1, 1]] + 1]]], {n, 2, 70}]; a (* Stefan Steinerberger, Feb 14 2008 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 11 2008
EXTENSIONS
Corrected and extended by Stefan Steinerberger, Feb 14 2008
STATUS
approved