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 Ladedu (talk | contribs) at 22:07, 8 January 2005 (Example 1 (this year)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 22:07, 8 January 2005 by Ladedu (talk | contribs) (Example 1 (this year))(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The Doomsday algorithm is a way of calculating the day of the week of a given date. It is perpetually accurate since the Gregorian calendar moves in cycles of 400 years. It makes use of the fact that, in each year, certain dates are all on the same day of the week.

The algorithm was invented by John Horton Conway. It can be used for either the Gregorian Calendar or the Julian Calendar, but note that Julian calendar Doomsdays usually occur on different days from the Gregorian calendar Doomsdays.

The algorithm

The algorithm has three steps, namely, finding the anchor day for the century, finding a year's doomsday, and finding the day of week of the day in question.

To find a century's anchor day, begin by finding the century which the date falls in. (For the purposes of this calculation, century years will be treated as though they fall in the century that follows, even though they technically fall in the same century as the years before them. 2000 is therefore part of the twenty-first century, not the twentieth century.) A year's century number is equal to its first two digits plus one (so 1966 is in the twentieth century). Take the century number and multiply by 5. Next, take the integral part of the quotient when the century number minus one is divided by four and add the two numbers. (Taking the remainder mod 7 is often done, since it won't affect the result.) Now count forward that number of days from Thursday to get the anchor day for the century.

Next, one must find the year's Doomsday. To accomplish that according to Conway, begin by taking the integral part of the quotient when the last two digits are divided by 12. Next, determine the remainder of this first quotient. After that, take the integral part of this number when it is divided by 4. Finally, determine the sum of the three numbers.

Now count forward the specified number of days from the anchor day (again taking remainder mod 7 can be done) to get the year's Doomsday.

The following days all occur on Doomsday for any given Gregorian year:

The dates listed above were chosen to be easy to remember; the ones for even months are simply doubles, 4/4, 6/6, 8/8, 10/10, and 12/12. Four of the odd month dates (5/9, 9/5, 7/11, and 11/7) are based on the phrase "I work from 9 to 5 at the 7-11."

For dates in March, March 7 falls on Doomsday, but the pseudodate "March 0" is easier to remember, as it is necessarily the same as the last day of February.

Therefore, if you know what day of the week Doomsday — the 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, by finding the nearest Doomsday.

Examples

Example 1 (this year)

Suppose you want to know which day of the week Christmas Day of 2005 is. In the year 2005, Doomsday is Monday. (The century's anchor day is 110 days after Thursday, or Tuesday, and 2005's Doomsday is six days beyond.) This means that December 12 is a Monday. December 25, being thirteen days afterwards, falls on a Sunday.

Example 2 (other years of this century)

Suppose that you want to find the day of week that the September 11, 2001 attacks on the World Trade Center occurred. The anchor is Tuesday, and one day beyond is Wednesday. September 5 is a Doomsday, and September 11, six days later, falls on a Tuesday.

Example 3 (other centuries)

Suppose that you want to find the day of week that the Civil War broke out at Fort Sumter, which was April 12, 1861. The anchor day is 99 days after Thursday, or Friday. The digits 61 give a displacement of six days, so Doomsday was Thursday. Therefore, April 4 was Thursday, so April 12, eight days later, is a Friday.

External links

Categories: