Randomly Unlucky

Which day of the week is the 13 th ^\text{th} day of a month most likely to fall on?

Monday Tuesday Wednesday Thursday Friday Saturday Sunday Equally likely

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Calvin Lin Staff
Jan 13, 2017

For a non-leap year, since 365 = 7 × 52 + 1 365 = 7 \times 52 + 1 , so the calendar moves forward 1 day. If the 1st of January is a Sunday this year, then it would be a Monday next year.
For a leap year, since 366 = 7 × 52 + 2 366 = 7 \times 52 + 2 , so the calendar moves forward 2 days (after Feb 28th). Since we simply cycle through the days, it seems very equally likely that the 13th day of the month is any of the days of the week.

Let's investigate further to see why this intuition works. Recall that every 4 years, we get a leap year. This suggests that after 28 = 4 × 7 28 = 4 \times 7 years, we would have done a complete cycle and are back to the original day of the week. For example, if we record down when the first of January for each year from 2001 to 2028 (inclusive), we obtain:

1 2 3 4 6 7 1 2 4 5
6 7 2 3 4 5 7 1 2 3
5 6 7 1 3 4 5 6

However, because every 100 years is not a leap year, as such this would mess up the pattern. In particular, from 2001 to 2028, 2056 or 2084, each weekday is equally likely. However, from 2000 to 2112, since 2100 is not a leap year, the pattern no longer holds . Our intuition is thrown off because we forgot to account for the other edge cases.

Further complicating this, is that every 400 years is not a leap year! Let's consider the number of days in these 400 years. There are 97 leap years in this period, or a total of 400 × 365 + 97 = 146097 400 \times 365 + 97 = 146097 days. Since this is a multiple of 7, if there is any discrepancy during this period, it would persist throughout time, instead of being evened out in 2800 years. It remains to check what happens to the 13th of the month over a period of 400 years.

As it turns out, the frequency of the 13th day of the month is:

Sunday Monday Tuesday Wednesday Thursday Friday Saturday
687 685 685 687 684 688 684

As such, Friday is the most likely day of the week!

Interesting!

Nihar Mahajan - 4 years, 4 months ago

Every 400 years is indeed a leap year..like 1600,2000 I suppose.

Vishal Yadav - 4 years, 3 months ago
Michael Mendrin
Jan 13, 2017

Using a computer and Zeller's Congruence , we can directly count the number of times the 13th falls on the days of the week. Since the Gregorian calendar cycles every 400 400 years, let parameter n n be the number of the month from Year 1 1 to Year 400 400 , or 4800 4800 months in all. Then

m = m= Mod [ n + 9 , 12 ] + 3 \left[n+9,12\right]+3

y = n 12 y=\left\lceil\dfrac{n}{12}\right\rceil

k = k= Mod [ y , 100 ] [y,100]

j = y 100 j=\left\lfloor\dfrac{y}{100}\right\rfloor

q = 13 q=13 for 13th day off the month

h = h= Mod [ ( q + 13 ( m + 1 ) 5 + k + k 4 + j 4 + 5 j ) , 7 ] \left[ \left( q + \left\lfloor \dfrac{13(m+1)}{5} \right\rfloor + k + \left\lfloor \dfrac{k}{4} \right\rfloor + \left\lfloor \dfrac{j}{4} \right\rfloor + 5j \right) ,7 \right]

where h h is the day of the week, ( 2 , 3 , 4 , 5 , 6 , 0 , 1 ) \left(2,3,4,5,6,0,1\right) for (Sun, Mon, Tues, Wed, Thurs, Fri, Sat). \; When tabulated, the results are

( 687 , 685 , 685 , 687 , 684 , 688 , 684 ) \left(687, 685, 685, 687, 684, 688, 684\right)

and so the 13th falls on a Friday more than any other day of the week.

Edit: If you're curious about any of the other days of the month, particularly the 29th, 30th, and the 31st, it turns out that the distribution is always the same, except for rotation. For example, the dates 6th, 13th, 20th, 27th have the same distribution

( 687 , 685 , 685 , 687 , 684 , 688 , 684 ) \left(687, 685, 685, 687, 684, 688, 684\right)

while dates 3rd, 10th, 17th, 24th, 31st have the following distribution, the most frequent day of the week being Tuesday

( 687 , 684 , 688 , 684 , 687 , 685 , 685 ) \left(687, 684, 688, 684, 687, 685, 685\right)

Formatting note- to write a floor function in latex, you do \left\lfloor\dfrac{?}{?}\rfloor\right

To write a ceiling function, you do \left\lceil\dfrac{?}{?}\rceil\right

Freddie Hand - 4 years, 4 months ago

Log in to reply

Most often, users who are not used to LaTeX \LaTeX commands often leave out the \ . However, I don't mind mathematicians who intentionally leave out the command.

By the way, the correct way to present the size-relative command is \left\lfloor and then, \right\rfloor. \left and \right are used to match the size of the equation. If you place \right after \rfloor, then there is an error in LaTeX \LaTeX -parsing. This is because there is no element included after \right. For instance, \left\lfloor \dfrac{}{} \rfloor\right presents.. \left\lfloor \dfrac{}{} \rfloor\right whereas \left\lfloor \dfrac{}{} \right\rfloor presents... \left\lfloor \dfrac{}{} \right\rfloor Be very careful of how you type the commands.

Note: Users often typed In-lne equation commands (such as x + y x+y in the same line with the text) instead of including indented center equation. If we type x + y, then we have x + y x + y . Otherwise, with brackets, x + y x + y .

See here for complete guide.

Michael Huang - 4 years, 4 months ago
Vishruth Bharath
May 24, 2018

Or, you could just guess Friday by the common thing - Friday the 13th.

@Vishruth Bharath Yeah!!! The title gave it away!!!

Aaghaz Mahajan - 2 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...