We can now use this knowledge to calculate which weekday the doomsday is for any year.
To do this efficiently, you must hold a few values in your short-term memory. Don’t worry if you find this a bit tricky to start with, this will be much easier with practise.
Example year: 1966.
Determine the anchor day for the date and store the number 3 in your memory bank. Then discard the century, you won’t need it any more. The remaining calculations concerns only the last two digits of the year.
Find the highest multiple of 12 for the last two digits of the year. You can do this by dividing the number by 12 and round the answer down to the nearest whole number. Another way to think about this is to count how many times you can add 12 before reaching this number. In our example the answer is 5, because 5 × 12 = 60 and 6 × 12 is 72, which is higher than 66, so we can only fit five 12s into 66. Let’s add 5 to our working memory.
This step involves finding the remainder when the last two digits of the year are divided by 12. The modulo operation, as previously discussed, helps in dealing with cycles, such as the 7-day week cycle in the Doomsday rule. For the year 1966, we take the last two digits, which are 66, and perform a modulo 12 operation. When you divide 66 by 12, the remainder is 6. Therefore, the modulo 12 of 66 is 6. This number is important as it tells us how many years we are ‘over’ after fitting in as many complete cycles of 12 years as possible. Add 6 to your mental tally.
The final number to keep in mind is the count of fours within our modulo 12 result. Since we have determined that our modulo 12 number is 6, we now need to calculate how many full sets of four can be found in this number. This step is essential because every leap year cycle, which occurs every four years, influences the weekday pattern. For the number 6, there is only one full set of four, as 4 can be subtracted from 6 once, leaving a remainder of 2. So, we will remember the number 1 for this step. This count of fours represents the leap year adjustments needed for our calculation.
Now, it’s time to combine the numbers we’ve collected and use the modulo 7 operation to determine the Doomsday of the year 1966. This step is crucial because it ties together all the individual calculations we’ve done so far.
Start by summing the numbers from our previous steps: the anchor day (3), the highest multiple of 12 (5), the modulo 12 result (6), and the count of fours (1). In our case, this adds up to 3 + 5 + 6 + 1 = 15. Now, to find the Doomsday of the year, we apply the modulo 7 operation to this sum. This is done because there are 7 days in a week, and this operation helps us to cycle back to the correct weekday.
Performing the modulo 7 operation on 15, we get 1; therefore, the Doomsday for 1966 is Monday.