A341483 Number of ways to write n as an ordered sum of 6 nonprime numbers.
1, 0, 0, 6, 0, 6, 15, 6, 36, 26, 45, 96, 75, 156, 201, 242, 375, 456, 586, 816, 987, 1256, 1656, 1962, 2512, 3102, 3717, 4616, 5577, 6612, 8067, 9516, 11283, 13372, 15678, 18378, 21412, 24966, 28719, 33388, 38244, 43872, 50248, 57288, 64914, 74074, 83328, 94248
Offset: 6
Keywords
Crossrefs
Programs
-
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, 6): seq(a(n), n=6..53); # Alois P. Heinz, Feb 13 2021
-
Mathematica
nmax = 53; CoefficientList[Series[Sum[Boole[!PrimeQ[k]] x^k, {k, 1, nmax}]^6, {x, 0, nmax}], x] // Drop[#, 6] &