The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A341978 Number of partitions of n into 7 distinct primes (counting 1 as a prime). 5
1, 0, 0, 0, 1, 0, 2, 0, 1, 0, 2, 0, 4, 0, 2, 1, 6, 1, 7, 0, 5, 2, 8, 1, 11, 1, 10, 4, 15, 3, 18, 3, 17, 7, 22, 6, 28, 6, 25, 11, 35, 11, 40, 11, 38, 19, 50, 18, 56, 18, 54, 30, 70, 28, 74, 30, 78, 45, 92, 40, 100, 46, 104, 63, 123, 60, 133, 69, 140, 88, 157, 86, 173 (list; graph; refs; listen; history; text; internal format)
OFFSET
42,7
LINKS
MAPLE
b:= proc(n, i) option remember; series(`if`(n=0, 1,
`if`(i<0, 0, (p-> `if`(p>n, 0, x*b(n-p, i-1)))(
`if`(i=0, 1, ithprime(i)))+b(n, i-1))), x, 8)
end:
a:= n-> coeff(b(n, numtheory[pi](n)), x, 7):
seq(a(n), n=42..114); # Alois P. Heinz, Feb 24 2021
MATHEMATICA
b[n_, i_] := b[n, i] = Series[If[n == 0, 1,
If[i < 0, 0, Function[p, If[p > n, 0, x*b[n - p, i - 1]]][
If[i == 0, 1, Prime[i]]] + b[n, i - 1]]], {x, 0, 8}];
a[n_] := Coefficient[b[n, PrimePi[n]], x, 7];
Table[a[n], {n, 42, 114}] (* Jean-François Alcover, Feb 24 2022, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A178090 A110914 A219200 * A193527 A127505 A194923
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 24 2021
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 May 14 20:39 EDT 2024. Contains 372533 sequences. (Running on oeis4.)