If 1st of January was Monday, what would be the day on 31st of January?
As you can see if 1st January is Monday then we have to add 7 to get the next Monday..
So the pattern will be 1,8,15,22,29. So if 29 is a Monday then 31 will be after 2 days which is a Wednesday.