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.

A261317 Number of permutations sigma of [n] without fixed points such that sigma^6 = Id.

Original entry on oeis.org

1, 0, 1, 2, 3, 20, 175, 210, 4585, 24920, 101745, 1266650, 13562395, 48588540, 1082015935, 9135376250, 63098660625, 1069777108400, 13628391601825, 88520971388850, 2134604966569075, 23945393042070500, 236084869688242575, 4893567386193135650, 72576130763294383225
Offset: 0

Views

Author

Alois P. Heinz, Aug 14 2015

Keywords

Examples

			a(4) = 3: 2143, 3412, 4321.
a(5) = 20: 21453, 21534, 23154, 24513, 25431, 31254, 34152, 34521, 35124, 35412, 41523, 43251, 43512, 45132, 45213, 51432, 53214, 53421, 54123, 54231.
		

Crossrefs

Programs

  • Maple
    a:= proc(n) option remember; `if`(n<0, 0, `if`(n=0, 1,
           add(mul(n-i, i=1..j-1)*a(n-j), j=[2, 3, 6])))
        end:
    seq(a(n), n=0..30);
  • Mathematica
    a[n_] := a[n] = If[n < 0, 0, If[n == 0, 1, Sum[Product[n - i, {i, 1, j - 1}]*a[n - j], {j, {2, 3, 6}}]]];
    Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Jun 10 2018, from Maple *)

Formula

E.g.f.: exp(x^2*(x^4+2*x+3)/6).
D-finite with recurrence a(n) +(-n+1)*a(n-2) -(n-1)*(n-2)*a(n-3) -(n-5)*(n-1)*(n-2)*(n-3)*(n-4)*a(n-6)=0. - R. J. Mathar, Jul 04 2023