English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

It can be a mathematical procedure. There's a guy I know who can tell the day of people's birthdays without even writing anything on a piece o paper.

2007-01-28 00:57:07 · 6 answers · asked by Combo 1 in Science & Mathematics Mathematics

6 answers

.

For a given date, we may need to know the day of the week. We have so many ways to find that. Here is one formula that can be used for the purpose, the only minor limitation is that it works only for the years of the Gregorian Calendar (greater than 1752).


n = (y + y/4 - y/100 + y/400 + t[m-1] + d) mod 7

n -> (Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday) -> (0,1,2,3,4,5,6)


y -> Year

y/4 - y/100 + y/400-> Number of Leap Years

y/4 -> Number of leap years and exceptional common years

y/100 – y/400 -> Number of exceptional common years (The years that are divisible by 100 but not 400)

t[m-1] -> Constant corresponding to the particular Month
-> { 0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4 }

d -> Date

.

2007-01-28 01:14:43 · answer #1 · answered by Preety 2 · 0 0

The first link below gives a procedure that you can use for year 1900 to 2099.
The 2nd link gives a more general procedure.

2007-01-28 01:08:16 · answer #2 · answered by morningfoxnorth 6 · 1 0

I have a littlle object with 3 cylinders which works for the years
1600 to 2299. Other than that...

How long does your guy take?

2007-01-28 01:34:38 · answer #3 · answered by gianlino 7 · 0 0

well, maybe,that guy your talking about is basing on last years day or the past year's dayname. Example, if April 10 today is Sunday, then next year it would be Saturday. But if its like this; today April 10 (sunday), next year(leap year) january 10 (friday) if today's year April 12 is friday next year its 1day before friday, but if its a leap year it should be like this; if January 12 is friday then next year April 12 would be 1+1 day before friday.

2007-01-28 01:09:22 · answer #4 · answered by mark f 1 · 0 0

Go to a search engine and search for the month of the year in question and it will give you a site that shows the whole month.

2007-01-28 01:10:58 · answer #5 · answered by Alain M 2 · 0 0

that guy has probably autism

anyway, there's somekind of formula for it
http://www.cs.usyd.edu.au/~kev/pp/TUTORIALS/1b/carroll.html

2007-01-28 02:19:35 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers