<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4449182242666308973</id><updated>2012-02-17T01:22:28.459+05:30</updated><category term='Frequently Asked Questions'/><category term='Contact me'/><category term='An Extended Approach to the Julian and the Gregorian calendar'/><category term='Downloads'/><category term='Calendar Slider'/><category term='C program to find the day of the week'/><category term='About me'/><title type='text'>Calculating the day of the week and much more</title><subtitle type='html'>This site will help you to calculate the day of the week, date, month and even year. Refer to the article 'An Extended Approach to the Julian and the Gregorian Calendar' and also learn Babwani's congruence and Babwani's Algorithm.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4449182242666308973.post-2063310266324253997</id><published>2015-08-22T13:08:00.001+05:30</published><updated>2010-03-28T19:31:07.134+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='An Extended Approach to the Julian and the Gregorian calendar'/><title type='text'>An Extended Approach to the Julian and the Gregorian calendar</title><content type='html'>&lt;span xmlns=""&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;/div&gt;&lt;h1&gt;&lt;span style="font-size: 100%;"&gt;An Extended Approach to the Julian and&lt;br /&gt;&lt;br /&gt;the Gregorian calendar&lt;/span&gt;&lt;/h1&gt;&lt;br /&gt;Welcome!&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Calculating the day of the week is now&amp;nbsp;simple. &lt;/div&gt;&lt;div style="text-align: justify;"&gt;I have written an article titled "An Extended Approach to The Julian and The Gregorian Calendar" which was published in &lt;em&gt;The Mathematical Gazette&lt;/em&gt;, London in November 2004. Here, I have tried to explain the concepts given in the above article in detailed but lucid manner.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Many students, teachers and experts have visited and benefitted from this article. People who have used the below mentioned weekday formula and/or the algorithm in different&amp;nbsp;programming languages&amp;nbsp;have called it (for identification) 'Babwani's Method' or 'Babwani's Formula' or 'Babwani's Congruence' or 'Babwani's Algorithm'. You may call it by any name. But to maintain uniformity and identification, the same formulae are collectively referred as 'Babwani's Congruence' and steps to find out the years and the algorithms in general as 'Babwani's Algorithm'.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;You need to&amp;nbsp;refer the explanatory document wherein the concepts given in the Babwani's Congruence have been explained methodically.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Secondly, a program Calember (&lt;span style="text-decoration: underline;"&gt;Cale&lt;/span&gt;ndar + Nu&lt;span style="text-decoration: underline;"&gt;mber&lt;/span&gt;), that calculates the weekday, dates, months and years based on the explanations given in the document, has been prepared and made available.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Remember, this is not the first time such a formula is made. Many formulae existed even before I invented this method. But this is the first time, you will discover a different approach to find weekdays, dates, months and even years when other data is provided. What's more special is the flexibility of methods that are at your disposal as it also explains alternative easy ways of doing the same calculations. It also presents algorithms that can be used to prepare your own program.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Thus you can find out the weekdays, dates, months and years by either by:&lt;/div&gt;&lt;div style="text-align: justify;"&gt;1) Pen and a paper and one of the formulae. (Also see the FAQ page)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;2) Orally. (Depends on your mental ability and practice)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;3) Using a computer program.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;4) Calendar Slider. (See Calendar Slider page for more details)&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://docs.google.com/viewer?a=v&amp;amp;pid=sites&amp;amp;srcid=ZGVmYXVsdGRvbWFpbnxiYWJ3YW5pY29uZ3J1ZW5jZXxneDo2ZDZhYWY0ZTYwMGVjNmMy"&gt;&lt;strong&gt;View Babwani's Congruence&lt;/strong&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Congruence.pdf?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Babwani's Congruence&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Flash.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calember v 2.0 Flash format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Windows.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calember v 2.0 Windows application format&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CalendarSlider.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calendar Slider Flash Format&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CalendarSliderApp.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calendar Slider Windows application format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Excel.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Gregorian Calendar MS Excel format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CAL.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calember v 1.0 DOS format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4449182242666308973-2063310266324253997?l=babwani-congruence.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/2063310266324253997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/extended-approach-to-julian-and_8695.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/2063310266324253997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/2063310266324253997'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/extended-approach-to-julian-and_8695.html' title='An Extended Approach to the Julian and the Gregorian calendar'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4449182242666308973.post-2708650041977704131</id><published>2010-03-04T18:08:00.003+05:30</published><updated>2010-03-04T18:11:19.911+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C program to find the day of the week'/><title type='text'>C program to find the day of the week</title><content type='html'>&lt;span style="font-size: large;"&gt;&lt;strong&gt;C program to find the day of the week&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here I have provided a copy-paste code to find the day of the week in C language. Remember this program works best using Turbo C 3.0. You may make some changes to make it work with the complier you use. I have also added some comments which is for you to understand. One can cast off all the comments without affecting the working of the program. Also remember that this is not the only way to write the C program to calculate the day of the week. You may try writing simpler programs.&lt;br /&gt;The program given below is with respect to the international switchover from 4&lt;sup&gt;th&lt;/sup&gt; October 1582 to 15&lt;sup&gt;th&lt;/sup&gt; October 1582 which is also used for astronomical calculations. Make the required changes for other switchovers. Hint make changes in line number 3 and 5 in the jg function.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;#include&amp;lt;conio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;#include&amp;lt;math.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;jg(int d, int m,int y) //Julian or Gregorian&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{ int type;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;if(y&amp;lt;1582 || (y==1582 &amp;amp;&amp;amp; m&amp;lt;10) || (y==1582 &amp;amp;&amp;amp; m==10 &amp;amp;&amp;amp; d&amp;lt;5))&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;type=0; // 0 stands for Julian&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;else if(y&amp;gt;1582 || (y==1582 &amp;amp;&amp;amp; m&amp;gt;10) || (y==1582 &amp;amp;&amp;amp; m==10 &amp;amp;&amp;amp; d&amp;gt;14))&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;type=1; // 1 stands for Gregorian&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;type=2; // 2 stands for neither of the two&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;return type;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;fm(int d, int m,int y) //function of month&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{ int fmonth,leap;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;if(jg(d,m,y)==0) //for Julian calendar&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;if(y%4==0) //leap function 1 for leap &amp;amp; 0 for non-leap&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;leap=1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;leap=0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;if(jg(d,m,y)==1) //for Gregorian calendar&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;if((y%100==0) &amp;amp;&amp;amp; (y%400!=0)) //leap function 1 for leap &amp;amp; 0 for non-leap&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;leap=0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;else if(y%4==0)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;leap=1;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;leap=0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;fmonth=3+(2-leap)*((m+2)/(2*m))+(5*m+m/9)/2; //f(m) formula&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;fmonth%=7; //f(m) is brought in range of 0 to 6&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;return fmonth;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;c(int y) //function of century&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;int century;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;century=y/100; //returns the first two digits of year&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;return century;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;yy(int y) //function of year&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;int lastdigits;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;lastdigits=y%100; //returns the last two digits of year&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;return lastdigits;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;day_of_week(int d, int m, int y)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;int dow,z; //dow stands for day of week&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("\nDate: %d/%d/%d\n\n",d,m,y);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;if(jg(d,m,y)==0)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;z=y; //z is a new year variable&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;if(y&amp;lt;0)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;z=y+9800; //z is made positive if negative, 9800 is multiple of 7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;dow=1.25*z+fm(d,m,y)+d-2; //function of weekday for Julian&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;dow%=7; //remainder on division by 7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;else&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;dow=1.25*yy(y)+fm(d,m,y)+d-2*(c(y)%4); //function of weekday for Gregorian&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;dow%=7; //remainder on division by 7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;switch (dow)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;case 0:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("weekday = Saturday");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;case 1:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("weekday = Sunday");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;case 2:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("weekday = Monday");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;case 3:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("weekday = Tuesday");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;case 4:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("weekday = Wednesday");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;case 5:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("weekday = Thursday");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;case 6:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("weekday = Friday");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;break;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;default:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("Incorrect data");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;return 0;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;void main()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;int date,month,year;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;char con='y'; //con = continue&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;while(con=='y' || con=='Y')&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;clrscr(); //clears screen&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("Enter the year ");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;scanf("%d",&amp;amp;year); //year input&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("Enter the month ");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;scanf("%d",&amp;amp;month); //month input&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("Enter the date ");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;scanf("%d",&amp;amp;date); //date input&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;day_of_week(date,month,year);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;printf("\n\nDo you wish to continue? (Y/N) ");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;scanf("%s",&amp;amp;con);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4449182242666308973-2708650041977704131?l=babwani-congruence.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/2708650041977704131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://babwani-congruence.blogspot.com/2010/03/c-program-to-find-day-of-week.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/2708650041977704131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/2708650041977704131'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/2010/03/c-program-to-find-day-of-week.html' title='C program to find the day of the week'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4449182242666308973.post-7292213712949331741</id><published>2009-08-22T13:04:00.002+05:30</published><updated>2010-03-04T17:43:09.948+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Calendar Slider'/><title type='text'>Calendar Slider</title><content type='html'>&lt;span xmlns=""&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;/div&gt;&lt;h1&gt;Calendar Slider&lt;/h1&gt;&lt;br /&gt;Calendar Slider is easy and fun way of learning to calculate day of the week, month, date and year when other information is given. Here you don't require your mathematical skills or ability to understand and solve the formula. In fact you don't even require a computer to solve the calendar problem. You can make the Calendar Slider even at home on a cardboard. Calendar Slider is made of two parts: 1) The Calendar board 2) The Slider that slides over the board to get the desired result.&lt;br /&gt;&lt;br /&gt;The Calendar Slider that I have made right now calculates problem based on &lt;strong&gt;Gregorian calendar only&lt;/strong&gt; as Gregorian calendar is currently used calendar. I have provided the Calendar Slider in the Flash format and the Windows application format. You can download any one of them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_rC-Xizfr6VM/S4-jFLh7uDI/AAAAAAAAAD8/loKhTi-a30w/s1600-h/26Jan.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="290" kt="true" src="http://1.bp.blogspot.com/_rC-Xizfr6VM/S4-jFLh7uDI/AAAAAAAAAD8/loKhTi-a30w/s400/26Jan.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_rC-Xizfr6VM/S4-jbf2LReI/AAAAAAAAAEE/0A1A5m6QsCY/s1600-h/Find+month.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="291" kt="true" src="http://2.bp.blogspot.com/_rC-Xizfr6VM/S4-jbf2LReI/AAAAAAAAAEE/0A1A5m6QsCY/s400/Find+month.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_rC-Xizfr6VM/S4-jof3L6wI/AAAAAAAAAEM/vC0mZ1_4z1U/s1600-h/Find+year.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="290" kt="true" src="http://2.bp.blogspot.com/_rC-Xizfr6VM/S4-jof3L6wI/AAAAAAAAAEM/vC0mZ1_4z1U/s400/Find+year.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;But solving the calendar problem on the computer with the help of Calendar Slider kills the very purpose of making Calendar Slider. Therefore make the Calendar Slider yourself at home using a cardboard and make it exactly as it is shown. &lt;/span&gt;Then without the help of the computer or formulae you can solve calendar problems. I have also included a help file that will teach you to solve the calendar problems by using Calendar Slider.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CalendarSlider.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calendar Slider Flash format&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;A very easy and interesting way to solve calendar problems without the help of computer or any formulae. Make the same at home using cardboard.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CalendarSliderApp.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calendar Slider Windows application format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;A very easy and interesting way to solve calendar problems without the help of computer or any formulae. Make the same at home using cardboard.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4449182242666308973-7292213712949331741?l=babwani-congruence.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/7292213712949331741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/calendar-slider_22.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/7292213712949331741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/7292213712949331741'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/calendar-slider_22.html' title='Calendar Slider'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_rC-Xizfr6VM/S4-jFLh7uDI/AAAAAAAAAD8/loKhTi-a30w/s72-c/26Jan.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4449182242666308973.post-769566429864011702</id><published>2009-08-22T13:03:00.001+05:30</published><updated>2010-02-23T20:23:55.000+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Downloads'/><title type='text'>Downloads</title><content type='html'>&lt;span xmlns=""&gt; &lt;p style="TEXT-ALIGN: center"&gt;&lt;h1&gt;Downloads&lt;br /&gt;&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Congruence.pdf?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Babwani's Congruence&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;It is an explanatory document that explains the Babwani's Congruence. It includes the derivation of Babwani's congruence, which was published in &lt;em&gt;The Mathematical Gazette&lt;/em&gt;, London, 2004. It is a detailed document that explains you how to find the weekday, dates, month and years both Julian and Gregorian, both BC and AD with the help of examples. The document also includes algorithm that you can use to prepare computer programs.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;The above document is in Adobe Reader (.pdf) format. If you do not have Adobe Reader you can download the same from &lt;a href="http://www.adobe.com/products/acrobat/readstep2.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Flash.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calember v 2.0 Flash format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;A computer program that calculates the weekday, dates, months and years when other data is provided.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;The above program is in Macromedia Flash (.swf) format. If you do not have flash player you can download the same from &lt;a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"&gt;here&lt;/a&gt;.&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Windows.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calember v 2.0 Windows Application format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;A computer program that calculates the weekday, dates, months and years when other data is provided.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CalendarSliderApp.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calendar Slider Flash format&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;A very easy and interesting way to solve calendar problems without the help of computer or any formulae. Make the same at home using cardboard.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CalendarSliderApp.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calendar Slider Windows application format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;A very easy and interesting way to solve calendar problems without the help of computer or any formulae. Make the same at home using cardboard.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/Excel.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Gregorian Calendar MS Excel format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;A computer program that calculates the weekday, dates, months and years when other data is provided. The above program is applicable only for the Gregorian calendar.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;a href="http://sites.google.com/site/babwanicongruence/CAL.zip?attredirects=0&amp;amp;d=1"&gt;&lt;strong&gt;Download Calember v 1.0 DOS format&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;A computer program that calculates the weekday, dates of the month, months and years when other data is provided. &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4449182242666308973-769566429864011702?l=babwani-congruence.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/769566429864011702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/downloads_1775.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/769566429864011702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/769566429864011702'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/downloads_1775.html' title='Downloads'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4449182242666308973.post-1234538270177167355</id><published>2009-08-11T20:49:00.012+05:30</published><updated>2010-03-03T20:36:48.650+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Frequently Asked Questions'/><title type='text'>Frequently Asked Questions</title><content type='html'>&lt;span xmlns=""&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;/div&gt;&lt;h1&gt;Frequently Asked Questions&lt;/h1&gt;&lt;br /&gt;&lt;strong&gt;1: Could you possibly give me a formula to calculate the weekday, which I can put into my HP calculator?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In order to calculate the weekday using a standard calculator try the following method:&lt;br /&gt;&lt;br /&gt;To calculate the weekday for 21st May 2006 (or any date on or between 1/3/1900 and 28/2/2100)&lt;br /&gt;&lt;br /&gt;d = 21&lt;br /&gt;m = 5&lt;br /&gt;y = 2006&lt;br /&gt;&lt;br /&gt;∴ f(m) = f(5) = 1 (from table number 3)&lt;br /&gt;&lt;br /&gt;The formula is:&lt;br /&gt;&lt;br /&gt;$\frac{1.25\times y+f\left( m \right)+d-1}{7}$&lt;br /&gt;&lt;br /&gt;$=\frac{1.25\times 2006+1+21-1}{7}$&lt;br /&gt;&lt;br /&gt;$=\frac{\text{2528}.\text{5}}{7}$&lt;br /&gt;&lt;br /&gt;=361.21428571428571428571428571429&lt;br /&gt;&lt;br /&gt;Now subtract 361 from the above number (as it is the integer part coming before the decimal point) and then multiply by 7 and round it off to two decimal places.&lt;br /&gt;&lt;br /&gt;You will get 1.50&lt;br /&gt;&lt;br /&gt;Ignore the decimal part and only retain the integer part to get 1 which corresponds to Sunday ( 0 = Sat, 1 = Sun, 2 = Mon, ..)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2: What are these Heap years, Seap years, etc. What is the significance of its classification?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The names of these years have been specially coined by me. Like we know that the Olympic games are held in Leap years. That is in the years divisible by 4. But what about the other years. For instance, the FIFA (soccer) World Cup are held only in Seap years. Means the years which have remainder 2 when divided by 4. Similarly, the Cricket World Cup is held in Teap years with the exception of 1992 and 1996 World Cup.&lt;br /&gt;&lt;br /&gt;Secondly, this classification is especially useful and imperative when we wish to find the years that satisfy a particular condition. &lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;strong&gt;3: Is it true that everyone celebrate their 28th birthday on the same weekday on which they were born? &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;About 79 % of the people celebrate their 28th birthday on the weekday they were born. Refer chapter number 7 to know the 5-6-11-6 cycle. Which means that your birthday falls on the same weekday of your birth in the cycle of 5 years, 6 years, 11 years and 6 years and again 5 years.... depending upon the type of year of your birth. Therefore, one can infer that one's birthday repeats on the same weekday of birth after 28 years. This takes place if the years follow the pattern of 1 leap year after every three non-leap years. (One in every four years)&lt;br /&gt;&lt;br /&gt;But this cycle is obstructed by the Heap year. (Heap years are those years which is divisible by 100 but not divisible by 400 E.g. 1800, 1900, 2100, 2200, etc.) A Heap year though looks like a Leap year because of its divisibility by 4, does not have 29 days in February. Therefore if a person is born in the year 1887 will not have his/her 28th birthday on the same weekday of his/her birth. Because he/she goes across through the Heap year where one day (29th February 1900) was missing thus disturbing the entire 5-6-11-6 cycle.&lt;br /&gt;&lt;br /&gt;Thus any one born on or in between 29 Feb 1872 to 28 Feb 1900 will not have his/her 28th birthday on the same weekday.&lt;br /&gt;&lt;br /&gt;However, one born on or in between 1 Mar 1900 to 28 Feb 2172 will have his/her 28th birthday on the same weekday. This includes every one of us. Thus, for practical purposes (for this present time) we all (about 100 %) have our 28th birthdays on the same weekday of our birth. This is because 2000 was not a Heap year but a normal Leap year.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;4: How is the Babwani's Congruence useful in our everyday life?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;We use calendars in our everyday life and thus Babwani's Congruence can be used to a great extent. One can orally calculate the weekday of any given date especially the one in the present year.&lt;br /&gt;&lt;br /&gt;For example, if we are currently in 2007, we calculate in advance what is x\[\left\lfloor 1.25\times 2007 \right\rfloor =\left\lfloor \text{2508}\text{.75} \right\rfloor \,=\left\lfloor 2.75 \right\rfloor =2\text{(mod7)}\]&lt;br /&gt;&lt;br /&gt;Now correlate the above mentioned formula as&lt;br /&gt;&lt;br /&gt;$day=\left\lfloor 1.25\times y \right\rfloor +f\left( m \right)+d-1$&lt;br /&gt;&lt;br /&gt;$=2+f\left( m \right)+d-1$&lt;br /&gt;&lt;br /&gt;$=1+f\left( m \right)+d$&lt;br /&gt;&lt;br /&gt;Now use this formula, remembering the table number 3 showing f(m), calculate in seconds the weekday.&lt;br /&gt;&lt;br /&gt;E.g. 10th April 2007; day = 1 + 10 + 6 (mod 7) = 17 (mod 7) = 3 = Tuesday. (remember f(4) = 6)&lt;br /&gt;&lt;br /&gt;26th September 2007; day = 1 + 26 + 5 (mod 7) = 32 (mod 7) = 4 = Wednesday. (remember f(9) = 5)&lt;br /&gt;&lt;br /&gt;Secondly, consider a situation where the year 2007 is about to get over and you don't possess a calendar for the year 2008. So temporarily, till you get a new calendar of 2008; which calendar month of 2007 can you use instead of January 2008?&lt;br /&gt;&lt;br /&gt;The answer is May 2007 can be used temporarily used. How? Let us see.&lt;br /&gt;&lt;br /&gt;Let us generalize the current year (not necessarily 2007) as y and the next year as (y + 1).&lt;br /&gt;&lt;br /&gt;The weekday of 1st January of the year (y + 1) = the weekday of 1st (unknown month) of the year y&lt;br /&gt;&lt;br /&gt;$\left\lfloor 1.25\times \left( y+1 \right) \right\rfloor +1+f\left( 1 \right)-1=\left\lfloor 1.25\times y \right\rfloor +1+f\left( m \right)-1$&lt;br /&gt;&lt;br /&gt;$\therefore \left\lfloor 1.25y \right\rfloor +\left\lfloor 1.25 \right\rfloor +1+0-1=\left\lfloor 1.25y \right\rfloor +1+f\left( m \right)-1$&lt;br /&gt;&lt;br /&gt;$\therefore f\left( m \right)=\left\lfloor 1.25 \right\rfloor $&lt;br /&gt;&lt;br /&gt;$\therefore f\left( m \right)=1$&lt;br /&gt;&lt;br /&gt;but f(5) = 1&lt;br /&gt;&lt;br /&gt;∴ the required month is May.&lt;br /&gt;&lt;br /&gt;This is true irrespective of the nature (leap or non-leap) of the current or the upcoming year. Try it out.&lt;br /&gt;&lt;br /&gt;Similarly, you can find many other personalized applications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;5: Which weekday cannot come at the end of the century?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;There can be two cases to answer your questions.&lt;br /&gt;&lt;br /&gt;CASE 1: Many (including me) consider 31st December xx00 to be the last day of the century (e.g. 31st December 2000) and the next day to be the first day of the next century. &lt;br /&gt;&lt;br /&gt;CASE 2: While others consider 31st December xx99 to be the last day of the century (e.g. 31st December 1999) and the next day to be the first day of the next century. &lt;br /&gt;&lt;br /&gt;You may directly refer the case you are interested in. However both are solved in the same manner, of course the answers will differ. &lt;br /&gt;&lt;br /&gt;CASE 1: &lt;br /&gt;&lt;br /&gt;Let us first find the weekday that can be the last day of the century (31st December xx00).&lt;br /&gt;&lt;br /&gt;According to the congruence formula, substituting the values: d = 31, m = 12, c = c, y = 0&lt;br /&gt;&lt;br /&gt;$w=\left\lfloor \frac{5y}{4} \right\rfloor +f\left( m \right)+d-2\times \bmod \left( c,4 \right)$ &lt;br /&gt;&lt;br /&gt;$=\left\lfloor \frac{5\times 0}{4} \right\rfloor +f\left( 12 \right)+31-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=0+5+31-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=36-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=1-2\times \bmod \left( c,4 \right)\left( \bmod 7 \right)$&lt;br /&gt;&lt;br /&gt;Now, be whatever the value of c, mod (c,4) can have only four values { 0, 1, 2, 3 )&lt;br /&gt;&lt;br /&gt;w = 1 – 2 × 0 = 1 = Sunday (mod 7)&lt;br /&gt;&lt;br /&gt;or w = 1 – 2 × 1 = – 1 = 6 = Friday (mod 7)&lt;br /&gt;&lt;br /&gt;or w = 1 – 2 × 2 = – 3 = 4 = Wednesday (mod 7)&lt;br /&gt;&lt;br /&gt;or w = 1 – 2 × 3 = – 5 = 2 = Monday (mod 7)&lt;br /&gt;&lt;br /&gt;So except for the above weekdays, the other weekdays cannot be the last day of the century. So the answer is Tuesday, Thursday and Saturday cannot be the last day of any Gregorian century.&lt;br /&gt;&lt;br /&gt;CASE 2: &lt;br /&gt;&lt;br /&gt;Let us first find the weekday that can be the last day of the century (31st December xx99).&lt;br /&gt;&lt;br /&gt;According to the congruence formula, substituting the values: d = 31, m = 12, c = c, y = 99&lt;br /&gt;&lt;br /&gt;$w=\left\lfloor \frac{5y}{4} \right\rfloor +f\left( m \right)+d-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=\left\lfloor \frac{5\times 99}{4} \right\rfloor +f\left( 12 \right)+31-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=\left\lfloor 123.75 \right\rfloor +5+31-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=123+5+31-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=159-2\times \bmod \left( c,4 \right)$&lt;br /&gt;&lt;br /&gt;$=5-2\times \bmod \left( c,4 \right)\left( \bmod 7 \right)$&lt;br /&gt;&lt;br /&gt;Now, be whatever the value of c, mod (c,4) can have only four values { 0, 1, 2, 3 )&lt;br /&gt;&lt;br /&gt;w = 5 – 2 × 0 = 5 = Thursday (mod 7)&lt;br /&gt;&lt;br /&gt;or w = 5 – 2 × 1 = 3 = Tuesday (mod 7)&lt;br /&gt;&lt;br /&gt;or w = 5 – 2 × 2 = 1 = Sunday (mod 7)&lt;br /&gt;&lt;br /&gt;or w = 5 – 2 × 3 = – 1 = 6 = Friday (mod 7)&lt;br /&gt;&lt;br /&gt;So except for the above weekdays, the other weekdays cannot be the last day of the century. So the answer is Monday, Wednesday, Saturday cannot be the last day of any Gregorian century.&lt;br /&gt;&lt;br /&gt;In case your question refers to the Julian century, then there is no weekday that doesn’t come at the end of the century.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4449182242666308973-1234538270177167355?l=babwani-congruence.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/1234538270177167355/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/frequently-asked-questions_11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/1234538270177167355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/1234538270177167355'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/frequently-asked-questions_11.html' title='Frequently Asked Questions'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4449182242666308973.post-1688686927654300318</id><published>2009-08-11T20:38:00.004+05:30</published><updated>2011-05-10T12:46:09.593+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Contact me'/><title type='text'>Contact me</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span xmlns=""&gt; &lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;/div&gt;&lt;h1&gt;&lt;span xmlns=""&gt;Contact me&lt;br /&gt;&lt;/span&gt;&lt;/h1&gt;&lt;span xmlns=""&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;&lt;span xmlns=""&gt;You can post your comments and views in the comments column at the end of the article.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span xmlns=""&gt;If you have a question, first have a look in the FAQ page. If you have a different question, feel free to ask me at &lt;a href="mailto:sohaelbabwani@gmail.com"&gt;sohaelbabwani@gmail.com&lt;/a&gt;. I will try to clear your doubts at the earliest.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span xmlns=""&gt;Feel free to express your opinion/constructive criticism/suggestion at &lt;a href="mailto:sohaelbabwani@gmail.com"&gt;sohaelbabwani@gmail.com&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;span xmlns=""&gt;No spam or junk emails please.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4449182242666308973-1688686927654300318?l=babwani-congruence.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/1688686927654300318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/contact-me.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/1688686927654300318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/1688686927654300318'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/contact-me.html' title='Contact me'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4449182242666308973.post-67383295045480289</id><published>2009-08-11T20:36:00.001+05:30</published><updated>2009-08-12T21:48:18.593+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='About me'/><title type='text'>About me</title><content type='html'>&lt;span xmlns=""&gt; &lt;p style="TEXT-ALIGN: center"&gt;&lt;h1&gt;About me&lt;br /&gt;&lt;/h1&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; Hi! I am Sohael Sadruddin Bābwāni (pronounced as baa-b-waa-nee). I live in Mumbai, India. I am a teacher as well as a student of Mathematics. I did my Bachelor's degree in Commerce in 2001. I like to do Math being my favourite subject; and also its allied subjects like Physics, Astronomy, Geography etc. where even a bit of Math is used.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;I have made a formula to calculate the weekday if the date, month and year of any given date (both AD and BC) is given. The same formula was published in The Mathematical Gazette, London in November 2004 (vol. 88, no. 513 pages 569-573). A method already existed to find the same which is known by the name of Zeller's Algorithm; (made by Christian Zeller of Germany in 1886); which was not known to me till I made my formula independently. While going through the Zeller's Algorithm, I found some limitations in it; as it was slightly complicated and could not find date, month and year where other information is given. I wrote an article explaining and proving the same and it was considered to be published.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;For instance, in Zeller's algorithm the months are numbered from 3 for March to 14 for February. The year is assumed to begin in March; this means, for example, that January 1995 is to be treated as month 13 of 1994. But in my method of finding the weekday, the months are numbered properly 1 for January to 12 for December.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;I had made this formula independently way back in 1996. But I only got to know about the Mathematical Gazette in the year 2002. I submitted the formula in September 2002 and it was approved (of course after a few revisions) in March 2003 and published in November 2004.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;This is not the first and the last formula used to find the weekday. The best example is the Zeller's Algorithm in 1886. However, I didn't know about it till I happen to search the net in 2002. Fortunately, my approach was different and I also had elaborated the ways to find the date, month and the year. Thereby, I qualified to get it published.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;strong&gt;A word from me&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;Many believe that the elementary algebra and geometry learnt in the school or college is burdensome and is of no use. But, I firmly believe that though everyone may not be dealing in solving the sums directly, we use these concepts in our everyday life at most times unknowingly and indirectly. But whether you use a computer or an mp3 player or even a house or a bridge, you need math and logic. It is important therefore to teach the students the practical importance of learning math, logic, algebra and geometry.&lt;br /&gt;&lt;/p&gt;&lt;p style="TEXT-ALIGN: justify"&gt;For example, the calendar formula we are dealing in has many practical applications. One can orally calculate the weekday of any given date especially the one in the same year. Suppose the year 2007 is about to get over and you don't possess a calendar for the year 2008. So temporarily, till you get the calendar of 2008; which calendar month of 2007 can you use instead of January 2008? Using the calendar formula you can calculate that it is May of 2007 that you can use temporarily for January 2008.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Feel free to express your opinion/constructive criticism/suggestion at &lt;a href="mailto:sohaelbabwani@gmail.com"&gt;sohaelbabwani@gmail.com&lt;/a&gt;.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4449182242666308973-67383295045480289?l=babwani-congruence.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://babwani-congruence.blogspot.com/feeds/67383295045480289/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/about-me_11.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/67383295045480289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4449182242666308973/posts/default/67383295045480289'/><link rel='alternate' type='text/html' href='http://babwani-congruence.blogspot.com/2009/08/about-me_11.html' title='About me'/><author><name>Babwani</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
