OFFSET
1,1
COMMENTS
If a(n)=1, then n is either square or twice a square.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
MATHEMATICA
sep[n_]:=Module[{s=DivisorSigma[1, n], e=EulerPhi[n]}, GCD[s+e, s-e]]; Array[sep, 100] (* Harvey P. Dale, Jun 17 2011 *)
PROG
(PARI) a(n)=my(f=factor(n), s=sigma(f), p=eulerphi(f)); gcd(2*p, s-p) \\ Charles R Greathouse IV, Jan 02 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 06 2002
EXTENSIONS
Edited by Dean Hickerson, Nov 07 2002
STATUS
approved