OFFSET
2,1
EXAMPLE
If n is prime q > 2, then a(n) = gcd(q^2, 2q) = q.
MATHEMATICA
PrimeFactors[n_Integer] := Flatten[ Table[ # [[1]], {1}] & /@ FactorInteger[n]]; f[n_] := Block[{pf = PrimeFactors[n]}, GCD[pf[[1]] + pf[[ -1]], pf[[1]]*pf[[ -1]] ]]; Table[ f[n], {n, 2, 97}] (* Robert G. Wilson v, Nov 04 2004 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Oct 28 2004
STATUS
approved