OFFSET
0,3
LINKS
R. J. Mathar, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = gcd(n, A000793(n)).
MATHEMATICA
b[n_, i_] := b[n, i] = Module[{p}, p = If[i < 1, 1, Prime[i]]; If[n == 0 || i < 1, 1, Max[b[n, i - 1], Table[p^j*b[n - p^j, i - 1], {j, 1, Log[p, n] // Floor}]]]]; g[n_] := b[n, If[n < 8, 3, PrimePi[Ceiling[1.328*Sqrt[n* Log[n] // Floor]]]]]; a[n_] := GCD[n, g[n]]; Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Mar 02 2016, after Alois P. Heinz *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 11 2013
STATUS
approved