Let's start by number the days of the year 1 to 365 for non-leap years; 1 to 366 for leap years. Then it is quite easy to accumulate a list to enumerate which day of the year corresponds to the 13th of each month. For example January 13 is the 13th day of the year, February 13 is the 44th day of the year, March 13 is the 72nd day (in non-leap years) or the 73rd day (leap years).The week is seven days long and so counting off by 7s and keeping the remainders could give us a way of telling which day of the week each of these occurred IF we knew what day of the week January 1 was on.
Non-Leap Year ..................................Leap Year
Now, all that remains to to examine the cases for January 1 .
NON LEAP YEAR
|If January 1 is on||Then Fridays will be a||Friday 13th in the months of|
|Thursday||2||February March November|
If January 1 is on
Then Fridays will be a
Friday 13th in the months of
|Sunday||6||January April July|