Question 21
Four friends A,B,C,D have 76 candies in total. They simultaneously share their candies as follows: A keeps one candy and divides the remainder equally among the other three; B keeps two and divides the rest equally among the other three; C keeps three and divides the rest equally among the other three; D keeps four and divides the rest equally among the other three. Afterwards they have equal numbers of candies. How many candies did A have initially?

