Friday the 13ths in a Year

More Details

Friday the 13th is a date that is steeped in superstition.

What Your Function Should Do

Write a function called FridayThe13ths that takes a non-negative year in the Gregorian calendar and returns the number of times a Friday the 13th occurs in that year.

FridayThe13ths[2016]

More Examples

FridayThe13ths[2026]

FridayThe13ths[0]

FridayThe13ths[1776]

FridayThe13ths[year_Integer]:=