A3: (C(3*k,k)*(k!)*(k!)*((k+1)!))/(3*k=1)!

来源: 2007-12-05 19:52:15 [博客] [旧帖] [给我悄悄话] 本文已被阅读:

There are (k+1) numbers mod 3 = 1, k numbers mod 3 = 0 and k numbers mod 3 = 2. The first number has to be mod1 type. Then k mod0 types can appear anywhere in 3*k slots. Then the mod1 types and mod2 types have to alternate with mod1 types appear first.