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!)
A154782 Least integer y>=0 such that n+2y^2 is a square; -1 if n is not in A035251. 1
0, 0, 1, -1, 0, -1, -1, 1, 2, 0, -1, -1, -1, -1, 1, -1, 0, 2, 3, -1, -1, -1, -1, 1, -1, 0, -1, -1, 2, -1, -1, 3, 4, -1, 1, -1, 0, -1, -1, -1, -1, 2, -1, -1, -1, -1, 3, 1, -1, 0, 5, -1, -1, -1, -1, -1, 2, -1, -1, -1, -1, -1, 1, 3, 0, -1, -1, -1, 4, -1, -1, 5, 6, 2, -1, -1, -1, -1, -1, 1, -1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,9
LINKS
PROG
(PARI) A154782(n)={for(y=0, sqrtint(n\2), issquare(n+2*y^2)&return(y)); -1}
CROSSREFS
Cf. A035251.
Sequence in context: A182071 A317992 A228085 * A265196 A171157 A194301
KEYWORD
sign
AUTHOR
M. F. Hasler, Jan 19 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 July 22 22:22 EDT 2024. Contains 374544 sequences. (Running on oeis4.)