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.

A242157 Number of ascent sequences of length n with exactly four flat steps.

This page as a plain text file.
%I A242157 #9 Feb 10 2015 06:54:56
%S A242157 1,5,30,175,1120,7686,56910,452760,3858525,35101495,339725386,
%T A242157 3487023540,37846867240,433186049100,5215583431800,65904645333720,
%U A242157 872154648378075,12063864339947700,174104719888432025,2617216790440934220,40916672402313971340
%N A242157 Number of ascent sequences of length n with exactly four flat steps.
%H A242157 Joerg Arndt and Alois P. Heinz, <a href="/A242157/b242157.txt">Table of n, a(n) for n = 5..140</a>
%F A242157 a(n) ~ Pi^(11/2)/(864*sqrt(3)*exp(Pi^2/12)) * (6/Pi^2)^n * n! * sqrt(n). - _Vaclav Kotesovec_, Aug 27 2014
%t A242157 b[n_, i_, t_] := b[n, i, t] = If[n == 0, 1, Expand[Sum[ If[j == i, x, 1]*b[n - 1, j, t + If[j > i, 1, 0]], {j, 0, t + 1}]]]; a[n_] := Coefficient[b[n, -1, -1], x, 4]; Table[a[n], {n, 5, 30}] (* _Jean-François Alcover_, Feb 10 2015, after A242153 *)
%Y A242157 Column k=4 of A242153.
%K A242157 nonn
%O A242157 5,2
%A A242157 _Joerg Arndt_ and _Alois P. Heinz_, May 05 2014