login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A323800
Number of permutations p of [n] such that max_{j=1..n} |p(j)-j| = 4.
2
0, 42, 274, 1227, 4833, 18827, 75693, 304900, 1212960, 4753020, 18410363, 70943107, 272701262, 1046410914, 4007815161, 15319362279, 58456445860, 222775782355, 848216866767, 3227396592600, 12273205919568, 46650941505906, 177252609519698, 673266690295879
OFFSET
4,2
LINKS
FORMULA
a(n) = A072856(n) - A002526(n).
CROSSREFS
Column k=4 of A130152.
Sequence in context: A300338 A064369 A234043 * A309925 A188058 A036463
KEYWORD
nonn,easy
AUTHOR
Alois P. Heinz, Jan 28 2019
STATUS
approved