Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
2.0k views
in Iteration and Recursion by (49.1k points)
closed by

There are 7 tumblers on a table, all standing upside down. You are allowed to turn any 2 tumblers simultaneously in one move. Is it possible to reach a situation when all the tumblers are right side up? (Hint: The parity of the number of upside down tumblers is invariant.)

1 Answer

+2 votes
by (54.8k points)
selected by
 
Best answer

Let u – No. of tumblers right side up

v – No. of tumblers up side down

Initial stage : u = 0, v = 7 (All tumblers upside down) 

Final stage output: u = 7, v = 0 (All tumblers right side up)

Possible Iterations:

(i) Turning both up side down tumblers to right side up u = u + 2, v = v – 2 [u is even]

(ii) Turning both right side up tumblers to upside down. u = u – 2, v = v + 2 [u is even]

(iii) Turning one right side up tumblers to upside down and other tumbler from upside down to right side up.

u = u + 1 – 1 = u, v = v + 1 – 1 = v [u is even] 

Initially u = 0 and continuous to be even in all the three cases. Therefore u is always even. Invariant: u is even (i. e. No. of right side up tumblers are always even)

But in the final stage (Goal), u = 7 and v = 0 i. e. u is odd.

Therefore it is not possible to reach a situation where all the tumblers are right side up.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...