@engineer,
Hmm...I think the first problem is binome distribution. So we have:
X:B(n/2,P1) and Y:B(n/2,P2), and from that Z=X+Y.
...that`s what I have so far, but I don`t know further...
For the second one...hmmm...i don`t have clue...I understand the part vith 1/3 (`couse there are 3 books)...but I don`t understand the rest...is there some formula that you uesd or it can be written a bit detailed?
Btw, tnx for hleping, it means me very much!