Let d be the n-th day of a year 2000+n, where n> - 248. Take the sum d + n + floor[(n + 3)/4] - floor[(n - 1)/100] + floor[((n - 1)/400] modulo 7. If the remainder is 0 then the day is Friday,

if the remainder is 1, then the day is Saturday, if the remainder is 2, then the day is Sunday, ..., if the reminder is 6, then the day is Thursday .

More Maged Z. Youssef's questions See All
Similar questions and discussions