> | restart; read `c:/Users/Asus/Google Drive/Aek/Pile Game2/Pile2.txt`; |
> | read `c:/Users/Asus/Google Drive/Guess.txt`; |
> | #Section 4.2, Higher moments for {1,-u}, general p,q |
> | #u=2, first moment, expected number |
> | A:=[seq(Mo1(n,0,1,[1,-2],[p,1-p]),n=1..20)]: |
> | GuessC(A,N); |
> | B:=[seq(Mo1(20,s,1,[1,-2],[p,1-p]),s=0..20)]: |
> | GuessC(B,S); |
> | #u=2, second moment |
> | A:=[seq(Mo1(n,0,2,[1,-2],[p,1-p]),n=1..25)]: |
> | GuessC(A,N); |
> | B:=[seq(Mo1(25,s,2,[1,-2],[p,1-p]),s=0..25)]: |
> | GuessC(B,S); |
> | #u=3, first moment |
> | A:=[seq(Mo1(n,0,1,[1,-3],[p,1-p]),n=1..20)]: |
> | GuessC(A,N); |
> | B:=[seq(Mo1(20,s,1,[1,-3],[p,1-p]),s=0..20)]: |
> | GuessC(B,S); |
> | #u=3, second moment |
> | A:=[seq(Mo1(n,0,2,[1,-3],[p,1-p]),n=1..35)]: |
> | GuessC(A,N); |
> | B:=[seq(Mo1(35,s,2,[1,-3],[p,1-p]),s=0..35)]: |
> | GuessC(B,S); |
> |