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.
%I A276313 #12 May 18 2017 09:57:49 %S A276313 1,1,3,14,85,671,6405,72302,940005,13846117,227837533,4142793511, %T A276313 82488063476,1785049505682,41715243815059,1046997553798894, %U A276313 28089178205661221,802173732190546289,24296253228394108980,777918130180655893150,26253270588637259772768 %N A276313 Number of weak up-down sequences of length n and values in {1,2,...,n}. %H A276313 Alois P. Heinz, <a href="/A276313/b276313.txt">Table of n, a(n) for n = 0..413</a> %F A276313 a(n) ~ exp(1/2) * 2^(n+2) * n^n / Pi^(n+1). - _Vaclav Kotesovec_, Aug 30 2016 %e A276313 a(0) = 1: the empty sequence. %e A276313 a(1) = 1: 1. %e A276313 a(2) = 3: 11, 12, 22. %e A276313 a(3) = 14: 111, 121, 122, 131, 132, 133, 221, 222, 231, 232, 233, 331, 332, 333. %e A276313 a(4) = 85: 1111, 1112, 1113, 1114, 1211, ..., 4423, 4424, 4433, 4434, 4444. %p A276313 b:= proc(n, k, t) option remember; `if`(n=0, 1, %p A276313 add(b(n-1, k, k-j), j=1..t)) %p A276313 end: %p A276313 a:= n-> b(n, n+1, n): %p A276313 seq(a(n), n=0..25); %t A276313 b[n_, k_, t_] := b[n, k, t] = If[n==0, 1, Sum[b[n-1, k, k-j], {j, 1, t}]]; %t A276313 a[n_] := b[n, n+1, n]; %t A276313 Table[a[n], {n, 0, 25}](* _Jean-François Alcover_, May 18 2017, translated from Maple *) %Y A276313 A diagonal of A050446, A050447. %Y A276313 Cf. A276312. %K A276313 nonn %O A276313 0,3 %A A276313 _Alois P. Heinz_, Aug 29 2016