I have a task to solve with algorithm, which is writing all the binary numbers. I wrote the recurrence relation below, as I count the few first values: $$G(n) = \begin{cases}1&\qquad n = 0\\ 2G(n - 1)&\qquad n > 0 \end{cases}$$
I need to prove it by mathematical induction, that $G(n)=2^n$ is true for all $n>0$.
Of course, at first I counted few first values: $G(0)=1$, $G(1)=2$, $G(2)=4$, $G(3)=8$ then first step of induction: $n=1$ $L=G(1)=2 R=2G(0)=2 L=R$ second step for $n=k$ $G(k)=2G(k-1)$ And final 3rd $G(k+1)=2G(k)$.
I'm going to make a few assumptions here, as your post is not clear.
For a function $G(n)$ defined as $G(n)=\begin{cases}1\qquad\qquad\qquad n=0\\2G(n-1)\qquad n>0\end{cases}$, we want to prove that the property $P(n): G(n)=2^n$ is true for all $n\in\mathbb{N}$. We do so by (weak) induction.
Base Case
From the definition of the function, we have $G(0)=1$. As $2^n\vert_{n=0}=1$, we have $G(0)=2^0$, and $P(0)$ is true.
Inductive Hypothesis
We assume that $P(n)$ is true, i.e. $G(n)=2^n$.
Inductive Step
We obtain $G(n+1)$ from its definition, i.e. $G(n+1)=2G(n+1-1)=2G(n)$.
By hypothesis, $G(n)=2^n$, therefore $G(n+1)=2\cdot 2^n=2^{n+1}$.
Therefore $P(n+1)$ is true.
Conclusion
The property $P$ is initialized for $n=0$, and $P(n+1)$ is true if $P(n)$ is true, therefore, by the axiom of induction, $P(n)$ is true for all $n\in\mathbb{N}$. $\Box$