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.

This page as a plain text file.
%I A323798 #9 Jan 28 2019 10:19:32
%S A323798 0,3,9,23,60,151,366,877,2088,4937,11621,27285,63944,149652,349924,
%T A323798 817712,1910027,4460139,10412815,24306706,56733689,132411638,
%U A323798 309022917,721175422,1682988807,3927486177,9165229371,21387927668,49910484308,116469784820,271790117108
%N A323798 Number of permutations p of [n] such that max_{j=1..n} |p(j)-j| = 2.
%H A323798 Alois P. Heinz, <a href="/A323798/b323798.txt">Table of n, a(n) for n = 2..1000</a>
%H A323798 <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (3,-1,0,-2,-3,1,1).
%F A323798 G.f.: x^3*(x^2-3)/((x^2+x-1)*(x^5-2*x^3-2*x+1)).
%e A323798 a(3) = 3: 231, 312, 321.
%e A323798 a(4) = 9: 1342, 1423, 1432, 2314, 2413, 3124, 3142, 3214, 3412.
%e A323798 a(5) = 23: 12453, 12534, 12543, 13425, 13524, 14235, 14253, 14325, 14523, 21453, 21534, 21543, 23145, 23154, 24135, 24153, 31245, 31254, 31425, 31524, 32145, 32154, 34125.
%Y A323798 Column k=2 of A130152.
%K A323798 nonn,easy
%O A323798 2,2
%A A323798 _Alois P. Heinz_, Jan 28 2019