Answer:
After 121 passes, there will be 11 cups facing up
Step-by-step explanation:
Given that:
Peter initially lines up 121 cups facing down in a straight line from left to right and consecutively labels them from 1 to 121.
We can have an inequality ; i.e 1 ≤ n ≤ 121; if n represents the divisor including n itself for which n = odd number. Thus at the end of this claim, the cup will be facing up.
On the ith pass, he flips over cups i, 2i, 3i, 4i,.... (By "flip," we mean changing the cup from face down to face up or vice versa.)
For each divisor on the ith pass of n;
since we are dealing with possibility of having an odds number:
Thus;
and
where ; n = perfect square.
Thus ; we will realize that between 1 to 121 ; there exist 11 perfect squares. Therefore; as a result of that ; 11 cups will definitely be facing up after 121 passes