\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
The random variable \(Y\) follows a discrete uniform distribution on the set of integers \(\{1, 2, \dots, n\}\). The expected value of \(Y\) is \(E(Y) = 10\).
  1. Find the value of \(n\).
  2. Hence, find the variance of \(Y\).

Capture an image of your work. AI teacher feedback takes approximately 10 seconds.