$32^n = 167x + 2$, find the smallest positive integer n for some integer x.
I have searched the mathematics exchange site for this question, but there might be some mistake in my searching capabilities please provide the link if the same question is found anywhere else
My thought process:
I thought of making x = 2y, (bcz LHS is even)
then it converts to $32^n = 334y + 2$
then dividing by 2
$2^{5n-1} = 167y + 1$
then thought of factorisation, but wasnt able to proceed
then againg tried mod 16
got that y = 16k + 9 format
After some of this I realised that I have to use bounding to get the upperbound of n (upperbound of x would also work the same)
Now I am asking for help, as I am not able to proceed in the direction of bounding.
This question is from PUMaC 2008-09