I was reading Wikipedia's article for nested radicals (link here), when I stumbled across Ramanujan's problem. I was following along fine until it got to the step where $F(x+n)$ had to be simplified. The page simply says:
$F(x)^2 = ax+(n+a)^2 +xF(x+n)$
It can then be shown that
$F(x) = x + n + a$
All I'm really asking for is a clarification as to what happens between those two statements. Basically, how can $F(x+n)$ be shown to be simplified to $x+2n+a$ (which is the necessary result for the algebra to work out?