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.
%I A321352 #53 Oct 12 2020 02:19:10 %S A321352 1,2,1,6,2,1,24,9,2,1,120,44,13,2,1,720,265,80,20,2,1,5040,1854,579, %T A321352 144,31,2,1,40320,14833,4738,1265,264,49,2,1,362880,133496,43387, %U A321352 12072,2783,484,78,2,1,3628800,1334961,439792,126565,30818,6208,888,125,2,1 %N A321352 Triangle T(n,k) giving the number of permutations pi of {1,2,...,n} such that for all i, pi(i) is not in {i, i+1, ..., i+k-1} (mod n), with 0 <= k <= n - 1. %C A321352 This is A008305 with the rows reversed. %C A321352 First column is A000142 (factorial numbers). %C A321352 Second column is A000166 (derangements). %C A321352 Third column is A000179 (ménage numbers). %C A321352 Fourth column is A000183 (discordant permutations) %H A321352 Peter Kagey, <a href="/A321352/b321352.txt">Table of n, a(n) for n = 1..276</a> (first 23 rows, flattened) %e A321352 Table begins: %e A321352 1 %e A321352 2, 1 %e A321352 6, 2, 1 %e A321352 24, 9, 2, 1 %e A321352 120, 44, 13, 2, 1 %e A321352 720, 265, 80, 20, 2, 1 %e A321352 5040, 1854, 579, 144, 31, 2, 1 %e A321352 40320, 14833, 4738, 1265, 264, 49, 2, 1 %e A321352 362880, 133496, 43387, 12072, 2783, 484, 78, 2, 1 %Y A321352 Cf. A008305. %Y A321352 Cf. A000142, A000166, A000179, A000183, A004307, A189389, A184965. %K A321352 nonn,tabl %O A321352 1,2 %A A321352 _Peter Kagey_, Feb 25 2020