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.

A244717 Number of compositions of n with exactly 5 transitions between different parts.

This page as a plain text file.
%I A244717 #9 Aug 29 2021 04:32:08
%S A244717 2,16,78,274,814,2058,4752,9930,19574,36186,63924,108078,176672,
%T A244717 279260,429800,645222,947142,1363678,1927532,2681804,3673786,4967774,
%U A244717 6630024,8752102,11422254,14770528,18913112,24022400,30253734,37831400,46953628,57914360,70960394
%N A244717 Number of compositions of n with exactly 5 transitions between different parts.
%H A244717 Alois P. Heinz, <a href="/A244717/b244717.txt">Table of n, a(n) for n = 9..900</a>
%p A244717 b:= proc(n, v) option remember; `if`(n=0, [1, 0$5],
%p A244717       add(`if`(v in [0, i], b(n-i, `if`(i<=n-i, i, -1)),
%p A244717       [0, b(n-i, `if`(i<=n-i, i, -1))[1..5][]]), i=1..n))
%p A244717     end:
%p A244717 a:= n-> b(n, 0)[6]:
%p A244717 seq(a(n), n=9..60);
%t A244717 b[n_, v_] := b[n, v] = If[n == 0, 1, Expand[Sum[b[n - i, i]*
%t A244717      If[v == 0 || v == i, 1, x], {i, n}]]];
%t A244717 a[n_] := Coefficient[b[n, 0], x, 5];
%t A244717 Table[a[n], {n, 9, 60}] (* _Jean-François Alcover_, Aug 29 2021, after A238279 Maple code *)
%Y A244717 Column k=5 of A238279.
%K A244717 nonn
%O A244717 9,1
%A A244717 _Joerg Arndt_ and _Alois P. Heinz_, Jul 04 2014