Originally posted by mtthwYou are of course correct. Those mathematical explanations are correct. However there is another answer which is not based on a simple mathematical function.
You may well be right about what's intended, but when someone comes up with a simple mathematical relation (doubling squares) that works it's a bit difficult to say it's "wrong".
It's a fundamental problem with this sort of puzzle, in my opinion.