login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A078657 Expansion of 1/Product_{ n >= 2, n not of the form 2^k-1 } (1 - x^n). 2
1, 0, 1, 0, 2, 1, 3, 1, 5, 3, 8, 5, 12, 9, 18, 14, 27, 23, 40, 35, 58, 54, 84, 80, 120, 118, 170, 171, 239, 246, 334, 347, 463, 489, 638, 680, 873, 940, 1189, 1288, 1609, 1755, 2167, 2374, 2903, 3196, 3872, 4275, 5140, 5692, 6795, 7540, 8944, 9945, 11729, 13057, 15321, 17077 (list; graph; refs; listen; history; text; internal format)
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
LINKS
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
Cf. A078658.
Sequence in context: A330547 A338357 A338358 * A080959 A065548 A152063
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 15 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 11:35 EDT 2024. Contains 371912 sequences. (Running on oeis4.)