Gauss' algorithm

reeceyroo9

New member
Joined
Mar 5, 2015
Messages
4
in the equation for the initial equation to find the weekday of 1st January in year :
(1 + 5((A-1)mod4) + 4((A-1)mod100) + 6((A-1)mod400) mod7
i understand each term represents a leap year, but i can not work out what the co - efficient are for so the 5 and 4 and 6 ?
 
in the equation for the initial equation

I'm sorry, but I don't know what this means...?

to find the weekday of 1st January in year :
(1 + 5((A-1)mod4) + 4((A-1)mod100) + 6((A-1)mod400) mod7
i understand each term represents a leap year, but i can not work out what the co - efficient are for so the 5 and 4 and 6 ?
In what manner do "1", "5(A-1, mod 4)", "4(A-1, mod 100)", and "6(A-1, mod 400), mod 7" represent "a leap year"? For what does "A" stand? What "equation" were you given? How does the posted expression relate to that equation?

Please reply with the full and exact text of the exercise, the complete instructions, and a clear listing of your efforts so far, as this will greatly help in our understanding of what you're asking. Thank you! ;)
 
I'm sorry, but I don't know what this means...?


In what manner do "1", "5(A-1, mod 4)", "4(A-1, mod 100)", and "6(A-1, mod 400), mod 7" represent "a leap year"? For what does "A" stand? What "equation" were you given? How does the posted expression relate to that equation?

Please reply with the full and exact text of the exercise, the complete instructions, and a clear listing of your efforts so far, as this will greatly help in our understanding of what you're asking. Thank you! ;)

I did reply but i cant see my post for some reason, so ill do it again.
So
fb8dfec9cf20509fa94010547c345e12.png

Is the formula.
where R(y,m) is the remainder after division of y by m,or y modulo m.
Where A is the year you want to find the day of the week for the 1st of january, 0 is sunday 1 is monday 2 is tuesday etc.
there is a leap year every 4 years, except when its a century but there is still a leap year every 400 years, hence the 3 terms.
But i cant work out why the co coefficients are there :)
 
Top