Ask the solver to simplify (x+1)^2-x^2 and the answer line is 2x + 1: the gap between two consecutive squares is always odd. Put real numbers in — 51² − 50² prints 101, which is 2·50 + 1 exactly, and nobody had to subtract 2601 − 2500 to know it.
Run the same identity from x = 0 upwards and you are adding odd numbers instead of subtracting squares: 1 + 3 + 5 + 7 + 9 + 11 = 36, and 36 is 6². Six odd numbers, six squared. The reason the sum of the first n odd numbers is n² is that each odd number is the step from one square to the next.
Answer
2x + 1
How to read it
What simplify returns for (x+1)^2-x^2. With numbers, 51^2-50^2 gives 101.
Source
The odd-number/square relation is classical (Nicomachus, Introductio arithmetica, c. 100 CE); the difference identity is an elementary-algebra exercise
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.