Two divides Power Plus One iff Odd

From ProofWiki
Jump to navigation Jump to search

Theorem

Let $q, n \in \Z_{>0}$.

Then:

$2 \divides \paren {q^n + 1}$

if and only if $q$ is odd.

In the above, $\divides$ denotes divisibility.


Proof

By Parity of Integer equals Parity of Positive Power, $q^n$ is even if and only if $q$ is even.

Thus it follows that $q^n + 1$ is even if and only if $q$ is odd.

The result follows by definition of even integer.

$\blacksquare$


Sources