How to Quickly Add the Integers from 1 to N

The Math Dude: Quick & Dirty Tips to Make Math Simpler

Join Our Community of Science Lovers!

Scientific American presents Math Dude by Quick & Dirty Tips. Scientific American and Quick & Dirty Tips are both Macmillan companies.

In the last episode, we learned an amazing trick that you can use to quickly add up all the integers from 1 to 100. And that really was no small feat since we turned the herculean task of performing 100 addition problems—that is adding up 1 + 2 + 3 + 4 + … + 100—into a cute fuzzy kitten of a single multiplication problem. Although this trick is undeniably impressive, it’s not exactly the kind of thing you can pull out at parties to impress your friends since they could claim that you simply memorized the answer.

Which might lead you to wonder: Instead of just adding up the first 100 positive integers, is there a way to quickly calculate the sum of the first 50, 200, or maybe even 1,000 positive integers? In other words, is there a way to quickly calculate the sum of all the integers from 1 up to any other number—which we’ll call “n”—that your friends might throw at you? That would be a rather impressive trick, right? Well, as luck would have it, there is a way to do it…and that’s exactly what we’re going to talk about today.


On supporting science journalism

If you're enjoying this article, consider supporting our award-winning journalism by subscribing. By purchasing a subscription you are helping to ensure the future of impactful stories about the discoveries and ideas shaping our world today.


Recap: Adding the Integers From 1 to 100
Before we figure out how to add up all the integers from 1 to n, let’s recap how to add up all the integers from 1 to 100. The key to this is our friend the associative property of addition which says that you are free to add together a group of numbers in any order you like. In the past, we’ve seen how this freedom can be used to help you perform lightning fast mental addition, and now this same property comes to the rescue again since it means that we’re free to add up all the numbers from 1 to 100 in pairs.

 

> Continue reading on QuickAndDirtyTips.com

It’s Time to Stand Up for Science

If you enjoyed this article, I’d like to ask for your support. Scientific American has served as an advocate for science and industry for 180 years, and right now may be the most critical moment in that two-century history.

I’ve been a Scientific American subscriber since I was 12 years old, and it helped shape the way I look at the world. SciAm always educates and delights me, and inspires a sense of awe for our vast, beautiful universe. I hope it does that for you, too.

If you subscribe to Scientific American, you help ensure that our coverage is centered on meaningful research and discovery; that we have the resources to report on the decisions that threaten labs across the U.S.; and that we support both budding and working scientists at a time when the value of science itself too often goes unrecognized.

In return, you get essential news, captivating podcasts, brilliant infographics, can't-miss newsletters, must-watch videos, challenging games, and the science world's best writing and reporting. You can even gift someone a subscription.

There has never been a more important time for us to stand up and show why science matters. I hope you’ll support us in that mission.

Thank you,

David M. Ewalt, Editor in Chief, Scientific American

Subscribe