For exact solutions: you are going to be limited to 4th degree equations. 5th degree equations, in general, do not have a closed form solution, though they can be approximated using Newton's Method. You can find information about general solutions to cubic and quartic solutions
here. Mind you, those solutions may be integers but look like messy complex numbers.