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.

A173841 Number of permutations of 1..n with no adjacent pair summing to n+1.

Table of values

n a(n)
0 1
1 1
2 0
3 2
4 8
5 48
6 240
7 1968
8 13824
9 140160
10 1263360
11 15298560
12 168422400
13 2373073920
14 30865121280
15 496199854080
16 7445355724800
17 134510244986880
18 2287168006717440
19 45877376537395200
20 871804170613555200
21 19225435113632563200
22 403779880746418176000

List of values

[1, 1, 0, 2, 8, 48, 240, 1968, 13824, 140160, 1263360, 15298560, 168422400, 2373073920, 30865121280, 496199854080, 7445355724800, 134510244986880, 2287168006717440, 45877376537395200, 871804170613555200, 19225435113632563200, 403779880746418176000]