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.

A033305 Number of permutations (p1,...,pn) such that 1 <= |pk - k| <= 2 for all k.

Table of values

n a(n)
0 1
1 0
2 1
3 2
4 4
5 6
6 13
7 24
8 45
9 84
10 160
11 300
12 565
13 1064
14 2005
15 3774
16 7108
17 13386
18 25209
19 47472
20 89401
21 168360
22 317056
23 597080
24 1124425
25 2117520
26 3987721
27 7509690
28 14142276
29 26632782
30 50154949
31 94451976
32 177872293

List of values

[1, 0, 1, 2, 4, 6, 13, 24, 45, 84, 160, 300, 565, 1064, 2005, 3774, 7108, 13386, 25209, 47472, 89401, 168360, 317056, 597080, 1124425, 2117520, 3987721, 7509690, 14142276, 26632782, 50154949, 94451976, 177872293]