A229946 Height of the peaks and the valleys in the Dyck path whose j-th ascending line segment has A141285(j) steps and whose j-th descending line segment has A194446(j) steps.
0, 1, 0, 2, 0, 3, 0, 2, 1, 5, 0, 3, 2, 7, 0, 2, 1, 5, 3, 6, 5, 11, 0, 3, 2, 7, 5, 9, 8, 15, 0, 2, 1, 5, 3, 6, 5, 11, 7, 12, 11, 15, 14, 22, 0, 3, 2, 7, 5, 9, 8, 15, 11, 14, 13, 19, 17, 22, 21, 30, 0, 2, 1, 5, 3, 6, 5, 11, 7, 12, 11, 15, 14, 22, 15, 19, 18, 25, 23, 29, 28, 33, 32, 42, 0
Offset: 0
Examples
Illustration of initial terms (n = 0..21): . 11 . / . / . / . 7 / . /\ 6 / . 5 / \ 5 /\/ . /\ / \ /\ / 5 . 3 / \ 3 / \ / \/ . 2 /\ 2 / \ /\/ \ 2 / 3 . 1 /\ / \ /\/ \ / 2 \ /\/ . /\/ \/ \/ 1 \/ \/ 1 . 0 0 0 0 0 0 . Note that the k-th largest peak between two valleys at height 0 is also A000041(k) and the next term is always 0. . Written as an irregular triangle in which row k has length 2*A187219(k), k >= 1, the sequence begins: 0,1; 0,2; 0,3; 0,2,1,5; 0,3,2,7; 0,2,1,5,3,6,5,11; 0,3,2,7,5,9,8,15; 0,2,1,5,3,6,5,11,7,12,11,15,14,22; 0,3,2,7,5,9,8,15,11,14,13,19,17,22,21,30; 0,2,1,5,3,6,5,11,7,12,11,15,14,22,15,19,18,25,23,29,28,33,32,42; ...
Links
- Omar E. Pol, Visualization of regions in a diagram for A006128
Crossrefs
Formula
a(0) = 0; a(n) = a(n-1) + (-1)^(n-1)*A220517(n), n >= 1.
Comments