OFFSET
0,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..16384
Rémy Sigrist, PARI program for A331855
FORMULA
EXAMPLE
For n = 6:
- the binary representation of 6 is "110",
- we can split it in 4 ways:
"110" -> "011" -> 3
"1" and "10" -> "1" and "01" -> 5
"11" and "0" -> "11" and "0" -> 6
"1" and "1" and "0" -> "1" and "1" and "0" -> 6
- we have 3 distinct values,
- hence a(6) = 3.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 29 2020
STATUS
approved