login
A341484
Number of ways to write n as an ordered sum of 7 nonprime numbers.
7
1, 0, 0, 7, 0, 7, 21, 7, 49, 42, 63, 154, 119, 259, 357, 420, 707, 861, 1169, 1666, 2072, 2752, 3703, 4557, 5999, 7637, 9422, 12089, 14931, 18354, 22904, 27825, 33866, 41328, 49539, 59753, 71386, 85071, 100800, 119455, 140448, 164794, 193179, 224826, 261464, 303422
OFFSET
7,4
MAPLE
b:= proc(n, t) option remember;
`if`(n=0, `if`(t=0, 1, 0), `if`(t<1, 0, add(
`if`(isprime(j), 0, b(n-j, t-1)), j=1..n)))
end:
a:= n-> b(n, 7):
seq(a(n), n=7..52); # Alois P. Heinz, Feb 13 2021
MATHEMATICA
nmax = 52; CoefficientList[Series[Sum[Boole[!PrimeQ[k]] x^k, {k, 1, nmax}]^7, {x, 0, nmax}], x] // Drop[#, 7] &
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 13 2021
STATUS
approved