Can anybody help me in understanding the underlined part in this image.
$q^k$ is coprime to $a^{n-q}$ becuase if it was not the case then $q|a^{n-q}$ which implies $q|a$ which is a contradiction to the fact that gcd$(a,n)=1$.
Is this argument correct?
