Let $X_1, X_2...X_n$ be iid with $f(x,\theta)=\dfrac{2x}{\theta^2}$ and $0<x\leq\theta$. Find $c$ such that $\mathbb{E}(c\hat{\theta})=\theta$ where $\hat{\theta}$ denotes MLE of $\theta$.
What I have tried: I found the MLE of $f(x;\theta)$ to be $\max\{X_1,X_2\cdots X_n\}$ (which aligns with the answer at the back) but now I am stuck at this question. The answer given is $\dfrac{2n+1}{2n}$.
I would have proceeded as: $$\begin{align*} \mathbb{E}(c\hat{\theta})&=\theta\\ \int_0^\theta c \dfrac{2x}{y^2} &=\theta \quad (y = \max\{x_1,x_2,\cdots,x_n\})\\ \dfrac{1}{y^2}\int_0^\theta c .{2x}{} &=\theta \end{align*}$$ But continuing this way gives me an answer far off from the one in the book (I don't have a term of n to begin with).