I like math because it's a puzzle to me, but am really not very good at it. But I figured out the relationship below myself. Just curious, is this already pretty common knowledge? Kind of proud of myself for figuring it out, but my son who's getting math minor had never heard of it. Apologies in advance for any poor explanation.
$b^2 = a^2 + a + b$ for positive integers where $b - a = 1$
e.g. $2^2 = 4$
$3^2 = 9$
$4 + (2 + 3) = 9$
$4^2 = 16$
$9 + (3 + 4) = 16$
and so on.
Edit in response to @fleablood comment: Where b = a + 2 Even numbers... 2^2 = 4 -> a^2 = a2 4^2 = 16 -> b^2 = b2 16 - 4 = 12 -> b2 - a2 = c (a + 1) * b = 3 * 4 = c Odd Numbers... 3^2 = 9 -> a^2 = a2 5^2 = 25 -> b^2 = b2 25 - 9 = 16 -> b2 - a2 = c (a + 1) * b = 4 * 5 = 20 c != 20
We have $$b=a+1$$
This implies
$$b^2=(a+1)^2=a^2+2a+1=a^2+a+a+1=a^2+a+b$$