![Puzzling](http://cdn.sstatic.net/Sites/puzzling/Img/apple-touch-icon.png)
Here's a puzzle of mine that I created around 2 hours ago:
Let $f(x):=x^2$ and $g(x):=x-4$. Starting with x=0, what is the least amount of times you need to apply the functions $f$ and $g$ so that at some point, the output is $1024$?
Restrictions
Negative numbers less than $-8$ are not allowed.
...