Adding 1 to 100 the way Gauss did
What is 1 + 2 + 3 + ... + 100? Find it in your head in a few seconds, then give the general formula for 1 + 2 + ... + n, explain why it works with a picture, and use the same idea to add 3 + 7 + 11 + ... + 99.
Show a hint
Pair the first number with the last, the second with the second-last, and so on.
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
How many chimes in a day?Cut the clock face into three parts with equal sumsEight eights that add to a thousandFour fours from zero to tenWhy the centre of a 3 by 3 magic square is always 5
All questions →