The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A051204 Nonnegative numbers of the form x^2-2^y. 23
0, 1, 2, 3, 4, 5, 7, 8, 9, 12, 14, 15, 16, 17, 20, 21, 23, 24, 28, 32, 33, 34, 35, 36, 41, 45, 47, 48, 49, 56, 57, 60, 62, 63, 64, 65, 68, 73, 77, 79, 80, 84, 89, 92, 96, 97, 98, 99, 105, 112, 113, 117, 119, 120, 128, 129, 132, 136, 137, 140, 142, 143, 144, 153, 161, 164 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
{n: A247763(n) > 0 }. - R. J. Mathar, Jul 24 2022
EXAMPLE
5 is in the sequence because 5 can be written as 3^2-2^2
MATHEMATICA
max = 200; Clear[f]; f[m_] := f[m] = Select[Table[x^2 - 2^y, {y, 0, m}, {x, Floor[2^(y/2)], Ceiling[Sqrt[2^y + max]]}] // Flatten // Union, 0 <= # <= max &]; f[1]; f[m = 2]; While[f[m] != f[m/2], m = 2 m]; Print["m = ", m]; A051204 = f[m] (* Jean-François Alcover, May 13 2017 *)
CROSSREFS
Cf. A051213.
Sequence in context: A287927 A241480 A211656 * A335154 A278181 A232566
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected by Henry Bottomley, Jul 24 2000
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 May 13 23:15 EDT 2024. Contains 372524 sequences. (Running on oeis4.)