Given. $f(x)=2x/25$ on $0\le x\le5$ (zero otherwise); multiplicative congruential generator (MCG) with $a=23,\ m=100,\ X_0=17$.
Find. (a) proof that $f$ is a valid pdf; (b) the inverse-transform formula $x=F^{-1}(U)$; (c) two variates generated by feeding the MCG stream through that inverse transform.
Approach. Check the two Kolmogorov conditions for (a); integrate $f$ to get $F$ and invert for (b); iterate $X_{i+1}=(aX_i)\bmod m$ twice and push each $U_i=X_i/m$ through the inverse transform for (c).
Prove validity. $f(x)=2x/25\ge0$ on its support (and is identically $0$ elsewhere), so non-negativity holds. Total probability:
$$\int_0^5 f(x)\,dx = \int_0^5\frac{2x}{25}\,dx = \left[\frac{x^2}{25}\right]_0^5 = \frac{25}{25} = \boxed{1}.$$
Both Kolmogorov conditions ($f\ge0$, total area $=1$) hold, so $f(x)$ is a valid pdf.
Derive the inverse transform. Integrating from $0$ gives the CDF, then solving $F(x)=U$ for $x$:
$$F(x)=\int_0^x\frac{2t}{25}\,dt=\frac{x^2}{25},\qquad U=\frac{x^2}{25}\ \Rightarrow\ \boxed{x=5\sqrt{U}}.$$
Generate two variates from the MCG stream. Iterating $X_{i+1}=(23\,X_i)\bmod100$ from $X_0=17$:
$$X_1=(23\times17)\bmod100=391\bmod100=91,\qquad U_1=0.91$$
$$X_2=(23\times91)\bmod100=2093\bmod100=93,\qquad U_2=0.93$$
Substituting into $x=5\sqrt{U}$:
$$x_1=5\sqrt{0.91}=\boxed{4.770},\qquad x_2=5\sqrt{0.93}=\boxed{4.822}.$$