Determine the day of the week on which you were born

  • Thread starter Thread starter Math100
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around determining the day of the week for a given date using a mathematical formula, which appears to be a variant of Zeller's congruence. Participants are exploring the implications of this formula and its application to their own birth dates.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants are attempting to apply the formula to their own birth dates and questioning the validity of their calculations. Some are exploring the implications of different interpretations of the formula, such as the starting point of the week and the handling of leap years.

Discussion Status

There is an ongoing exploration of the formula's application, with participants sharing their calculations and questioning discrepancies in results. Some have provided corrections to earlier calculations, indicating a productive dialogue, though no consensus has been reached on the correct day of the week for specific dates.

Contextual Notes

Participants note the importance of understanding the calendar system being used, specifically whether it is the Gregorian calendar, and discuss the nuances of leap years and rounding in the formula.

Math100
Messages
823
Reaction score
234
Homework Statement
Determine the day of the week on which you were born.
Relevant Equations
None.
The date with month ## m ##, day ## d ##, year ## Y=100c+y ## where ## c\geq 16 ## and ## 0\leq y<100 ##, has weekday number
## w\equiv d+[(2.6)m-0.2]-2c+y+[\frac{c}{4}]+[\frac{y}{4}]\pmod {7} ## provided that March is taken as the first month of the year and January and February are assumed to be the eleventh and twelfth months of the previous year.
To determine the day of the week on which I was born, I will use my birthday as an example.
## w\equiv 31+[(2.6)(8)-0.2]-2c+y+[\frac{c}{4}]+[\frac{y}{4}]\pmod {7} ##
 
Physics news on Phys.org
What is the first day of the week?
 
  • Like
Likes   Reactions: WWGD
fresh_42 said:
What is the first day of the week?
I believe it's Sunday.
 
I entered ## c=19, y=95 ## into the equation above but I am not getting the correct answer.
 
I got two correct answers for dates that I checked if Sunday counts as number zero (or seven).

Let's see what happens with today (9/25/2022):

\begin{align*}
w&\equiv d+[(2.6)m-0.2]-2c+y+[\frac{c}{4}]+[\frac{y}{4}]\pmod {7} \\
&=25+[2.6 \cdot 7 -0.2]-2\cdot 20 + 22+[20/4] +[22/4]\pmod{7}\\
&=25+18-40+22+5+5=35\equiv 0\pmod{7}
\end{align*}

I haven't seen that formula before. But three out of the three tests I made produced the correct result.

We had to prove by induction that the 13th of a month is more often a Friday than any other weekday.
 
  • Like
Likes   Reactions: Math100
fresh_42 said:
I got two correct answers for dates that I checked if Sunday counts as number zero (or seven).

Let's see what happens with today (9/25/2022):

\begin{align*}
w&\equiv d+[(2.6)m-0.2]-2c+y+[\frac{c}{4}]+[\frac{y}{4}]\pmod {7} \\
&=25+[2.6 \cdot 7 -0.2]-2\cdot 20 + 22+[20/4] +[22/4]\pmod{7}\\
&=25+18-40+22+5+5=35\equiv 0\pmod{7}
\end{align*}

I haven't seen that formula before. But three out of the three tests I made produced the correct result.

We had to prove by induction that the 13th of a month is more often a Friday than any other weekday.
I got ## 137.1 ##, but isn't that equal to ## 137.1\equiv 4\pmod {7} ##? Given the fact that my birthday is on October 31st, 1995.
 
Let's see:
\begin{align*}
w&\equiv d+[(2.6)m-0.2]-2c+y+[\frac{c}{4}]+[\frac{y}{4}]\pmod {7} \\
&=31+[2.6 \cdot 8 -0.2]-2\cdot 19 + 95+[19/4] +[95/4]\pmod{7}\\
&=31+[20.6]-38+95+4+3=115\equiv 3\pmod{7}
\end{align*}

You were born on a Wednesday.
 
  • Skeptical
