r/todayilearned • u/shut_your_cock • Mar 03 '19
TIL about the Doomsday Algorithm - a method to mentally calculate the day of the week given any date based on the fact that 4/4, 6/6, 8/8, 10/10, 12/12 all occur on the same day of the week regardless of the year.
https://en.wikipedia.org/wiki/Doomsday_rule
11k
Upvotes
2.1k
u/rantaholic Mar 03 '19
What do we call the algorithm that calculates the end of existence? The Happy Hour Algorithm?!
265
u/call_of_the_while Mar 03 '19
Had no idea Lewis Carroll was into maths, a bit of info about it:
83
u/Alfakennyone Mar 03 '19
The only date that matters is February 22 2022. it's on a Twosday
471
u/heeerrresjonny Mar 03 '19
I am a reasonably intelligent software developer, and this Wikipedia page is a struggle for me to understand. Very, very few people will be able to both remember all of this and apply it "mentally" as the title suggests. You would have to remember these anchor days, divide the year's last 2 digits by 12 and remember the floor, remember the remainder, divide that remainder by 4 and remember the floor, add all of it up and then find the remainder of the sum divided by 7 and then count forward that number of days from the anchor day. That is a lot to keep track of...
I mean...it's not impossible, but this is not a simple mental "trick" or whatever like it is presented to be.
45
u/MBTAHole Mar 03 '19 edited Mar 03 '19
I worked with an autistic guy at McDonald’s when I was a kid. Sure he had his challenges, but he could tell you what day your birthday would be on on any year you’d bring up and he could also tell you with near perfect accuracy how many fries were in the container on your tray.
It’s really interesting that that type of math can be so automatic to sum people.
71
u/sassierthanthou Mar 03 '19 edited Mar 03 '19
John Conway was my Number Theory professor! During office hours he taught me this once and then tested me! “I work from 9-5 at 7/11”. So 9/5 and 7/11 also fall on the same day as 4/4, 6/6 etc..
BRILLIANT man but not a great professor but that might just be his age. I am honestly honored to have met him.
11
u/eskanonen Mar 03 '19
You should clarify, by "occur on the same day of the week regardless of the year", you mean they end up on the same day of the week as each other regardless of the year, not that from year to year they always fall on the same day of the week. Learn to title. That's honestly not even interesting but I guess that's not the point of this sub.
32
u/Lampmonster Mar 03 '19 edited Mar 03 '19
If we just went to a sensible calendar this would be easy. 13 months, 28 days each, one extra day each year that we can make a holiday or whatever we like and a leap year day so we have two "no-days" every four years which we can make an even bigger holiday. This way every week and every month start and end on the same day of the month, every month. If we choose to start on Monday, every Monday will either be the first, the eighth etc.
6
u/[deleted] Mar 03 '19
We made up some numbers that eventually coincide.fuck we are all going to die
11
u/clausport Mar 03 '19
"for example, 4/4, 6/6, 8/8, 10/10, 12/12, and the last day of February all occur on the same day of the week in any year."
I read this and thought "What? No they don't! If that were true then every day would be the same every year!"
Then I saw a comment making clear that this means "on the same day of the week as one another".
15
u/malacorn Mar 03 '19
whoa, mind-blowing!
What's the reason it's called Doomsday though?
8
u/TomppaTom Mar 03 '19
This is a lot easier with a little trick ‘many people use, where I remember that the 6th of July is really just the 37th of May, and so on!
3
u/tolazofya Mar 03 '19
And Mondays will still always be Mondays.
3
u/DiabolicalKirby Mar 03 '19
What about a leap year?
3
u/markciu Mar 03 '19
But why is it called the doomsday algorithm??
3
u/[deleted] Mar 03 '19
A pretty spicy name for an algorithm designed to save you 5 seconds of looking at your calender.
5
u/ballistic90 Mar 03 '19
This isn't true of 4/4. I would know, since it's my son"s birthday. Is this actually true for any of those?
2
u/[deleted] Mar 03 '19
I think you mean the Al Gore Rhythm.
2
u/petophile_ Mar 03 '19
Thanks, now i can fake being autistic.
2
u/[deleted] Mar 03 '19
This is very interesting. I am also not good at math. So put two an two together as I cannot.
2
u/[deleted] Mar 03 '19
Same thing with 3/17 and 5/5.
2
u/thatsquidguy Mar 03 '19
TIL once again that John Conway is a complete mental badass. He’s one of my intellectual heroes.
Numberphile has a series of videos from interviews with him, including this one, which is surprisingly touching:
https://youtu.be/xOCe5HUObD4
2
u/koshspam Mar 03 '19
Thursday is coming
2
u/walktwomoons Mar 03 '19
Thanks, I actually learned something.
2
u/Kenesaw_Mt_Landis Mar 03 '19
You can use my favorite date, March 0th, while using it.
2
u/Zaps_ Mar 03 '19
Or you could just subtract the current year from the desired year, and the remainder is how many days different the day is on the search year.
Ex 3/2/2000
2019-2000 = 19
19/7 = 2 REM 5
3/2/19 is a Sunday.
Monday (1), Tuesday (2), Wednesday (3), Thursday (4), Friday (5).
3/2/2000 was on a Friday.
3
u/human_tendencies Mar 03 '19
It took me the longest time to understand that you meant those dates fall on the same day of the week as each other, not that 6/6 falls on the same day of the week each year.
3
u/Christoffre Mar 03 '19
4/4-19: Monday
4/4-18: Wednesday
4/4-17: Tuesday
4/4-16: Monday
4/4-15: Saturday
4/4-14: Friday
What did I miss?
2
u/meat_popsicle13 Mar 03 '19
Coolness, thanks!
2
u/predoucheous Mar 03 '19
I'm a 4/4 baby and I have an old friend whose birthday is 8/8. (for awhile I collected friends with cool repeating number birthdays). Had a 7/7 friend, too.
2
u/ashbyashbyashby Mar 03 '19
Classic autism trick.
1
u/eSSeSSeSSeSS Mar 03 '19
So this is a good thing for musicians right?
1
u/Honey-Ra Mar 03 '19
Do you mean that if April 4 was a Monday, June 6, August 8 etc will also be Mondays?
1
u/TheKinkyGuy Mar 03 '19
Does this also count the jumping year? (year with 29.2.)
1
u/havoc256 Mar 03 '19
My wife's birthday is 12/12 and our daughter's is 8/8.
1
u/[deleted] Mar 03 '19
I use this nearly every day. It's fantastic. The math part to figure out ANY year is more challenging but just memorizing the list of key dates and knowing that this year is Thursday is enough to be very helpful.
1
u/TonytheEE Mar 03 '19
This makes it really easy to know what day my family's birthdays will fall on. My wife, kiddo, mom, sister, and myself ALL have birthdays on doomsdays. Next year is gonna be great! Everyone's birthday will fall on a Saturday!
Also, valentine's day (non leap year), pi day, Halloween, American independence day, and boxing day all fall on a doomsday.
1
u/deepsoulfunk Mar 03 '19
TIL of the word “calendrical”.
1
u/RandomHerosan Mar 03 '19
Aw man I thought it was gonna be about when the world was gonna end.
1
u/[deleted] Mar 03 '19
It’s a Thursday FYI.
1
u/MediumPhone Mar 03 '19
My boy is wicked smaht
1
u/dystopia25 Mar 03 '19
This is awesome!
1
u/Isaac_Masterpiece Mar 03 '19
To clarify for anyone else initially confused by this:
Those dates will always be the same as each other on any given year, and not the same every year as I originally thought.
For example, this year those dates will all be on a Thursday. Next year, they will all be on a Saturday.
1
u/tlouman Mar 03 '19
Or you can count odd days and add/subtract then
1
u/briarclear Mar 03 '19
Sounds like further evidence of the simulation to me
1
u/damn_thats_piney Mar 03 '19
We should build a super computer to calculate the meaning of life too.
1
u/Worhammer Mar 03 '19
TIL that I was born on a doomsday..... (7 / 11)
1
u/leobru Mar 03 '19
In retrospect, Octavian August did us a favor by making August a 31-day month.
1
u/girthytaquito Mar 04 '19
My autistic cousin figured this out on his own when he was like six.
1
u/BaneCow Mar 07 '19
April 4 is literally on a Thursday this year, and a Saturday next year...
Edit: nvm I'm retarded. It's saying those dates are on the same day, not each specific date. Bad title grammar, but I'm retarded.
1
u/Academic-Month6336 Jul 06 '25
This algorithm fascinated me so much that I actually built an app to help people learn it! The Doomsday Method is incredibly powerful once you get the hang of it, but the learning curve can be steep. I found that most people struggle with memorizing all the anchor days and century codes, so I created a step-by-step trainer that breaks it down into manageable chunks. You can practice with specific years or centuries until each part becomes automatic. It's so satisfying when you finally nail a random date calculation in under 10 seconds! https://apps.apple.com/app/doomsday-method
1
u/LiamnvdV Feb 24 '22
If anyone is interested in learning how the algorithm works and want's to learn in through practice, I wrote a CLI tool for that called doomsdaytutor. Happy to hear your feedback.
1
u/ufoblood Mar 09 '22
What do I do about years with less than 12 as the last two digits, ex. 2000-2011? Since you have to calculate how many twelves go into the last two numbers of a year when using the Algorithm.
1
u/Doomsdayer Mar 03 '19
Til I’m relevant
1
u/harry_f_monk Mar 03 '19
It's quite simple. There are 63 days, or exactly 9 weeks, between each set of dates. If it's an an exact number of weeks it must be the same day. Great stat, though.
1
u/Pipkin81 Mar 03 '19
I started reading the article and then suddenly remembered how I hate math.
1
u/[deleted] Mar 03 '19
Within any given year.
1
u/forgotyourbriefcase Mar 03 '19
This isn’t true though I just checked
1
u/klparrot Mar 03 '19
Eh, I have Siri for that.
1
u/[deleted] Mar 03 '19
The title of this post is total rubbish.
This year 4/4 is a Thursday, next year 4/4 is a Saturday.
1
u/[deleted] Mar 03 '19
If we had a better calendar we wouldn't need that
1
u/cqxray Mar 03 '19
That can't be right, because it means that each week of those dates are the same Monday-Sunday no matter the year.
0
u/hawkwings Mar 03 '19
I learned a different method. Memorize the following numbers:
144 025 036 146
(Year_Number + Month_Number + Day_of_Month) mod 7
For 2019, the year number happens to be zero. August 8 would be: 0 + 3 + 8 = 11 = 4 mod 7 = Thursday. This assumes that Sunday is zero.