[go: up one dir, main page]

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!)
Revision History for A155575 (Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A155575 Intersection of A000404 and A154778: N = a^2 + b^2 = c^2 + 5d^2 for some positive integers a,b,c,d.
(history; published version)
#4 by Charles R Greathouse IV at Sat Jul 14 11:32:23 EDT 2012
AUTHOR

_M. F. Hasler (www.univ-ag.fr/~mhasler), _, Jan 25 2009

Discussion
Sat Jul 14 11:32
OEIS Server: https://oeis.org/edit/global/1815
#3 by N. J. A. Sloane at Sun Jul 11 03:00:00 EDT 2010
KEYWORD

easy,nonn,new

AUTHOR

M. F. Hasler (MHasler(AT)www.univ-ag.fr/~mhasler), Jan 25 2009

#2 by N. J. A. Sloane at Tue Jun 01 03:00:00 EDT 2010
PROG

(PARI) isA155575(n, /* optional 2nd arg allows us to get other sequences */c=[5, 1]) = { for(i=1, #c, for(b=1, sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return); 1}

KEYWORD

easy,nonn,new

#1 by N. J. A. Sloane at Fri Feb 27 03:00:00 EST 2009
NAME

Intersection of A000404 and A154778: N = a^2 + b^2 = c^2 + 5d^2 for some positive integers a,b,c,d.

DATA

29, 41, 45, 61, 89, 101, 109, 116, 145, 149, 164, 180, 181, 205, 225, 229, 241, 244, 245, 261, 269, 281, 305, 349, 356, 369, 389, 401, 404, 405, 409, 421, 436, 445, 449, 461, 464, 505, 509, 521, 541, 545, 549, 569, 580, 596, 601, 641, 656, 661, 701, 709, 720

OFFSET

1,1

COMMENTS

Subsequence of A155565 (where a,b,c,d may be zero).

PROG

(PARI) isA155575(n, /* optional 2nd arg allows to get other sequences */c=[5, 1]) = { for(i=1, #c, for(b=1, sqrtint((n-1)\c[i]), issquare(n-c[i]*b^2) & next(2)); return); 1}

for( n=1, 999, isA155575(n) & print1(n", "))

CROSSREFS

Cf. A000404, A154777, A092572, A097268, A154778, A155716, A155717, A155560-A155578.

KEYWORD

easy,nonn

AUTHOR

M. F. Hasler (MHasler(AT)univ-ag.fr), Jan 25 2009

STATUS

approved

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 August 29 11:15 EDT 2024. Contains 375512 sequences. (Running on oeis4.)