OFFSET
0,4
COMMENTS
As 0 and 1 are squares, we can always split the binary representation of a number into squares, and the sequence is well defined.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..16384
Rémy Sigrist, Density plot of the first 2^20 terms
Rémy Sigrist, PARI program for A331362
EXAMPLE
For n = 8:
- the binary representation of 8 is "1000",
- we can split it into "100" and "0" (2^2 and 0^2),
- or into "1" and "0" and "0" and "0" (1^2 and 0^2 and 0^2 and 0^2),
- so a(8) = max(2+0, 1+0+0+0) = 2.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 14 2020
STATUS
approved