Likes   Reactions: Math100
fresh_42 said:
Let's see:
\begin{align*}
w&\equiv d+[(2.6)m-0.2]-2c+y+[\frac{c}{4}]+[\frac{y}{4}]\pmod {7} \\
&=31+[2.6 \cdot 8 -0.2]-2\cdot 19 + 95+[19/4] +[95/4]\pmod{7}\\
&=31+[20.6]-38+95+4+3=115\equiv 3\pmod{7}
\end{align*}

You were born on a Wednesday.
But why did my Korean hospital says Tuesday then? That's weird.
 
Math100 said:
But why did my Korean hospital says Tuesday then? That's weird.
No, that's true. Wednesday is wrong. I made a mistake. I calculated ##[95/4]## as the remainder, not the integer part.

Correction:
\begin{align*}
w&\equiv d+[(2.6)m-0.2]-2c+y+[\frac{c}{4}]+[\frac{y}{4}]\pmod {7} \\
&=31+[2.6 \cdot 8 -0.2]-2\cdot 19 + 95+[19/4] +[95/4]\pmod{7}\\
&=31+[20.6]-38+95+4+23=135\equiv 2\pmod{7}
\end{align*}
... and ##2## is Tuesday.
 
  • Like
Likes   Reactions: Math100
  • #10
fresh_42 said:
Let's see what happens with today (9/25/2022):
I can understand why an American would use that ridiculous way of writing a date, but surely you know better ? :wink:
 
  • #11
pbuk said:
I can understand why an American would use that ridiculous way of writing a date, but surely you know better ? :wink:
I would have written it 200220925175845, but communication means understanding the set-up of your dialogue partner. :wink:
 
  • #12
Is this intended to be a restatement of Zeller's congruence? Note that the roundings should be floors e.g. ## \left [ \frac y 4 \right ] ## should be ## \lfloor \frac y 4 \rfloor ##.
 
  • #13
pbuk said:
Is this intended to be a restatement of Zeller's congruence? Note that the roundings should be floors e.g. ## \left [ \frac y 4 \right ] ## should be ## \lfloor \frac y 4 \rfloor ##.
My textbook defines ##[x]=\lfloor x\rfloor## so it doesn't make a difference.
 
  • #15
I'd think we need to know this is the Gregorian Calendar and not Chinese, or otherwise, which may not be 365.25 days long. If its Gregorian, you can use that 365=52.7+1, 366=52.7+2. Then find the number of leap years and "regular" ones in-between.
 
  • #16
WWGD said:
I'd think we need to know this is the Gregorian Calendar and not Chinese, or otherwise, which may not be 365.25 days long. If its Gregorian, you can use that 365=52.7+1, 366=52.7+2. Then find the number of leap years and "regular" ones in-between.
It's not exactly 365.25. It gets complicated every 100 (no leap) and 400 (leap) years IIRC.
 
  • #17
fresh_42 said:
It's not exactly 365.25. It gets complicated every 100 (no leap) and 400 (leap) years IIRC.
I guess we use simplified assumptions. Hey, if physicists can approximate a basketball player with a cylinder, why not?
 
  • #18
WWGD said:
I guess we use simplified assumptions. Hey, if physicists can approximate a basketball player with a cylinder, why not?
Where is that d*** cylinder?

Uh! Found it!

 
  • #19
fresh_42 said:
It's not exactly 365.25. It gets complicated every 100 (no leap) and 400 (leap) years IIRC.
WWGD said:
I guess we use simplified assumptions.
No, the ## \left \lfloor \frac c 4 - 2c \right \rfloor ## term (where as in the OP ## c ## is the century number i.e. year mod 100) takes care of centuries. As I said above this is Zeller's congruence.
 
  • Like
Likes   Reactions: WWGD

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
5K
Replies
3
Views
2K
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 50 ·
2
Replies
50
Views
11K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 75 ·
3
Replies
75
Views
7K
  • · Replies 86 ·
3
Replies
86
Views
14K