OFFSET
1,1
FORMULA
a(n) = 2^n - A265642(n). - Altug Alkan, Dec 20 2015
EXAMPLE
For n = 4 there are 16 strings of length 4, of which 4 are powers: 0000, 1111, 0101, 1010, and 2 are the products of two powers: 0011, 1100. So a(4) = 10.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jeffrey Shallit, Dec 11 2015
EXTENSIONS
a(17)-a(34) from Lars Blomberg, Dec 20 2015
STATUS
approved