login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A141753
Main diagonal of A139755, the table of q-derangement numbers of type A.
3
1, 1, 2, 7, 24, 86, 313, 1157, 4325, 16303, 61856, 235917, 903620, 3473381, 13391280, 51761781, 200523644, 778342906, 3026400508, 11785538461, 45959004812, 179444813270, 701422450293, 2744562302533, 10749124666643, 42135320616531
OFFSET
1,3
LINKS
FORMULA
a(n) = [q^n] { ([n+1]_q)! * Sum_{m=0..n+1} (-1)^m * q^(m(m-1)/2) / ([m]_q)! }; here, the q-factorial of n is denoted by ([n]_q)! = Product_{j=1..n} (1-q^j)/(1-q).
a(n) ~ c * 4^n / sqrt(Pi*n), where c = A048651^2 = QPochhammer(1/2)^2 = 0.083398563863748521534541808155312... - Vaclav Kotesovec, Aug 30 2023
PROG
(PARI) {a(n)=polcoeff(prod(j=1, n+1, (1-q^j)/(1-q))* sum(k=0, n+1, (-1)^k*q^(k*(k-1)/2)/if(k==0, 1, prod(j=1, k, (1-q^j)/(1-q)))), n, q)}
CROSSREFS
Sequence in context: A297345 A052986 A053368 * A014300 A128086 A131824
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jul 05 2008
STATUS
approved