Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

The Drunken Warden?

A jail consists of 100 cells in a line, all starting out closed. The warden gets drunk one night and goes along opening every single cell. He then returns to the beginning, and "toggles" every second cell -- in this case, they're all open, so he closes every other cell door. He then runs to the beginning again, and "toggles" every third cell, then again with every fourth cell, and so on until the very last run in which he only toggles the hundredth cell, then drops down from exhaustion.

How many cells are left open after this process?

6 Answers

Relevance
  • 2 decades ago
    Favorite Answer

    10. Ten. Every cell that is a perfect square will remain open

    (1, 4, 9, 16, 25, 36, 49, 64, 81, and 100). If a number is not

    a perfect square, then it has an even number of divisors,

    therefore it will be "toggled" an even number of times and

    end up where it started (closed). Perfect squares have an odd

    number of divisors, so they will end up the opposite of where

    they started (open).

  • 1. He never toggled the first cell.

    Source(s): my brain (after coffee)
  • 2 decades ago

    1 cell

  • Anonymous
    2 decades ago

    2 like in 2pts

  • How do you think about the answers? You can sign in to vote the answer.
  • 2 decades ago

    I think Chicken Lover got it

  • 2 decades ago

    none

Still have questions? Get your answers by asking now.