Y by sami1618
Ali is hosting a large party. Together with his
friends,
people are seated around a circular table in a fixed order. Ali places
apples for serving directly in front of himself and wants to distribute them among everyone. Since Ali and his friends dislike eating alone and won't start unless everyone receives an apple at the same time, in each step, each person who has at least one apple passes one apple to the first person to their right who doesn't have an apple (in the clockwise direction).
Find all values of
such that after some number of steps, the situation reaches a point where each person has exactly one apple.



Find all values of
