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!)
A331470 a(n) is the greatest value of the form s_1^2 + ... + s_k^2 such that the concatenation of the binary representations of s_1^2, ..., s_k^2 equals the binary representation of n. 1
0, 1, 1, 2, 4, 2, 2, 3, 4, 9, 2, 3, 5, 3, 3, 4, 16, 5, 9, 10, 5, 3, 3, 4, 5, 25, 3, 4, 6, 4, 4, 5, 16, 17, 5, 6, 36, 10, 10, 11, 5, 10, 3, 4, 6, 4, 4, 5, 17, 49, 25, 26, 6, 4, 4, 5, 6, 26, 4, 5, 7, 5, 5, 6, 64, 17, 17, 18, 8, 6, 6, 7, 36, 37, 10, 11, 13, 11 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
This sequence is a variant of A331362.
LINKS
FORMULA
a(n) >= A000120(n) with equality iff n belongs to A003754.
a(n^2) = n^2.
EXAMPLE
For n = 12:
- the binary representation of 12 is "1100",
- we can split it into "1" and "1" and "0" and "0" (1^2 and 1^2 and 0^2 and 0^2),
- or into "1" and "100" (1^2 and 2^2),
- hence a(12) = max(2, 5) = 5.
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A218217 A218279 A183193 * A021809 A210210 A117007
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 17 2020
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 March 28 14:38 EDT 2024. Contains 371254 sequences. (Running on oeis4.)