Explanation:
I don't know if this is valid but
We can think of this problem like
(6^7-6^6+6^5)/31 = x
Where x is a whole number so 6^7-6^6+6^5 is divisible by 31
Multiply each side with 31 :
6^7-6^6+6^5 = 31x
We can turn 6^7 into 6^5 x 6^2
We can also turn 6^6 into 6^5 x 6
So the equation turns into this :
(6^5 x 6^2) - (6^5 x 6) + (6^5 x 1) = 31x
We can factor out the 6^5 out of the left side of the equation, which turns into :
(6^5) x (6^2 - 6 + 1) = 31x
Which is also :
(6^5) x (31) = 31x
Divide each side with 31
6^5 = x
X is obviously a whole number