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.

A299789 Number T(n,k) of permutations p of [n] such that min_{j=1..n} |p(j)-j| = k; triangle T(n,k), n >= 0, 0 <= k <= floor(n/2), read by rows.

Table of values

n a(n)
0 0
1 1
2 1
3 1
4 4
5 2
6 15
7 8
8 1
9 76
10 40
11 4
12 455
13 236
14 28
15 1
16 3186
17 1648
18 198
19 8
20 25487
21 13125
22 1596
23 111
24 1
25 229384
26 117794
27 14534
28 1152
29 16
30 2293839
31 1175224
32 146372
33 12929
34 435
35 1
36 25232230
37 12903874
38 1621282
39 152430
40 6952
41 32
42 302786759
43 154615096
44 19563257
45 1922364
46 112416
47 1707
48 1

List of values

[0, 1, 1, 1, 4, 2, 15, 8, 1, 76, 40, 4, 455, 236, 28, 1, 3186, 1648, 198, 8, 25487, 13125, 1596, 111, 1, 229384, 117794, 14534, 1152, 16, 2293839, 1175224, 146372, 12929, 435, 1, 25232230, 12903874, 1621282, 152430, 6952, 32, 302786759, 154615096, 19563257, 1922364, 112416, 1707, 1]