From:
https://en.wikipedia.org/wiki/Carl_Friedrich_Gauss
Anecdotes[edit]
There are several stories of his early genius. According to one, his gifts became very apparent at the age of three when he corrected, mentally and without fault in his calculations, an error his father had made on paper while calculating finances.
Another story has it that in
primary school after the young Gauss misbehaved, his teacher, J.G. Büttner, gave him a task: add a list of
integers in
arithmetic progression; as the story is most often told, these were the numbers from 1 to 100. The young Gauss reputedly produced the correct answer within seconds, to the astonishment of his teacher and his assistant
Martin Bartels.
Gauss's presumed method was to realize that pairwise addition of terms from opposite ends of the list yielded identical intermediate sums: 1 + 100 = 101, 2 + 99 = 101, 3 + 98 = 101, and so on, for a
total sum of 50 × 101 = 5050. However, the details of the story are at best uncertain (see
[41] for discussion of the original
Wolfgang Sartorius von Waltershausen source and the changes in other versions); some authors, such as Joseph Rotman in his book
A first course in Abstract Algebra, question whether it ever happened.