LOGBOOK

HELP

1 / 29
time's up — finish this card
Other keys: showSpace: good1-4: rate0: skip5: flag
Topic What Is Doomsday

Question

What is the Doomsday algorithm?

Answer

A mental method, invented by John Conway, for finding the day of the week of any date in the Gregorian calendar — in your head, in seconds.

Give it any date — a birthday, a historical event, a date in 2087 — and it returns Monday, Tuesday, and so on, with no lookup and no memorised calendar. It rests on one clever anchor: each year has a special weekday (its "doomsday") that a set of easy dates always fall on, so every other date is a short count away. It's the classic "what day were you born?" party trick.

or press any other key
Topic What Is Doomsday

Question

How are the days of the week represented in the algorithm?

Answer

As numbers 0–6, starting from Sunday — so all the arithmetic is done mod 7.

Day #
Sunday 0
Monday 1
Tuesday 2
Wednesday 3
Thursday 4
Friday 5
Saturday 6

Every step of Doomsday adds or subtracts small numbers and reduces mod 7 (keep the remainder after dividing by 7). A result of 4 means Thursday. The whole trick is arithmetic on a 7-hour clock.

or press any other key