From: utzoo!decvax!harpo!ihnss!ihuxv!lew
Newsgroups: net.math
Title: Christmas day puzzle
Article-I.D.: ihuxv.148
Posted: Wed Jun  9 12:51:50 1982
Received: Thu Jun 10 01:25:56 1982

According to the following program, and the knowledge that 12/25/2000
is a Monday, the occurences of Christmas on Monday through Sunday are

56 58 57 57 58 56 58

Computation is much easier than thinking!

main(){
int year,day,weekday[7],i;
for( i=0 ; i<7 ; i++ ) weekday[i]=0;
for( day=0 , year=1 ; year <= 400 ; year++ ){
	++day;
	if( year%4 == 0 && (year%100 != 0 || year == 400 )) ++day;
	++weekday[day%7];
	}
for( i=0 ; i<7 ; i++ ) printf(" %d",weekday[i]);
printf("\n");
}