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.

A341485 Number of ways to write n as an ordered sum of 8 nonprime numbers.

This page as a plain text file.
%I A341485 #7 Feb 13 2021 14:18:30
%S A341485 1,0,0,8,0,8,28,8,64,64,84,232,182,400,596,680,1232,1520,2128,3144,
%T A341485 3970,5504,7532,9584,12945,16920,21464,28288,35778,45264,57856,72024,
%U A341485 90036,112456,138140,170600,208874,254192,309088,373584,449731,539408,645584,767776
%N A341485 Number of ways to write n as an ordered sum of 8 nonprime numbers.
%p A341485 b:= proc(n, t) option remember;
%p A341485       `if`(n=0, `if`(t=0, 1, 0), `if`(t<1, 0, add(
%p A341485       `if`(isprime(j), 0, b(n-j, t-1)), j=1..n)))
%p A341485     end:
%p A341485 a:= n-> b(n, 8):
%p A341485 seq(a(n), n=8..51);  # _Alois P. Heinz_, Feb 13 2021
%t A341485 nmax = 51; CoefficientList[Series[Sum[Boole[!PrimeQ[k]] x^k, {k, 1, nmax}]^8, {x, 0, nmax}], x] // Drop[#, 8] &
%Y A341485 Cf. A005171, A018252, A052284, A076608, A340964, A341455, A341467, A341480, A341481, A341482, A341483, A341484, A341486.
%K A341485 nonn
%O A341485 8,4
%A A341485 _Ilya Gutkovskiy_, Feb 13 2021