login
Mahonian numbers T(n,7) (cf. A008302).
1

%I #7 May 30 2014 18:09:12

%S 15,101,359,961,2191,4489,8504,15159,25728,41926,66013,100913,150349,

%T 218995,312646,438407,604902,822504,1103587,1462801,1917371,2487421,

%U 3196324,4071079,5142716,6446730,8023545,9919009,12184921,14879591,18068434,21824599,26229634,31374188,37358751,44294433,52303783,61521649

%N Mahonian numbers T(n,7) (cf. A008302).

%C 45 years ago this was A000712, but it was dropped during the preparation of the 1973 Handbook of Integer Sequences.

%p g := proc(n, k) option remember; if k=0 then return(1) else if (n=1 and k=1) then return(0) else if (k<0 or k>binomial(n, 2)) then return(0) else g(n-1, k)+g(n, k-1)-g(n-1, k-n) end if end if end if end proc;

%p [seq(g(n,7),n=5..40)];

%Y Cf. A008302.

%K nonn

%O 5,1

%A _N. J. A. Sloane_, May 30 2014