Your Birthday Next Year

  • Medium
  • Clock and calendar puzzles
  • Tests: Tracking a remainder across leap years

The puzzle

If your birthday falls on a Tuesday this year, what day does it fall on next year?

And how long before it returns to a Tuesday?

Stuck?

One at a time, smallest first. Open only as many as you need — the whole point of the puzzle is the part you work out yourself.

Hint 1

365 = 52 × 7 + 1 and 366 = 52 × 7 + 2.

Hint 2

Whether the shift is one day or two depends on whether a 29 February falls between the two birthdays.

Show the answer Hide the answer

Wednesday, unless a leap day falls in between, in which case Thursday. The weekday returns after 6 years, or 11 if a century rule intervenes.

How to get there

A common year is 365 days = 52 weeks + 1, so a date moves on one weekday. A leap year is 366 = 52 weeks + 2, so it moves on two - but only if the 29 February lies between the two birthdays, which depends on whether your birthday is before or after it.

The shifts over four consecutive years sum to 1 + 1 + 1 + 2 = 5, so after four years a date has moved five weekdays, not zero. It takes a further run to bring the total to a multiple of seven.

In practice the pattern of gaps is 6, 11, 6, 11 for most dates: 1 + 1 + 2 + 1 + 1 + 1 = 7 over six years. The 11-year gaps appear when the arithmetic steps over a century year that is not a leap year, which is why 2100 will disrupt everybody's pattern.

The technique worth keeping

Reduce each year to its remainder mod 7 - one for common, two for leap - and add them until the running total is a multiple of seven. The leap day counts only if it falls inside the interval, which depends on the date.