Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A154782
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A154782 Least integer y>=0 such that n+2y^2 is a square; -1 if n is not in A035251. +0
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; listen)
OFFSET

0,9

PROGRAM

(PARI) A154782(n)={for(y=0, sqrtint(n\2), issquare(n+2*y^2)&return(y)); -1}

CROSSREFS

Cf. A035251.

Sequence in context: A056175 A105241 A134541 this_sequence A144474 A070200 A025914

Adjacent sequences: A154779 A154780 A154781 this_sequence A154783 A154784 A154785

KEYWORD

sign

AUTHOR

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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research