week index is 1 based.
how many weeks
http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetTable
http://www.geeksforgeeks.org/count-set-bits-in-an-integer/