Let $p$ be a prime number.
(a) What is the probability that the sum of $p$ non-negative integers is divisible by $p$?
(b) What is the probability that the product of $p$ non-negative integers is divisible by $p$?
Numbers are chosen randomly from $1$ to $p$ inclusive.
Ideas.
(a) Since there are $p$ residuals when dividing a number by $p$ and only when it is zero, the number is divisible, then the probability would be $\frac{1}{p}$. I have doubts in this case, since I consider that not all possible residuals are equiprobable for the sum.
(b) In this case, it is enough that a single number is divisible by $p$ so that the product is divisible as well. Then, the favorable cases would be $p^p$ (the ways to obtain the residuals for each factor) and the cases in which the product is not divisible would be when one with zero residual has not been taken, that is $(p-1) ^ p$ ways to take the numbers. So the probability would be $1-\left(\frac{p-1}{p}\right)^p.$