A176736 a(n) = (n+9)*a(n-1) + (n-1)*a(n-2), a(-1)=0, a(0)=1.
1, 10, 111, 1352, 17909, 256134, 3931555, 64441684, 1123029513, 20730064706, 403978495031, 8286870547680, 178468044946621, 4025739435397822, 94912091598455979, 2334250550458513004, 59779945135439664785, 1591626582328767492474, 43990176790179196598143, 1260374228606935319612536
Offset: 0
Examples
Necklaces and 10 cords problem. For n=4 one considers the following weak 2-part compositions of 4: (4,0), (3,1), (2,2), and (0,4), where (1,3) does not appear because there are no necklaces with 1 bead. These compositions contribute respectively !4*1,binomial(4,3)*!3*c10(1), (binomial(4,2)*! 2)*c10(2), and 1*c10(4) with the subfactorials !n:=A000166(n) (see the necklace comment there) and the c10(n):=A049398(n) numbers for the pure 10-cord problem (see the remark on the e.g.f. for the k-cord problem in A000153; here for k=10: 1/(1-x)^10). This adds up as 9 + 4*2*10 + (6*1)*110 + 17160 = 17909 = a(4).
Crossrefs
Cf. A176735 (necklaces and k=9 cords).
Formula
E.g.f. (exp(-x)/(1-x))*(1/(1-x)^10) = exp(-x)/(1-x)^11, equivalent to the given recurrence.
a(n) = A086764(n+10,10).
Comments