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!)
A341976 Number of partitions of n into 5 distinct primes (counting 1 as a prime). 9
1, 0, 0, 0, 1, 0, 2, 0, 2, 1, 3, 1, 4, 0, 3, 2, 6, 2, 6, 2, 7, 5, 9, 4, 10, 5, 10, 8, 12, 7, 12, 8, 15, 12, 16, 12, 18, 14, 20, 17, 22, 18, 23, 20, 27, 26, 29, 27, 30, 30, 33, 36, 36, 36, 35, 41, 43, 48, 43, 49, 43, 56, 52, 61, 51, 64, 52, 73, 64, 77, 58, 82, 64, 93 (list; graph; refs; listen; history; text; internal format)
OFFSET
18,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, 6)
end:
a:= n-> coeff(b(n, numtheory[pi](n)), x, 5):
seq(a(n), n=18..91); # 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, 6}];
a[n_] := Coefficient[b[n, PrimePi[n]], x, 5];
Table[a[n], {n, 18, 100}] (* Jean-François Alcover, Jul 13 2021, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A029185 A029184 A179049 * A029221 A304034 A029183
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 July 14 20:49 EDT 2024. Contains 374323 sequences. (Running on oeis4.)