OFFSET
1,4
COMMENTS
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
The smallest Gaussian primes with Re(z) >= Im(z) >= 0, ordered by norm, are 1+i, 2+i, 3, 3+i, ...
Their imaginary parts, listed here, are a(1) = 1, a(2) = 1, a(3) = 0, a(4) = 1,
PROG
(PARI) c=1; for(n=1, oo, matsize(f=factor(n*I))[1]<=2 && vecsum(f[, 2])==2+(f[1, 1]==I) && !write("/tmp/b300588.txt", c" "min(real(f=f[3-f[1, 2], 1]), imag(f))) && c++>1e4 && break) \\ Replace write("/tmp/b300588.txt", c" by print1(" to print the values.
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Mar 09 2018
STATUS
approved