I am currently stuck on a number theory problem. The question is to determine the GCD of every number in the form $p^6-7p^2+6$, where $p$ is a prime number and greater than or equal to $11$.
My approach: After a substitution and factoring I came to factor it as $(p^2-2)(p^2+3)(p-1)(p+1)$. By examining the first $10$ cases I come to the conclusion that the GCD is $672$, as the factors $2^5$, $3$ and $7$ are always present in all the cases. Just I do not know how to prove it.
prime-numbers
tag since that is a red herring. The proof works for any set of odd integers not divisible by $7,,$ and includes $11$ & $13$ (or any other index subset yielding $672$ as gcd). – Bill Dubuque Aug 27 '23 at 00:50