Problem

Source: singapore NTST 2009

Tags: number theory



Let $S=\{a+np : n=0,1,2,3,... \}$ where $a$ is a positive integer and $p$ is a prime. Suppose there exist positive integers $x$ and $y$ st $x^{41}$ and $y^{49}$ are in $S$. Determine if there exists a positive integer $z$ st $z^{2009}$ is in $S$.