OFFSET
0,4
COMMENTS
This sequence is a variant of A331362.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8192
Rémy Sigrist, PARI program for A331470
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
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 17 2020
STATUS
approved