This is what I am trying to prove:
Prove that every positive integer $n$ can be expressed as the product of an odd number and a power of $2$, that is, for every $n ≥ 1$ there are $h$ in $Z^+$, $h$ odd and $k$ in $Z$, $k ≥ 0$ such that $n = h· 2^k$. HINT: use strong induction.
This is what I have:
By induction on $n$:
Base Case: If $n=1$, then $h=1$ and $k=0$ and $1=1·2^0=1$ as required.
Inductive Step: Assume that for some $m$ in $Z^+$ the statement is true. Now consider $m+1$. If $m+1$ is odd, then $h=m+1$ and $k=0$, so $m+1=(m+1)k^0=m+1$ as required. If $m+1$ is even, then $m+1=2l$ for some $l$ in $Z^+$. Since $l=h·2^k$, $m+1=2l=2·h·2^k=h·2^{k+1}$. Thus, the statement is true.
I'm not really sure if my proof is completly correct, specifically the induction step. I'm also not sure if I proved everything that needs to be proved. Can someone check if I made any errors and if what I did is complete?
First, let me notice how this result easily follows from fundamental theorem of arithmetic: the number $n$ can be written essentially uniquely as $2^{k}\cdot p_1^{e_1}\cdots p_i^{e_i}$, with the $p_j$ odd primes, and the exponents bigger or equal to zero. However, if you do not have this powerful tool at disposition, you can use strong induction: your proof is not totally wrong, the idea is right, just, by strong induction, you have to assume that all numbers up to $m$ have the required property, and so also $l$, which since $m+1$ is even, is strictly smaller than $m+1$.