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!)
A162400 a(n) = the largest square that when represented in binary is a substring within the binary representation of n. 3
1, 1, 1, 4, 1, 1, 1, 4, 9, 1, 1, 4, 1, 1, 1, 16, 4, 9, 9, 4, 1, 1, 1, 4, 25, 1, 1, 4, 1, 1, 1, 16, 16, 4, 4, 36, 9, 9, 9, 4, 9, 1, 1, 4, 1, 1, 1, 16, 49, 25, 25, 4, 1, 1, 1, 4, 25, 1, 1, 4, 1, 1, 1, 64, 16, 16, 16, 4, 4, 4, 4, 36, 36, 9, 9, 9, 9, 9, 9, 16, 81, 9, 9, 4, 1, 1, 1, 4, 25, 1, 1, 4, 1, 1, 1, 16, 16, 49, 49, 100, 25 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
COMMENTS
a(n) = A162401(n)^2.
LINKS
FORMULA
From David A. Corneth, Nov 04 2017: (Start)
a(n^2) = n^2
a(4*n) = 4*a(n)
a(4*n + 2) = a(2*n + 1). (End)
EXAMPLE
a(8) = 4 since 8 = binary "1000" and the largest square less than or equal to 8, that of 4 = binary "100" appears as the first three bits of "1000". - Michael De Vlieger, Nov 04 2017
MATHEMATICA
Table[Block[{k = n, s}, While[SequenceCount[#, IntegerDigits[Set[s, k^2], 2]] == 0, k--]; s] &@ IntegerDigits[n, 2], {n, 101}] (* Michael De Vlieger, Nov 04 2017 *)
CROSSREFS
Cf. A162401.
Sequence in context: A083730 A358272 A008833 * A332012 A365788 A179054
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Jul 02 2009
EXTENSIONS
Corrected and extended by Sean A. Irvine, Dec 05 2010
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 April 16 16:13 EDT 2024. Contains 371749 sequences. (Running on oeis4.)