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 A000475 M4969 N2132 #59 Jul 06 2023 05:29:03 %S A000475 1,0,15,70,630,5544,55650,611820,7342335,95449640,1336295961, %T A000475 20044438050,320711010620,5452087178160,98137569209940, %U A000475 1864613814984984,37292276299704525,783137802293789040,17229031650463366195,396267727960657413630 %N A000475 Rencontres numbers: number of permutations of [n] with exactly 4 fixed points. %D A000475 J. Riordan, An Introduction to Combinatorial Analysis, Wiley, 1958, p. 65. %D A000475 N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence). %D A000475 N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). %H A000475 T. D. Noe, <a href="/A000475/b000475.txt">Table of n, a(n) for n=4..100</a> %H A000475 FindStat - Combinatorial Statistic Finder, <a href="http://www.findstat.org/St000022">The number of fixed points of a permutation</a> %H A000475 <a href="/index/Per#IntegerPermutationCatAuto">Index entries for sequences related to permutations with fixed points</a> %F A000475 a(n) = sum((-1)^j*n!/(4!*j!), j=2..n-4) = A008290(n,4). %F A000475 a(n) = A000166(n)*binomial(n+4, 4). - Robert Goodhand (robert(AT)rgoodhand.fsnet.co.uk), Nov 08 2001 %F A000475 E.g.f.: (exp(-x)/(1-x))*(x^4/4!). In general, for k fixed points:(exp(-x)/(1-x)) * (x^k/k!). - _Wenjin Woan_, Nov 22 2008 %F A000475 a(n) ~ n! * exp(-1)/24, in general a(n) ~ n! * exp(-1)/k!. - _Vaclav Kotesovec_, Mar 16 2014 %F A000475 a(n) = n*a(n-1) + (-1)^n*binomial(n,4) with a(n) = 0 for n = 0,1,2,3. - _Chai Wah Wu_, Nov 01 2014 %F A000475 D-finite with recurrence (-n+4)*a(n) +n*(n-5)*a(n-1) +n*(n-1)*a(n-2)=0. - _R. J. Mathar_, Nov 02 2015 %F A000475 O.g.f.: (1/24)*Sum_{k>=4} k!*x^k/(1 + x)^(k+1). - _Ilya Gutkovskiy_, Apr 13 2017 %p A000475 a:=n->sum(n!*sum((-1)^k/(k-3)!, j=0..n), k=3..n): seq(-a(n)/4!, n=3..22); # _Zerinvary Lajos_, May 25 2007 %p A000475 G(x):=exp(-x)/(1-x)*(x^4/4!): f[0]:=G(x): for n from 1 to 26 do f[n]:=diff(f[n-1],x) od: x:=0: seq(f[n],n=4..23); # _Zerinvary Lajos_, Apr 03 2009 %t A000475 Table[Subfactorial[n - 4]*Binomial[n, 4], {n, 4, 23}] (* _Zerinvary Lajos_, Jul 10 2009 *) %o A000475 (PARI) x='x+O('x^66); Vec( serlaplace(exp(-x)/(1-x)*(x^4/4!)) ) \\ _Joerg Arndt_, Feb 19 2014 %o A000475 (Python) %o A000475 from sympy import binomial %o A000475 A000475_list, m, x = [], 1, 0 %o A000475 for n in range(4,100): %o A000475 x, m = x*n + m*binomial(n,4), -m %o A000475 A000475_list.append(x) # _Chai Wah Wu_, Nov 01 2014 %Y A000475 Cf. A008290. %Y A000475 A diagonal of A008291. %Y A000475 Cf. A170942. %K A000475 nonn %O A000475 4,3 %A A000475 _N. J. A. Sloane_ %E A000475 Formula corrected by _Sean A. Irvine_, Oct 26 2010