OFFSET
1,2
COMMENTS
We can always split the binary representation of a number into powers of 2, so the sequence is well defined.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
Rémy Sigrist, PARI program for A331469
FORMULA
a(n) >= A162439(n).
a(n) <= n with equality iff n is a power of a prime.
EXAMPLE
For n = 22:
- the binary representation of 22 is "10110",
- we can split it into "10" and "1" and "10" (2^1 and 2^0 and 2^1),
- or into "101" and "10" (5^2 and 2^1),
- hence a(22) = max(5, 7) = 7.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 17 2020
STATUS
approved