✔ 最佳答案
Aij belongs to {0,1,2,3,4}
A11+A12+A13=4
A21+A22+A23=4
A31+A32+A33=4
A11+A21+A31=4
A12+A22+A32=4
A13+A23+A33=4
------------
4>=A11+A12>=0
4>=A21+A22>=0
8>=A11+A12+A21+A22>=4
consider A22
WHEN A11=0:
A12,A21,A22 can be 0,1,2,3,4; 5^3=125種情況
當A11+A12+A13<4有C(6,3)=20種情況要扣除
max(A12,A21)=4有(4*2+1)*4=36種情況要扣除
max(A12,A21)=3有(3*2+1)*3=21種情況要扣除
max(A12,A21)=2有(2*2+1)*2=10種情況要扣除
max(A12,A21)=1有(1*2+1)*1=3種情況要扣除
125-20-36-21-10-3=35種情況
WHEN A11=1:
A12,A21 can be 0,1,2,3;A22can be 0,1,2,3,4; 4*4*5=80種情況
當A11+A12+A13<4有C(5,3)=10種情況要扣除
max(A12,A21)=3有(3*2+1)*3=21種情況要扣除
max(A12,A21)=2有(2*2+1)*2=10種情況要扣除
max(A12,A21)=1有(1*2+1)*1=3種情況要扣除
80-10-21-10-3=36種情況
WHEN A11=2:
A12,A21 can be 0,1,2;A22can be 0,1,2,3,4; 3*3*5=45種情況
當A11+A12+A13<4有C(4,3)=4種情況要扣除
max(A12,A21)=2有(2*2+1)*2=10種情況要扣除
max(A12,A21)=1有(1*2+1)*1=3種情況要扣除
45-4-10-3=28種情況
WHEN A11=3:
A12,A21 can be 0,1;A22can be 0,1,2,3,4; 2*2*5=20種情況
當A11+A12+A13<4有C(3,3)=1種情況要扣除
max(A12,A21)=1有(1*2+1)*1=3種情況要扣除
20-1-3=16種情況
WHEN A11=4
A12,A21=0
A22can be 0,1,2,3,4;5種情況
所以總共 35+36+28+16+5=120種情況
2010-05-09 01:24:36 補充:
一般化
有n隻雞全翼,分別把它們剪開為雞翼尖、雞中翼和雞槌3部分,共3n件,然後分給3人,每人有n件。
方法數=sigma{ (n+1)(k+1)^2-5C(k+2,3)+C(k+1,2) | k=0 to n}
=(n+1)(n+2)(n^2+3n+4)/8