Misplaced Pages

Doomsday rule

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

This is an old revision of this page, as edited by 61.95.178.27 (talk) at 18:50, 3 November 2004. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 18:50, 3 November 2004 by 61.95.178.27 (talk)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The Doomsday algorithm is for calculating the day of the week and makes use of the fact that in each year,

 28/29 February (2/28 or 2/29)
 4 April (4/4)
 6 June  (6/6)
 8 August (8/8)
10 October (10/10) and
12 December (12/12)

are all the same day of the week. This day of the week is called Doomsday and is derived from the last day in February, be it the 28th or 29th. The algorithm also defines 9/5 and 7/11 and their reverses to be Doomsday.

Therefore, if you know what day of the week Doomsday - last day in February - is for a given year, you can easily determine the day of the week for any other date in that year.

The Doomsday algorithm was invented by John Horton Conway.


An example

In the year 2004, February 29th 2004 is Sunday Hence Doomsday for 2004 is Sunday

Hence, we deduce that the following days in even months are sundays

 4 April (4/4)
 6 June  (6/6)
 8 August (8/8)
10 October (10/10) and   
12 December (12/12)

For odd months remember 9/5 7/11. That means that the following are sundays too:

 9 May (9/5)
11 July (11/7)
 5 September (5/9)
 7 November (7/11)

For January and March, its quite different However. The Doomsdays are:

 3 January (3/1)  - for non leap years
 4 January (4/1)  - for leap years

and for March the doomsday is

 7 March (7/3)

As an example to find the day of the week for April 17th:

We know April 4th is a Sunday,
So is April (4+7)th,
And April (4+14)th too,
That is April 18th is a Sunday and hence
-April 17th is a Saturday-

External links

This article is a stub. You can help Misplaced Pages by expanding it.