(%i1) powerdisp:true$
Shooting Dice and Generating Functions
A die has six sides with pips. Thus, the generating function is:
Although not explicitly written, each term has a coefficient of 1. Hence, there is only one way to shoot the numbers 1,2,3,4,5 and 6.
Craps (two dice)
The above says there is 1 way to shoot a two (snake eyes), namely 2=1+1.
There are two ways to shoot a 3 (3=1+2=2+1).
There are 3 ways to shoot a four, namely 4=1+3=2+2=3+1.
...
This shows the four ways to get a 5, namely 5=2+3=3+2=1+4=4+1
Six ways to get a seven, namely 7=3+4=4+3=2+5=5+2=1+6=6+1
...
Three dice
There is one way to shoot a 3, namely 3=1+1+1/
There are three ways to get a 4, namely 4=1+1+2=
4=1+1+2=1+2+1=2+1+1
Created with wxMaxima.
No comments:
Post a Comment