When is the equation $k^4-24k+16$ perfect square. (k is an integer.)
I got this equation as discriminant while solving an equation. I tried to solve it but couldn't i tried to write it in a form of a square but couldnt solve it.I bashed a bit and found 0 and 3 as a solution. Any help would be appreciated. Thanks in advance.
For large $k$, $a=\sqrt{k^4-24k+16}$ will be very close to, but not equal to $k^2$ (and so won't be an integer). How close? $$|k^2-a|=\frac{|k^4-a^2|}{k^2+a}=\frac{|24k-16|}{k^2+a}\le\frac{|24k-16|}{k^2}.$$ If $|k|\ge 25$, then $$|24k-16|\le24|k|+16<25|k|\le k^2$$ and so $|k^2-a|<1$. So we only need check $k$ between $-24$ and $24$.