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”).

A377601
Number of permutations of the multiset {1^n, 2^n,..., n^n} excluding permutations where all objects of all types are contiguous.
0
0, 0, 4, 1674, 63062976, 623360743125000, 2670177736637149247308080, 7363615666157189603982585462030330960, 18165723931630806756964027928179555634194028453959680, 53130688706387569792052442448845648519471103327391407016237759999637120
OFFSET
0,3
FORMULA
a(n) = (n^2)!/(n!)^n - n!.
a(n) = A034841(n) - A000142(n).
EXAMPLE
For n=2, the multiset is {1,1,2,2} and the a(2)=4 permutations counted are 1212, 1221, 2112, 2121 (but neither 1122 nor 2211).
CROSSREFS
Sequence in context: A265661 A280793 A160225 * A316484 A278794 A141090
KEYWORD
nonn,easy
AUTHOR
STATUS
approved