I know that a function is defined recursively when it calls itself to progressively converge on a solution based on an initial condition. For example if we consider the function defined by $$Sq(1) = 1$$ $$Sq(n) = Sq(n-1) + 2*n - 1 \quad \text{ for } n > 1$$
The part I am struggling with is working out what $Sq(2)$ and $Sq(3)$ would be (and so on)?
To find out what $Sq(3)$ is, we need to first find out what $Sq(2)$ is, and to find out what $Sq(2)$ is, we first need to find out what $Sq(1)$ is. This is the nature of the recursive definition. Luckily, we already know what $Sq(1)$ is. So
$$Sq(3) = Sq(2) + 2*3 - 1$$ $$Sq(2) = Sq(1) + 2*2 - 1$$ and $$Sq(1) = 1.$$
Now we plug this value back into $Sq(2)$ and find
$$Sq(2) = 1 + 4 - 1 = 4$$ $$Sq(3) = 4 + 6 - 1 = 9.$$