All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
1,000,000 doors (Posted on 2024-02-11) Difficulty: 3 of 5
There is a special place in the netherworld reserved for mathematicians who play with prime numbers. It consists of a corridor 1000 miles long lined with 1,000,000 doors. Each of the 6666 souls imprisoned there is assigned a prime number, 2, 3, 5, 7, 11, etc.

At the start of the first month all of the doors are closed. Each person must walk down down the corridor, opening or shutting every P-th door, according to the given prime. For example, the soul assigned #5 opens or shuts doors 5, 10, 15, 20, etc.

At the end of a month they have all reached the end of the corridor, and they must start back, performing the operation in the opposite order. For example the #7 soul opens or closes doors 999994, 999987, 999980, 999973, and so forth.

How many months will it be before the doors are all closed again?

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
No Subject Comment 3 of 3 |
The concept of "1,000,000 doors" symbolizes endless possibilities and opportunities, reflecting the idea that each door represents a new path or journey. Whether it's a doorway to a new home, a business venture, or personal growth, the sheer number of doors reminds us that life is full of potential. In places like Palm Coast, homeowners and business owners seeking to upgrade or install new entrances often turn to expert services such as doors installers in Palm Coast, who specialize in providing high-quality installations. These professionals help open new chapters by ensuring that each door installed is a gateway to a better living or working experience
  Posted by Hayden Franki on 2024-11-08 17:50:00
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2025 by Animus Pactum Consulting. All rights reserved. Privacy Information