Math Forum :: View topic – volume of a rhombus based pyramid

2003 children are labeled 1 to 2003. Each of them has 20 candies at the beginning. Candies are then given to or taken away from them as follows. 3 candies are given to each child with a label which is a multiple of 1, then 1 candy is taken away from each child with a label wich is a multiple of 2, then 3 candiesd are given to each child with a lable wich is a multiple of 3, then 1 candy is taken away from each child with a label which is a multiple of 4, and so on, till finally 3 candies are given to eaach child with a label which is a muitiple of 2003. how many children can get extra candies i.e. have 21 candies or more) in the end?