cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A341504 Number of ways to write n as an ordered sum of 10 nonprime numbers.

This page as a plain text file.
%I A341504 #6 Feb 13 2021 16:02:10
%S A341504 1,0,0,10,0,10,45,10,100,130,135,460,390,820,1435,1552,3135,4090,5805,
%T A341504 9370,12040,17890,25485,33940,48385,65812,87925,121040,160155,212350,
%U A341504 283666,368590,482750,628390,806450,1039382,1327060,1682860,2134730,2684320,3364819
%N A341504 Number of ways to write n as an ordered sum of 10 nonprime numbers.
%p A341504 b:= proc(n, t) option remember;
%p A341504       `if`(n=0, `if`(t=0, 1, 0), `if`(t<1, 0, add(
%p A341504       `if`(isprime(j), 0, b(n-j, t-1)), j=1..n)))
%p A341504     end:
%p A341504 a:= n-> b(n, 10):
%p A341504 seq(a(n), n=10..50);  # _Alois P. Heinz_, Feb 13 2021
%t A341504 nmax = 50; CoefficientList[Series[Sum[Boole[!PrimeQ[k]] x^k, {k, 1, nmax}]^10, {x, 0, nmax}], x] // Drop[#, 10] &
%Y A341504 Cf. A005171, A018252, A052284, A076608, A340966, A341460, A341469, A341480, A341481, A341482, A341483, A341484, A341485, A341486.
%K A341504 nonn
%O A341504 10,4
%A A341504 _Ilya Gutkovskiy_, Feb 13 2021