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.

A323798 Number of permutations p of [n] such that max_{j=1..n} |p(j)-j| = 2.

Table of values

n a(n)
2 0
3 3
4 9
5 23
6 60
7 151
8 366
9 877
10 2088
11 4937
12 11621
13 27285
14 63944
15 149652
16 349924
17 817712
18 1910027
19 4460139
20 10412815
21 24306706
22 56733689
23 132411638
24 309022917
25 721175422
26 1682988807
27 3927486177
28 9165229371
29 21387927668
30 49910484308
31 116469784820
32 271790117108

List of values

[0, 3, 9, 23, 60, 151, 366, 877, 2088, 4937, 11621, 27285, 63944, 149652, 349924, 817712, 1910027, 4460139, 10412815, 24306706, 56733689, 132411638, 309022917, 721175422, 1682988807, 3927486177, 9165229371, 21387927668, 49910484308, 116469784820, 271790117108]