$ x^2+px+q=0 ${p,q are integers; a,b are roots}. Prove $a^n+b^n$(n is any natural number) is an integer.
This is the third part of the problem.I have previously proved that $a^2+b^2$ and $a^3+b^3$ are integers using the binomial theorem and vieta's laws$(a+b=-p, ab=q)$. Using the same approach here,i have:
$a^n+b^n = (a+b)^n-a^{n-1}b-a^{n-2}b^2...-ab^{n-1}$
$=(-p)^n-ab(a^{n-2}+a^{n-3}b+...+b^{n-2})$
$=(-p)^n-q((a+b)^{n-2}...))$
Here i am stumped.I think that depending on whether n is even or odd the equation reduces to the previous two cases i have already proven.How do i state this formally?
PS: i am an independent learner without much experience with proofs.Please give a concise proof if you can(or a really detailed hint).
The proof is done by induction: $$ P(n) \ \ \ \ \ \ \ a^n+b^n \text{ is an integer }$$