title: Finding t[] array in Sakamoto's algorithm to find the day of week
body: <p>I wanna know how to find how to calculate the values of <code>t[]</code> array  in this algorithm?</p>
  
  <pre><code>int dow(int y, int m, int d)        
  {        
  
     static int t[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};        
  
     y -= m &lt; 3;        
  
     return (y + y/4 - y/100 + y/400 + t[m-1] + d) % 7;        
  
  }
  </code></pre>