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!)
A363241 Number of partitions of n with prime rank. 0
0, 0, 1, 1, 1, 3, 3, 6, 6, 10, 12, 19, 22, 33, 38, 54, 65, 91, 106, 145, 173, 228, 274, 356, 424, 545, 652, 823, 986, 1232, 1468, 1822, 2172, 2665, 3173, 3869, 4590, 5568, 6591, 7938, 9386, 11249, 13256, 15821, 18608, 22100, 25941, 30695, 35933, 42373, 49501, 58160, 67814, 79434, 92396, 107932 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
FORMULA
G.f.: (1/Product_{k>=1} (1-x^k)) * Sum_{k>=1} (-1)^(k-1) * x^(k*(3*k-1)/2) * (1-x^k) * Sum_{p prime} x^(k*p).
EXAMPLE
a(6) = 3 counts these partitions: 6, 5+1, 4+2.
MAPLE
b:= proc(n, i, c) option remember; `if`(i>n, 0, `if`(i=n,
`if`(isprime(i-c, 7), 1, 0), b(n-i, i, c+1)+b(n, i+1, c)))
end:
a:= n-> b(n, 1$2):
seq(a(n), n=1..56); # Alois P. Heinz, May 23 2023
PROG
(PARI) my(N=60, x='x+O('x^N)); concat([0, 0], Vec(1/prod(k=1, N, 1-x^k)*sum(k=1, N, (-1)^(k-1)*x^(k*(3*k-1)/2)*(1-x^k)*sum(j=1, N, isprime(j)*x^(k*j)))))
CROSSREFS
Sequence in context: A237665 A355394 A088528 * A220153 A219627 A340571
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, May 23 2023
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 13:51 EDT 2024. Contains 371914 sequences. (Running on oeis4.)