Posting Freak
Posts: 6,052
Threads: 182
Joined: 2008-07
Assume you have 1 million doors, they are all closed.
You will do 1 million operations of opening/closing doors.
At operation number 1 you close (the ones opened) and open (the ones closed) that are multiple of 1
At operation number 2 you close (the ones opened) and open (the ones closed) that are multiple of 2
At operation number n you close (the ones opened) and open (the ones closed) that are multiple of n
.
.
.
At operation number 1,000,000 you close (the ones opened) and open (the ones closed) that are multiple of 1,000,000
How many open doors do you have at the end?
Posting Freak
Posts: 3,085
Threads: 178
Joined: 2010-09
Gender: Neuter
Country Flag: ireland
IGN: Stephen
Server: U.S.A.
Level: 25
Job: Sailor
Guild: USN
Guild Alliance: VAQ-141 Shadowhawks
Posting Freak
Posts: 1,688
Threads: 130
Joined: 2008-07
Posting Freak
Posts: 3,213
Threads: 466
Joined: 2008-07
Posting Freak
Posts: 764
Threads: 21
Joined: 2008-07
2010-11-11, 02:55 PM
(This post was last modified: 2010-11-11, 04:36 PM by Salguod.)
1
Edit: Misread; I should've known that would be too easy.
Posting Freak
Posts: 3,586
Threads: 232
Joined: 2008-07
Gender: Male
Sexual Orientation: Gay
Country Flag: canada
IGN: Jed
Level: 21
Job: Engineer
Guild: ACNL
Farm: West Egg
Posting Freak
Posts: 1,884
Threads: 37
Joined: 2008-07
Ugh, I'm not good at this type of thing. The only thing I'm sure of is that all the prime-numbered doors would be closed. But that's easy.
Okay... so basically if something has an even number of factors, it's closed. If it has an odd number of factors, it's open. Not sure how you could devise a way to do figure that out without having to systematically go through each door and figure out if it's open or closed; which is something I think the million is trying to discourage.
Posting Freak
Posts: 6,092
Threads: 186
Joined: 2008-07
Uh, this seems impossible without chopping everything up with a chain of automated reiterations.
The first turn will turn everything (including the first door) open. Subsequent operations no long touch doors they already passed, thus certain (e.g the first door) or more precise every door up to 999th retains its state past a certain point.
The open/close states depend on the door's total number of factors, which so far I haven't seen the pattern for. Even the primes pose enough of a problem for me personally.
Posting Freak
Posts: 6,052
Threads: 182
Joined: 2008-07
Yeah, the 1,000,000 is supposed to discourage force-solving.
If you really want discouragement, use 10^90 doors.
Posting Freak
Posts: 6,092
Threads: 186
Joined: 2008-07
Posting Freak
Posts: 2,820
Threads: 130
Joined: 2008-07
Easy, all perfect squares of the form f(x) = x^2 are left open where x is an integer greater than 0.
Take the square root of the number, in this case it's 1*10^6, which simpliy equates to 1,000. In the case of a decimal, round down.
So what Jean/mondays said.
Posting Freak
Posts: 6,092
Threads: 186
Joined: 2008-07
I see, whatever number of factors x has, the number of factors of f(x) is made even with the square. But how do you see the reverse, if X had an even number of factors, it is a perfect square?
Senior Member
Posts: 358
Threads: 22
Joined: 2008-09
Gender: Male
Country Flag: canada
IGN: ATime
Server: Khaini (yay~)
Level: 116
Job: Sniper
Guild: Dominus
Even prime numbers would be closed, since they can be a factor of 1 and that prime number.
So the only doors that are open are: f(x)=x^2 where x is an element of the natural number.
Posting Freak
Posts: 3,558
Threads: 128
Joined: 2009-12
Gender: Transgender - M2F
Sexual Orientation: Lesbian
Country Flag: mexico
IGN: SweetieBelle
Server: Culverin
Job: Luminous
Guild: Zodiac
Guild Alliance: Leafre
You still have all doors, they never went anywhere, you jsut opened and closed them.
Posting Freak
Posts: 6,052
Threads: 182
Joined: 2008-07
Kaasoljoyyx Wrote:Easy, all perfect squares of the form f(x) = x^2 are left open where x is an integer greater than 0.
Take the square root of the number, in this case it's 1*10^6, which simpliy equates to 1,000. In the case of a decimal, round down.
So what Jean/mondays said.
=3
Posting Freak
Posts: 18,970
Threads: 319
Joined: 2008-07
Solarboy Wrote:You still have all doors, they never went anywhere, you jsut opened and closed them.
He won.
Posting Freak
Posts: 2,169
Threads: 23
Joined: 2009-09
Gender: Male
Sexual Orientation: Straight
Country Flag: usa
Guild: Revive
Solarboy Wrote:You still have all doors, they never went anywhere, you jsut opened and closed them. Shidoshi Wrote:How many open doors do you have at the end?
Meep.
Posting Freak
Posts: 3,558
Threads: 128
Joined: 2009-12
Gender: Transgender - M2F
Sexual Orientation: Lesbian
Country Flag: mexico
IGN: SweetieBelle
Server: Culverin
Job: Luminous
Guild: Zodiac
Guild Alliance: Leafre
¬Rob Wrote:Meep.
Damn, read that wrong then.
Posting Freak
Posts: 3,085
Threads: 178
Joined: 2010-09
Gender: Neuter
Country Flag: ireland
IGN: Stephen
Server: U.S.A.
Level: 25
Job: Sailor
Guild: USN
Guild Alliance: VAQ-141 Shadowhawks
Solarboy Wrote:You still have all doors, they never went anywhere, you jsut opened and closed them.
Takebacker Wrote:He won.
...
Mute Wrote:1,000,000.
i was right fir--
¬Rob Wrote:Meep.
DAMN YOU.
Won't Be Coming Back
Posts: 1,198
Threads: 75
Joined: 2009-12
Gender: Male
Sexual Orientation: Gay
Country Flag: canada
IGN: Scofflaw
Server: Cain
Level: 70
Job: Wrecking Ball
Guild: Factory
|