Copyright © University of Cambridge. All rights reserved.

## 'Chocolate 2010' printed from http://nrich.maths.org/

First of
all, pick the number of times a week that you would like to eat
chocolate (try for more than once but less than 10 times as more
than this is simply greedy).

Multiply this number by 2 (just to be bold).

Add 5 (for Sunday).

Multiply it by 50.

If you have already had your birthday this year add 1760.

If you haven't had your birthday yet this year add 1759.

Now subtract the four digit year that you were born.

You should have a three digit number.

The first digit of this was your original number.

The next two numbers are your age.

This problem was first published in 2010. How does this work?
Does this work for any year? If not, can you adapt it so that it
does?

Thanks to Jose Luis for the idea for this question.