Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[white]
There are only 14 year-calendars in a perpetual calendar system:[ul][li]Seven calendars have January 1 on each of a different weekday,[/li][li]Seven have January 1 on each of a different weekday and with a leap day in February[/li][/ul]
Using this little knockoff PHP script:
Code:<?php $thirteenths = array (13, 44, 72, 103, 133, 164, 194, 225, 256, 286, 317, 347); $leap_thirteenths = array (13, 44, 73, 104, 134, 165, 195, 226, 257, 287, 318, 348); $day_names = array ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); for ($week_start_shift = 0; $week_start_shift <= 6; $week_start_shift++) { print $day_names[$week_start_shift] . ':'; $leap_days = 0; foreach ($thirteenths as $thirteen) { if (($thirteen + $week_start_shift) % 7 == 6) { $leap_days++; } } print $leap_days . ':'; $leap_days = 0; foreach ($leap_thirteenths as $thirteen) { if (($thirteen + $week_start_shift) % 7 == 6) { $leap_days++; } } print $leap_days . "\r\n"; } ?>
I get the output:
Sun:2:3
Mon:2:2
Tue:2:1
Wed:1:2
Thu:3:2
Fri:1:1
Sat:1:1
It looks like:[ul][li]the minimum number of Friday the 13ths is 1 (in non-leap years in which Jan 1 is a Wednesday, Friday, or Saturday or leap years in which Jan 1 is a Tuesday, Friday, or Saturday),[/li][li]the max is 3 (in non-leap years in which Jan 1 is a Thursday or leap years where Jan 1 is a Sunday), and[/li][li]the average is ~ 1.7 Friday the 13ths/year.[/li][/ul][/white]