Problem 935: (2017 AIME II, 7)
Find the number of integer values of $k$ in the closed interval $[-500,500]$ for which the equation $\log(kx)=2\log(x+2)$ has exactly one real solution.
- The equation means $kx=(x+2)^2$ with $x>-2$ and $kx>0$, i.e.\ $x^2+(4-k)x+4=0$.
- For $k<0$ we need $-2<x<0$. The roots have product $4$ and negative sum, so exactly one lies in $(-2,0)$: all $500$ negative $k$ work.
- For $k>0$ we need $x>0$: the discriminant $k(k-8)$ is zero only for $k=8$ (one root); for $k>8$ there are two. So $501$ values. The answer is $\boxed{501}$.
Find the number of integer values of $k$ in the closed interval $[-300,300]$ for which the equation $\log(kx)=2\log(x+3)$ has exactly one real solution.