conditional function probability

Hello,

I really need your help.

We choose randomly a number between from 0 to 3. This number indicates how many times we will throw a coin.

M = the chosen number

K = how many time we get heads

Determine the following probability functions for all values of the variables:

1) pM(m)

2) pK/M(k/2)

3) pM/K(m/2)

4) pK(k)

5) Determine the conditional probability function of N, if K is odd number

1) pM(0) = pM(1) = pM(2) = pM(3) = 1/4

2) Bayes’ theorem ??? [pK/M(k/2) =p(2/k) p(k) / p(2)]

3) Bayes’ theorem ???

Thanks in advance.