Completing squares; basically the same method as Steve, though I started with n^2-5kn-33k-17=0 and worked from there.
blackjack
flooble's webmaster puzzle