OFFSET
0,11
LINKS
EXAMPLE
For n = 5:
- the binary representation of 5 is "101",
- the possible values for (x, y), restricted to x >= y without loss of generality, are:
bin(5) x y min(x, y)
------- - - ---------
"101" 5 0 0
"1/01" 1 1 1
"10/1" 2 1 1
"1/0/1" 3 0 0
- hence a(5) = 1.
PROG
(C) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 04 2020
STATUS
approved