An urn contains N balls. Let $X$ be a random variable to specify the numeric value of a drawn ball twice for the first time (with replacement). I would like to find the following probability: $P(X=k)$ for $ k \in \mathbb{N}$. Can you help me, please? I don't know how to start.
Is the probability the same when $X$ is the numeric value of the drawing when a ball is drawn twice for the first time (with replacement)? (this is what I am actually looking for).
Hint: One ball drawn equal to $i$:
$$P(\text{first ball} = i) = \frac{1}{N}.$$
This is true for any $i \in \{1, \ldots, N\}$.
Moreover, since there is replacement, notice that:
$$P(\text{second ball} = i) = \frac{1}{N}.$$
Again, this is true for any $i \in \{1, \ldots, N\}$.
Replacement is very important since:
Then, for the independence:
$$P(\text{first ball} = i ~\text{AND}~ \text{second ball} = i) = \frac{1}{N} \cdot \frac{1}{N} = \frac{1}{N^2}.$$