Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > Other Topics > Science, Math, and Philosophy
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-16-2005, 07:11 AM
ZeeJustin ZeeJustin is offline
Senior Member
 
Join Date: Jul 2003
Location: Northern VA (near DC)
Posts: 1,213
Default Re: another brain teaser for the math inclined

Hint: The problem becomes much easier if you don't leave out kid #2. I'm assuming kid #2 got lost in translation somewhere.

Answer in white: <font color="white"> Only perfect squares will be open, i.e 2, 4, 12, 16, 25, 36, 49, 64. If kid #2 was supposed to be left out, just take my answer and switch all the even doors.</font>

Reasoning: <font color="white"> Only perfect squares have an odd number of factors </font>
Reply With Quote
  #12  
Old 11-16-2005, 06:15 PM
lotus776 lotus776 is offline
Junior Member
 
Join Date: Mar 2005
Location: Southern California
Posts: 11
Default Re: another brain teaser for the math inclined

okay, I'll try to piece it together. thank you for you help
Reply With Quote
  #13  
Old 11-16-2005, 06:57 PM
BigSoonerFan BigSoonerFan is offline
Junior Member
 
Join Date: Oct 2004
Location: Midwest
Posts: 4
Default Re: another brain teaser for the math inclined

[ QUOTE ]
Hint: The problem becomes much easier if you don't leave out kid #2. I'm assuming kid #2 got lost in translation somewhere.

Answer in white: <font color="white"> Only perfect squares will be open, i.e 2, 4, 12, 16, 25, 36, 49, 64. If kid #2 was supposed to be left out, just take my answer and switch all the even doors.</font>

Reasoning: <font color="white"> Only perfect squares have an odd number of factors </font>

[/ QUOTE ]

I think you mistakenly put a couple of numbers in there and missed one!
Reply With Quote
  #14  
Old 11-17-2005, 04:50 PM
AleoMagus AleoMagus is offline
Senior Member
 
Join Date: Oct 2003
Location: Victoria BC
Posts: 252
Default Re: another brain teaser for the math inclined

[ QUOTE ]
I think you mistakenly put a couple of numbers in there and missed one!

[/ QUOTE ]

Actually, just in that list, he missed two, and yeah, put a couple other extra in. Still, the answer is correct in that only perfect squares will be open.

<font color="white">1,4,9,16,25,36,49,64,81,...,961. </font>
Reply With Quote
  #15  
Old 11-17-2005, 05:02 PM
ZeeJustin ZeeJustin is offline
Senior Member
 
Join Date: Jul 2003
Location: Northern VA (near DC)
Posts: 1,213
Default Re: another brain teaser for the math inclined

[ QUOTE ]
[ QUOTE ]
Hint: The problem becomes much easier if you don't leave out kid #2. I'm assuming kid #2 got lost in translation somewhere.

Answer in white: <font color="white"> Only perfect squares will be open, i.e 2, 4, 12, 16, 25, 36, 49, 64. If kid #2 was supposed to be left out, just take my answer and switch all the even doors.</font>

Reasoning: <font color="white"> Only perfect squares have an odd number of factors </font>

[/ QUOTE ]

I think you mistakenly put a couple of numbers in there and missed one!

[/ QUOTE ]

Yeah, I'm retarded. I have absolutely no recollection of what I was thinking or how those extra numbers got in there. I guess for some reason I though 3x3 = 12. Can you prove that it doesn't?!
Reply With Quote
  #16  
Old 11-17-2005, 05:53 PM
lotus776 lotus776 is offline
Junior Member
 
Join Date: Mar 2005
Location: Southern California
Posts: 11
Default Re: another brain teaser for the math inclined

yeah, I got it thanks
Reply With Quote
  #17  
Old 11-17-2005, 09:38 PM
hypermegachi hypermegachi is offline
Senior Member
 
Join Date: Oct 2004
Location: flop turn river
Posts: 157
Default Re: another brain teaser for the math inclined

<font class="small">Code:</font><hr /><pre> public static void main(String[] args) {
boolean[] lockers = new boolean[1000];

for (int person = 0; person &lt; 1000; ++person) {
// have each person flip every nth door
for (int i = person; i &lt; lockers.length; i += person + 1)
lockers[i] = !lockers[i]; // flip door
}

// print some lockers
for (int i = 0; i &lt; lockers.length; ++i)
System.out.print(lockers[i] + ",");
} </pre><hr />

[ QUOTE ]
true,false,false,true,false,false,false,false,true ,false,false,false,false,false,false,true,false,fa lse,false,false,false,false,false,false,true,false ,false,false,false,false,false,false,false,false,f alse,true,false,false,false,false,false,false,fals e,false,false,false,false,false,true,false,false,f alse,false,false,false,false,false,false,false,fal se,false,false,false,true,false,false,false,false, false,false,false,false,false,false,false,false,fa lse,false,false,false,true,false,false,false,false ,false,false,false,false,false,false,false,false,f alse,false,false,false,false,false,true,false,fals e,false,false,false,false,false,false,false,false, false,false,false,false,false,false,false,false,fa lse,false,true,false,false,false,false,false,false , ...

[/ QUOTE ]
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.