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.

A364817 Triangle read by rows: T(n,k) = number of permutations p of [n] such that max(|p(p(i)) - i|)=k (n>=1, 0<=k<=n-1).

Table of values

n a(n)
1 1
2 2
3 0
4 4
5 0
6 2
7 10
8 2
9 6
10 6
11 26
12 6
13 22
14 36
15 30
16 76
17 24
18 92
19 144
20 216
21 168
22 232
23 80
24 334
25 640
26 1150
27 1524
28 1080
29 764
30 312
31 1328
32 2984
33 5516
34 9712
35 11784
36 7920
37 2620
38 1152
39 5234
40 13296
41 27668
42 55750
43 90240
44 101400
45 65520
46 9496
47 4616
48 21780
49 62124
50 144564
51 306272
52 601756
53 909312
54 964080
55 604800

List of values

[1, 2, 0, 4, 0, 2, 10, 2, 6, 6, 26, 6, 22, 36, 30, 76, 24, 92, 144, 216, 168, 232, 80, 334, 640, 1150, 1524, 1080, 764, 312, 1328, 2984, 5516, 9712, 11784, 7920, 2620, 1152, 5234, 13296, 27668, 55750, 90240, 101400, 65520, 9496, 4616, 21780, 62124, 144564, 306272, 601756, 909312, 964080, 604800]