解答: |
求
f(3,1,6)=f(2,2,6)+f(2,3,6)+f(2,4,6)+f(2,5,6)+f(2,6,6)+f(2,7,6)
f(2,7,6)=f(2,6,6)=0
f(2,5,6)=f(1,6,6)=f(0,7,6)=1;
f(2,4,6)=f(1,5,6)+f(1,6,6)=f(0,6,6)+f(0,7,6)+f(1,6,6)=3
f(2,3,6)=f(1,4,6)+f(1,5,6)+f(1,6,6)
f(1,4,6)=f(0,5,6)+f(0,6,6)+f(0,7,6)=3
f(1,5,6)=f(0,6,6)+f(0,7,6)=2
f(2,3,6)=3+2+1=6
f(2,2,6)=f(1,3,6)+f(1,4,6)+f(1,5,6)+f(1,6,6)+f(1,7,6)
f(1,3,6)=f(0,4,6)+f(0,5,6)+f(0,6,6)+f(0,7,6)=4
f(2,2,6)=4+3+2+1=10
总和为10+6+3+1=20 |