OFFSET
1,3
EXAMPLE
(1,1,2,3,4,1,6,6,4,3,2) is gcd(a(k),12), for 1 <= k <= 11. Of these integers, nine are squarefree, so a(12) = 9.
MATHEMATICA
sf[n_] := Max @@ Last /@ FactorInteger[n] < 2; f[s_] := Append[s, Length @ Select[s, sf[GCD[ #, Length[s] + 1]] &]]; Nest[f, {1}, 40] (* Ray Chandler, Aug 24 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 23 2006
EXTENSIONS
Extended by Ray Chandler, Aug 24 2006
STATUS
approved