Puzzling Adventures: Building the Perfect Alarm Clock

What if you could reengineer the buttons on your alarm clock to reduce the number of times you needed to push them to set it?

Join Our Community of Science Lovers!

My digital alarm clock has many responsibilities. First, it has to wake me up at 6:30 A.M. to get my kid to school. Later, I reset it for the various 10-minute naps I take during the day.

Resetting the alarm clock for a new time entails changing the hour one hour at a time on a 24-hour clock and then changing the minute value one minute at a time. In the worst case, the minute value must be changed by clicking 59 times. (As you can see, it's not an iPhone, Android or other device that allows me to key in the right time.)

So, I thought that it would be nice to have an extra button that would advance the minutes by more than 1 with each click. The question then is: What number of minutes, as an interval, would be most efficient?

Warm-up:
Suppose the multi-minute button (MM for short) always advanced the time by 5 minutes. What, then, is the greatest possible number of clicks necessary to reset to the correct minute value?

Warm-up solution

Problems: 1. Still, 5 minutes may not be the best interval to choose for MM. What might be better for minimizing the worst-case number of clicks? What is that worst case?

2. Suppose that the first click on MM advanced a certain number of minutes, the second click on MM a possibly different number of minutes, and so on. What should those numbers be to minimize the worst-case number of clicks?

3. Suppose you were given two multi-minute buttons (MM1 and MM2), and each advanced the time by a fixed number of minutes. What should those two fixed numbers be for the two buttons to minimize the worst-case number of clicks? How many is that worst number?

Hint: Suppose one button advanced the minutes by, say 32, then two clicks of that button advanced the minute hand by 4 without changing the hour value.

Puzzle solution


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.


We now have three buttons that advance the time, one by 1 minute and the others by other amounts. Many variants are still possible. For example, we could take away the constraint that all buttons advance the time and the constraint that one of the buttons must advance by 1 minute. If you have a cool variant that you can solve, then please post it, with the solution, as a comment on this story.

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