OFFSET
1,2
COMMENTS
Also equal to the sum of all divisors of n (in Z[i]) having positive real part. - M. F. Hasler, Nov 22 2007
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..1000.
Project Euler, Problem 153: Investigating Gaussian Integers.
PROG
(PARI) A078930(n, S=[])=sigma(n)+sumdiv(n*I, d, if(real(d)&imag(d)&!setsearch(S, d=vecsort(abs([real(d), imag(d)]))), S=setunion(S, [d]); (d[1]+d[2])<<(d[1]!=d[2]))) - M. F. Hasler, Nov 22 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Jan 11 2003
STATUS
approved