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!)
A242349 Largest power of 2 <= n^2. 0
1, 4, 8, 16, 16, 32, 32, 64, 64, 64, 64, 128, 128, 128, 128, 256, 256, 256, 256, 256, 256, 256, 512, 512, 512, 512, 512, 512, 512, 512, 512, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 2048, 2048, 2048, 2048, 2048, 2048 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The first values of n that produce powers of 4 are precisely the powers of 2.
LINKS
EXAMPLE
a(3) = 8 because 3^2 = 9 and the largest power of 2 <= 9 is 8.
PROG
(PARI) a(n)=2^(#binary(n^2)-1) \\ Charles R Greathouse IV, May 11 2014
CROSSREFS
Sequence in context: A312764 A166634 A189007 * A309521 A072603 A123535
KEYWORD
nonn,easy
AUTHOR
J. Lowell, May 11 2014
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 20 18:27 EDT 2024. Contains 372720 sequences. (Running on oeis4.)