OFFSET
1,2
COMMENTS
From Jean-Christophe Hervé, Nov 17 2013, (Start)
Squares or double of squares that are not sum of two distinct nonzero squares.
Numbers without prime factor of form 4k+1 and without prime factor of form 4k+3 to an odd multiplicity.
The sequence is closed under multiplication. Primitive elements are 1, 2 and square of primes of form 4k+3, that is union of {1, 2} and A087691.
LINKS
Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 18 2007, Table of n, a(n) for n = 1..501
G. Xiao, Two squares
FORMULA
Numbers of the form 2^e0 * 3^(2*e1) * 7^(2*e2) * 11^(2*e3) * ... * qk^(2*ek) where qk is the k-th prime of the form 4*n+3 (A002145). - Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 17 2007
PROG
(PARI) for(n=1, 100000, fctrs=factor(n); c=1; for(i=1, matsize(fctrs)[1], p4=fctrs[i, 1]%4; if(p4==1 || (p4==3 && fctrs[i, 2]%2==1), c=0)); if(c, print1(n", "))) \\ Herman Jamke (hermanjamke(AT)fastmail.fm), Dec 17 2007
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Jan 07 2007
STATUS
approved