Proof
We know that any integer \(n\) has a unique prime factorization. So \(n\) can be written as
where \(s \geq 0\). We want to show that \(n = 2^rm\) where \(r \geq 0\) and \(m\) is odd. Hence, let \(r = s\). Now, if \(k = 0\), then we don’t have any remaining prime factors so let \(m = 1\). Otherwise, let
\(m\) is either \(1\) or a product of odd primes raised to some power. The product of odd numbers is odd and so \(m\) is odd.
To show uniqueness, suppose it wasn’t unique. Then
for some \(r,s \geq 0\) and \(m_1,m_2\) are positive odd integers. Without loss of generality, assume that \(r \leq s\). Then
Since \(m_2\) is odd, the right hand side is even unless \(s - r = 0\). Therefore, we must have that \(s = r\). But this implies that \(m_1 = m_2\). Hence, the representation \(n = 2^rm\) with \(m\) odd is unique. \(\ \blacksquare\)