login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A057653 Odd numbers of form x^2 + y^2. 13

%I #36 Jun 28 2022 17:31:54

%S 1,5,9,13,17,25,29,37,41,45,49,53,61,65,73,81,85,89,97,101,109,113,

%T 117,121,125,137,145,149,153,157,169,173,181,185,193,197,205,221,225,

%U 229,233,241,245,257,261,265,269,277,281,289,293,305,313,317,325,333,337

%N Odd numbers of form x^2 + y^2.

%C Numbers with only odd prime factors and such that all prime factors congruent to 3 modulo 4 occur to an even exponent. - _Jean-Christophe Hervé_, Oct 24 2015

%C Odd terms of A020668. - _Altug Alkan_, Nov 19 2015

%C Also one half of the numbers that are the sum of two odd squares (without multiplicity). See A097269 for twice the numbers. - _Wolfdieter Lang_, Jan 12 2017

%H Jean-Christophe Hervé, <a href="/A057653/b057653.txt">Table of n, a(n) for n = 1..4000</a>

%H Joerg Arndt, <a href="https://arxiv.org/abs/1607.02433">Plane-filling curves on all uniform grids</a>, arXiv preprint arXiv:1607.02433 [math.CO], 2016.

%H J. H. Conway, E. M. Rains and N. J. A. Sloane, On the existence of similar sublattices, Canad. J. Math. 51 (1999), 1300-1306 (<a href="http://neilsloane.com/doc/sim.txt">Abstract</a>, <a href="http://neilsloane.com/doc/sim.pdf">pdf</a>, <a href="http://neilsloane.com/doc/sim.ps">ps</a>).

%F n = odd square * {product of distinct primes == 1 (mod 4)}.

%F a(n) = A097269(n)/2. - _Wolfdieter Lang_, Jan 12 2017

%p readlib(issqr): for n from 1 to 1001 by 2 do for k from 0 to floor(sqrt(n)) do if issqr(n-k^2) then printf(`%d,`,n); break fi; od:od:

%t fQ[n_] := Length@ Catch@ Do[If[IntegerQ@ Sqrt[n - k^2], Throw[{k, Sqrt[n - k^2]}], Nothing], {k, Floor[Sqrt@ n]^2}] != 0; Select[Range[1, 340, 2], fQ] (* _Michael De Vlieger_, Nov 13 2015 *)

%o (PARI) isok(n)=my(f=factor(n)); for(i=1, #f[, 1], if(f[i, 2]%2 && f[i, 1]%4==3, return(0))); 1;

%o for(n=1, 1e3, if(isok(n) && n%2==1, print1(n", "))) \\ _Altug Alkan_, Nov 13 2015

%o (PARI) for(n=0, 1e3, if(if( n<1, n==0, 2 * qfrep([ 1, 0; 0, 4], n)[n]) != 0 && n%2==1, print1(n, ", "))) \\ _Altug Alkan_, Nov 19 2015

%o (Python)

%o from itertools import count, islice

%o from sympy import factorint

%o def A057653_gen(): # generator of terms

%o return filter(lambda n:all(p & 3 != 3 or e & 1 == 0 for p, e in factorint(n).items()),count(1,2))

%o A057653_list = list(islice(A057653_gen(),30)) # _Chai Wah Wu_, Jun 28 2022

%Y Odd members of A001481.

%Y Odd members of A020668.

%Y Complement of A084109 in 4k+1 numbers (A016813).

%Y Cf. A016754 (odd squares), A097269.

%K nonn

%O 1,2

%A _N. J. A. Sloane_, Oct 15 2000

%E More terms from _James A. Sellers_, Oct 16 2000

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)