Zeller's Congruence for Determining the Day of the Week
We will use Zeller’s Congruence to determine the day of the week. The formula for the Gregorian calendar is:
h=q+513(m+1)+4K+4J+5Jmod7
Where:
- h = day of the week (0 = Saturday, 1 = Sunday, 2 = Monday, ..., 6 = Friday)
- q = day of the month (e.g., 16)
- m = month (3 = March, 4 = April, ..., 14 = February)
- K = year of the century (year mod 100)
- J = zero-based century (floor(year / 100))
Step 1: Adjust the Month and Year
For July, the month value m = 7. No adjustment to the year is needed.
Step 2: Assign Values
- q = 16 (day of the month)
- m = 7 (July)
- Year = 1776
- K = 76 (1776 mod 100)
- J = 17 (floor(1776 / 100))
Step 3: Plug Values into Zeller’s Congruence
h=16+513(7+1)+476+417+5(17)mod7
Calculate each term:
- 513(7+1) = 5104=20
- 476 = 19
- 417 = 4
- 5(17) = 85
Now, substitute these values:
h=(16+20+76+19+4+85)mod7
h=(220)mod7
h=220mod7=3
Step 4: Interpret the Result
- h = 3 corresponds to:
- 0 = Saturday
- 1 = Sunday
- 2 = Monday
- 3 = Tuesday
Final Answer: 16th July 1776 was a Tuesday.