I have the recursive function
$R(0) = 2$
$R(n) = \left(R(n-1)\right)^{2}$
And I found the non-recursive version of it
$P(n) = 2^{2^{n}}$
How do I prove they are the same through induction? I tried making $n = k + 1$ but got stuck on the R function
Edit: Changed the 3s to 2s