Saturday, May 23, 2015

Finding day for a given date - part-2 (for dates before year 2000 and after 2099)

In part-1 we learnt hoe to find day for a given date in the 21st century i.e. from year 2000 to 2099. here we will see how to find for other centuries.

As we mostly deal with the current century and previous century one simple formula is find the day for current century and add 1 to it for 1900s. This mean we can first  find the day for 20th July 2053 and then add one to final result. As 20th July 2053 is Sunday and hence 20th July 1953 was Monday.But let us understand the full logic.

For this the only change is adjustment for the year code. For year 1900 to 1999 we need to add 1 to year code so for 1915 the year code is 4+1=5 and for 1914 it is 3+1=4.

So for finding day for 20th July 1953 steps are
Year code for 2053 is 53+13=66/7 and remainder is 3 and hence for 1953 year code is 4
Month code for July is 5
Now date value is 4+5+20=29 and dividing by 7 we get remainder as 1 and the day is Monday


For any date in other centuries we need to do adjust the year code as follows :

  • 2300 to 2399 = add 1
  • 2200 to 2299 = add 3
  • 2100 to 2199 = add 5
  • 2000 to 2099 = add 0
  • 1900 to 1999 = add 1
  • 1800 to 1899 = add 3
  • 1700 to 1799 = add 5
  • 1600 to 1699 = add 0



Finding day for a given date - part-3 (leap year)

Leap years

Feb normally  has 28 days but every 4 years we get leap year and Feb has 29 days.
Year 2004, 2008, 2012 and so on are leap years.

But there is an exception to this and century years are not
Thus year 1700, 1800, 1900, 2100, 2200,2300 are not leap years.

There are exception to this exception and every 4th century is a leap year ( Year divide by 400)
Thus year 1600, 2000 & 2400 are leap years.

Remember for leap years we need to subtract 1 from year factor for month of Jan & Feb.


Tips for simplifying calculations.

We can simplifying the calculation is by dividing the individual number by 7 and adding the remainders. So to compute year code for 2053 we can first divide 53 by 7 and we get remainder as 4, the we can find leap years which is 53/4 and quotient is  13 for year 2053 and 13/6 we get remainder as 6 and then we add 6+4 = 10 and we get remainder for 10/7 as 3. This way we deal with relatively smaller numbers and easier to calculate mentally.
Similarly while adding days we can divide by 7 and carry remainder. So far 23 we can carry only 2

Finding day for a given date part-1 (for dates between year 2000 to 2099)

We can find day for a given date. Steps are given below

First find Day-sum and then divide this by 7 and remainder is day code (0 for Sunday and 6 for Saturday starting). 

Day-sum =  year code+month code+Date.
Year code for 2015 is 4 and  Month code from Jan to Dec are 622 503 514 624 .

Let us find the day for 23 May 2015 
Year code is 4, month code 0 and date is 23rd
Day-sum is 4+0+23 = 27,  divide 27 by 7 and remainder is 6 and hence 23rd May is Saturday.

31st Dec 2015
Day-sum is 4+4+31 = 39, Divide 39 by 7 and the remainder is 4 and hence the day is Thursday

Finding year code : Value  for year 2000  is zero and and for subsequent years we add 2 digit of year code by number of leap years and divide by 7 and the remainder is year code for the year.
For year 2015 - leap years are 3 ( 15/4 ) and hence year value is  15+3=18 and divide 18 by 7 and the remainder is 4 which is the year code for 2015.



Year code for 2014 is (14+3) is 17 and dividing 17 by 7 we get remainder as 3 which is the year code for 2014,

Year code for 2042 is (43+10) is 53 and dividing  by 7 we get remainder as 4 which is the year code for 2043.

LEAP YEAR - For 2016 year code is 16+4=20, divide 20 by 7 and value is 6 but  for Jan & Feb we subtract 1 being leap year. So for Jan & Feb the year code is 5 and for rest of the month it is 6.

let us find days for some dates in year 2016 being a leap year.
2nd Jan 2016 ; We will take year code as 5 (6-1) being a leap year,  Day-sum is 5+6+2=13. Divide 13 by 7 and remainder is 6 and hence Saturday
31st March 2016 ; For march year code is 6, Day-sum is 6+2+31=39 and divide by 7 and remainder is 4 thus Thursday.



Saturday, May 9, 2015

Why we need a spiritual teacher ?- Extract from works of Swami Vivekananda

Every soul is destined to be perfect, and every being, in the end, will attain to that state. Whatever we are now, is the result of whatever we have been, or thought in the past, and whatever we shall be in future will be the result of what we do or think now. But this does not preclude our receiving help from outside; the possibilities of the soul are always quickened by some help from outside. In fact in the vast majority of cases in the world, help from outside is absolutely necessary. This quickening impulse, which comes from outside, cannot be received from books; the soul can receive impulse from another soul , and from nothing else. We may study books all our lives,  we may become very intellectual, but in the end we find we have not developed at all spiritually. 

It does not follow that a high order of intellectual development always shows an equivalent development of the spiritual side of man; on the other hand we find cases almost every day where the intellect have become very highly developed at the expense of the spirit. This is the reason that many of us can speak most wonderfully on spiritual subjects, but when the time of action comes, we find ourselves so woefully deficient. Many times acclaimed Gurus, with huge fan following by their mesmerising and intellectual  talks, behave in a manner that is not worthy of a developed of soul or spirituality.

The soul from which this impulse comes is called Guru or the teacher. In order to convey this impulse the Guru must possess the power of transmitting it and the disciple must be fit to receive it. The seed must be a living seed, and the field must be ready ploughed. When both these conditions are fulfilled, a wonderful growth of development of soul takes place.

The precondition for this to happen is that disciple must have a strong and sustained urge to develop and not just a momentary feeling driven by some mishap in life and the prerequisites are;

  1. Purity 
  2. A real and lasting thirst after knowledge
  3. Perseverance

Guru must be the right one fulfilling the necessary conditions as follow;
  1. He must have the knowledge of scriptures and understands and practices the spirit of the scriptures - Vedas, Bible, Koran...
  2. He must be sinless by his action and conduct
  3. His motive is pure for disciple's development and not any other motive, fame or money.

Only if the above two set of conditions are met, the real progress begins.