From the Balkan Mathematics Olympiad 2018:
Find all prime numbers $p$ and $q$ such that $3p^{q-1}+1$ divides $11^p+17^p$.
I started using Fermat's Little Theorem, which states that $a^{p-1}-1$ is divisible by $p$ if $p$ is a prime. But I could not find any way to solve the problem.
Any suggestions, please.
hint Assume $ p\ne q$ and both $\ne 11,17$.
then by Euler's theorem
$$3p^{q-1}+1 \equiv 4 \mod q$$ and $$11^p+17^p \equiv 11+17 \mod p$$