document.write( "Question 696395: Every year there is at least one Friday the thirteenth, but no year has more than 3. On 1998 there are exactly 3: in Feb, Mar, Nov. When will the next year be that contains exactly 3 friday the thirteen's? \n" ); document.write( "
Algebra.Com's Answer #429065 by KMST(5328)\"\" \"About 
You can put this solution on YOUR website!
A leap year (like 2000, 2004, and 2008) has \"366=7%2A52%2B2\" days,
\n" ); document.write( "52 weeks plus \"2\" extra weekdays.
\n" ); document.write( "All other years (including 1998) have \"365=7%2A52%2B1\" days,
\n" ); document.write( "52 weeks plus \"1\" extra weekday.
\n" ); document.write( "
\n" ); document.write( "Each extra weekday causes the days of the week to shift by \"1\" day.
\n" ); document.write( "If the thirteenth of a month was a Friday,
\n" ); document.write( "a year later the same date will be a Saturday if no leap day is involved,
\n" ); document.write( "but it will be a Sunday if there was a February 29 in between.
\n" ); document.write( "
\n" ); document.write( "The only way to have 3 Friday the thirteenths on a year that is not a leap year is to have the pattern of 1998,
\n" ); document.write( "with Feb-13, Mar-13 and Nov-13 being Fridays.
\n" ); document.write( "
\n" ); document.write( "The pattern from 1998 will repeat if there is a shift of a whole number of weeks (7 days, or a multiple of 7 days).
\n" ); document.write( "
\n" ); document.write( "Five years after Feb-13-1998, it will be Feb-13-2003, and having had Feb-29-2000 in between the weekdays will have shifted by 6 days, so it will be Thursday.
\n" ); document.write( "A year later, Feb-13-2004 will be Friday,
\n" ); document.write( "but with Feb-29-2004 coming up, the 1998 pattern will not repeat.
\n" ); document.write( "Leap years have 3 Friday the thirteenths only if January 13 is a Friday.
\n" ); document.write( "
\n" ); document.write( "Four years after Feb-13-2004, it will be Feb-13-2008.
\n" ); document.write( "With \"4\" years and \"1\" leap day in between (Feb-29-2004 and Feb-29-2008),
\n" ); document.write( "the weekdays will have shifted \"4%2B1=5\" days, and it will be Wednesday.
\n" ); document.write( "January 13, \"31=7%2A4%2B3\" days earlier, will have been a Sunday, and 2008 will not have 3 Friday the thirteenths.
\n" ); document.write( "
\n" ); document.write( "Five years after Feb-13-2004, it will be Feb-13-2009.
\n" ); document.write( "With two \"5\" years and \"2\" leap days in between (Feb-29-2004 and Feb-29-2008),
\n" ); document.write( "the weekdays will have shifted \"5%2B2=7\" days, and it will be Friday again.
\n" ); document.write( "And because 2009 is not a leap year, the pattern of 1998 will repeat.
\n" ); document.write( "After 1998, the next year that contains exactly 3 Friday the thirteens is \"highlight%282009%29\"
\n" ); document.write( "
\n" ); document.write( "
\n" );