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.

A059427 Triangle read by rows: T(n,k) is the number of permutations of [n] with k alternating runs (n>=2, k>=1).

Table of values

n a(n)
2 2
3 2
4 4
5 2
6 12
7 10
8 2
9 28
10 58
11 32
12 2
13 60
14 236
15 300
16 122
17 2
18 124
19 836
20 1852
21 1682
22 544
23 2
24 252
25 2766
26 9576
27 14622
28 10332
29 2770
30 2
31 508
32 8814
33 45096
34 103326
35 119964
36 69298
37 15872
38 2
39 1020
40 27472
41 201060
42 650892
43 1106820
44 1034992
45 505500
46 101042
47 2
48 2044

List of values

[2, 2, 4, 2, 12, 10, 2, 28, 58, 32, 2, 60, 236, 300, 122, 2, 124, 836, 1852, 1682, 544, 2, 252, 2766, 9576, 14622, 10332, 2770, 2, 508, 8814, 45096, 103326, 119964, 69298, 15872, 2, 1020, 27472, 201060, 650892, 1106820, 1034992, 505500, 101042, 2, 2044]