A king asks a learned man to visit his palace.
The man says I will come any day next month.
But give me gold in gms equal to the date on which I come.
The king asks the jeweler to make rings of 1 to 31 gms.
The jeweler was smart and makes only 5 rings.
What was the weights of those rings?