Post Reply 
Inverse Doomsday
08-09-2024, 03:34 PM (This post was last modified: 08-09-2024 11:02 PM by Albert Chan.)
Post: #9
RE: Inverse Doomsday
(08-09-2024 02:01 PM)Thomas Klemm Wrote:  Here's another example: Today is 2024-08-09 which is a Friday.
In which years of this century was September 9th also a Friday?

365 MOD 7 ≡ 1. We just need to account for leap year.

Code:
Weekday  August 9, 20??
5        24  19  13      02
4            18  12  07  01
3        23  17      06  00
2        22  16  11  05   
1        21      10  04  
0        20  15  09      
6            14  08  03

Brute force is not that hard. (blanks are due to leap year)
From first row, we have Years with August 9 = Friday
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Inverse Doomsday - Thomas Klemm - 08-06-2024, 05:00 PM
RE: Inverse Doomsday - Allen - 08-09-2024, 12:14 AM
RE: Inverse Doomsday - lrdheat - 08-09-2024, 03:28 AM
RE: Inverse Doomsday - RPNerd - 08-09-2024, 03:38 AM
RE: Inverse Doomsday - lrdheat - 08-09-2024, 03:33 AM
RE: Inverse Doomsday - lrdheat - 08-09-2024, 04:04 AM
RE: Inverse Doomsday - Thomas Klemm - 08-09-2024, 01:41 PM
RE: Inverse Doomsday - Thomas Klemm - 08-09-2024, 02:01 PM
RE: Inverse Doomsday - Albert Chan - 08-09-2024 03:34 PM
RE: Inverse Doomsday - Martin Hepperle - 08-11-2024, 07:17 AM
RE: Inverse Doomsday - Thomas Klemm - 08-09-2024, 05:29 PM
RE: Inverse Doomsday - Albert Chan - 08-10-2024, 02:21 AM
RE: Inverse Doomsday - Albert Chan - 08-10-2024, 12:51 PM
RE: Inverse Doomsday - Thomas Klemm - 08-10-2024, 02:29 PM
RE: Inverse Doomsday - Albert Chan - 08-10-2024, 04:23 PM



User(s) browsing this thread: 1 Guest(s)