%I #10 May 03 2021 08:17:31
%S 0,1,7,49,375,3181,29843,307833,3468671,42432445,560365779,7948580377,
%T 120557659247,1947336998829,33378478735475,605158251430681,
%U 11571369420832383,232739737871570173,4912330587789969971,108564708629365952505,2507303342099915104559
%N Total number of occurrences of 3 in the (signed) displacement sets of all permutations of [n+3] divided by 3!.
%H Alois P. Heinz, <a href="/A324353/b324353.txt">Table of n, a(n) for n = 0..447</a>
%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Permutation">Permutation</a>
%F E.g.f.: (1-exp(-x))/(1-x)^4.
%F a(n) = -1/3! * Sum_{j=1..n} (-1)^j * binomial(n,j) * (n+3-j)!.
%F a(n) = A306234(n+3,3).
%p a:= n-> (k-> -add((-1)^j*binomial(n, j)*(n+k-j)!, j=1..n)/k!)(3):
%p seq(a(n), n=0..23);
%t m = 23;
%t CoefficientList[(1-Exp[-x])/(1-x)^4 + O[x]^(m+1), x]*Range[0, m]! (* _Jean-François Alcover_, May 03 2021 *)
%Y Column k=3 of A324362.
%Y Cf. A306234.
%K nonn
%O 0,3
%A _Alois P. Heinz_, Feb 23 2019
|