Problem

Source: China Western Mathematical Olympiad 2012 P1

Tags: modular arithmetic, number theory, prime numbers, number theory proposed



Find the smallest positive integer $m$ satisfying the following condition: for all prime numbers $p$ such that $p>3$,have $105|9^{ p^2}-29^p+m.$ (September 28, 2012, Hohhot)