text: thge kids that gets a candy are caractreised by the following :\n\n1,3,6,10,15 etc ( Cn+1 = Cn + n)\nwhere C a child n the childs index.\n\nbecause sghe can walk multiple tours you have to take the modulo n to get the proper child's index.\n\nso for 4 kids : 1,3,2,2,3,1...