OFFSET
0,5
COMMENTS
a(n) counts the partitions of n where no part has the form 2^k - 1 for a positive integer k. - Brian Hopkins, Jul 21 2017
EXAMPLE
The a(9) = 3 allowed partitions of 9 are (9), (5,4), and (5,2,2).
PROG
(PARI) isok(p) = {for (i=1, #p, if ((p[i]==1) || (ispower(p[i]+1, , &t) && (t==2)), return (0)); ); return(1); }
a(n) = {my(nb = 0); forpart(p=n, nb += isok(p); ); nb; } \\ Michel Marcus, Jul 22 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 15 2002
STATUS
approved