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.

A288113 Number of Dyck paths of semilength n such that each level has exactly six peaks or no peaks.

This page as a plain text file.
%I A288113 #9 Jun 02 2018 10:36:17
%S A288113 1,0,0,0,0,0,1,1,6,16,31,56,102,179,426,1490,5164,18715,73281,253183,
%T A288113 741420,1915072,4599352,10845192,26990806,76446936,251549461,
%U A288113 918616924,3497341145,13161267180,47114251055,157204766841,487208649994,1416324380706,3944267803650
%N A288113 Number of Dyck paths of semilength n such that each level has exactly six peaks or no peaks.
%H A288113 Alois P. Heinz, <a href="/A288113/b288113.txt">Table of n, a(n) for n = 0..1000</a>
%H A288113 Wikipedia, <a href="https://en.wikipedia.org/wiki/Lattice_path#Counting_lattice_paths">Counting lattice paths</a>
%p A288113 b:= proc(n, k, j) option remember; `if`(n=j, 1, add(
%p A288113       b(n-j, k, i)*(binomial(j-1, i-1)+binomial(i, k)
%p A288113        *binomial(j-1, i-1-k)), i=1..min(j+k, n-j)))
%p A288113     end:
%p A288113 a:= n-> `if`(n=0, 1, b(n, 6$2)):
%p A288113 seq(a(n), n=0..40);
%t A288113 b[n_, k_, j_] := b[n, k, j] = If[n == j, 1, Sum[b[n - j, k, i]*(Binomial[j - 1, i - 1] + Binomial[i, k]*Binomial[j - 1, i - 1 - k]), {i, 1, Min[j + k, n - j]}]];
%t A288113 a[n_] := If[n == 0, 1, b[n, 6, 6]];
%t A288113 Table[a[n], {n, 0, 40}] (* _Jean-François Alcover_, Jun 02 2018, from Maple *)
%Y A288113 Column k=6 of A288108.
%K A288113 nonn
%O A288113 0,9
%A A288113 _Alois P. Heinz_, Jun 05 2017