a much better logical puzzle

Recommended Videos

AbsoluteVirtue18

New member
Jan 14, 2009
3,616
0
0
......I know the answer, but for all the friggan' work I just did I didn't get any of my sister's strawberry shortcake things.....

..so.....

I'm going to walk into said room and destroy the goblins because they are obviously evil and plotting something dastardly. I mean, who has a room full of goblins, light switches, and light bulbs anyway? Evil people.
 

restoshammyman

New member
Jan 5, 2009
261
0
0
restoshammyman said:
Gitsnik said:
restoshammyman said:
so freaking wrong. check your program. to bad i only know pascal and javascript :(
It's the logic not the program ;)

Teach me to write code when I should be working.

Edit:

Well there you go, change that 2 for a 1 in the loop:

1 is on
4 is on
9 is on
16 is on
25 is on
36 is on
49 is on
64 is on
81 is on
100 is on

Personally, I don't even know if that is right or not (still) - but there it is.
100 is not on.
do you notice a pattern in the other ones?
if you have been looking for the wrong logic in your program. stop.
i forgot about 100. it is on
 

dragontiers

The Temporally Displaced
Feb 26, 2009
497
0
0
restoshammyman said:
dragontiers said:
Um, quick question. Which lights, if any, were on before the goblins started throwing switches? That is a major factor in the equations.
they all start off.
i spent an hour idiot proofing and i missed that.
That's all right. It's impossible to idiot proof anything. The minute you do, some idiot comes along to prove you wrong (Wait, did I just call myself an idiot? Oh, crap). Mostly I was just checking that we weren't working with some random lights on and others off. That would just be cruel, especially if you didn't mention it.
 

Gitsnik

New member
May 13, 2008
798
0
0
restoshammyman said:
restoshammyman said:
Gitsnik said:
restoshammyman said:
so freaking wrong. check your program. to bad i only know pascal and javascript :(
It's the logic not the program ;)

Teach me to write code when I should be working.

Edit:

Well there you go, change that 2 for a 1 in the loop:

1 is on
4 is on
9 is on
16 is on
25 is on
36 is on
49 is on
64 is on
81 is on
100 is on

Personally, I don't even know if that is right or not (still) - but there it is.
100 is not on.
do you notice a pattern in the other ones?
if you have been looking for the wrong logic in your program. stop.
i forgot about 100. it is on
Goddamn. I just went through by hand and calculated all the numbers 100 could divide into for checks. The pattern is that they are all squares by the way - which I'd noted earlier but due to the 2 for 1 replacement I'd screwed had figured id just been wrong.

So was that it?
 

waggmd

New member
Feb 12, 2009
286
0
0
TheNecroswanson said:
waggmd said:
restoshammyman said:
waggmd said:
I think the only one's left on are the are lights which are perfect squares.
wow that was fast.
we got a guy with a working brain over here.
Actually I just helped my sister with this problem not too long ago. It was part of her Grade 8 math assignment.
Could someone explain this one to me? Do we mean four sided square, or square root?
Sure glad to help. Since all the lights start off to begin with. The 1st goblin is going to turn all the lights on. Now the second goblin being a prick is going to turn off all the even numbered switches, the third goblin is then going turn off all the lights switches whose number is divisble by 3. The 4th goblin repeats the pattern but he turns the number 4 light back on, as well as any other light switch which is even and divisble by 4. Just follow this pattern and you will notice the only ones left on are perfect squares.
 

cptjack42

New member
Mar 16, 2009
332
0
0
1,4,9,16,25,36,49,64,81,100

The perfect squares, right? An odd number of factors between 1 and 100.
 

restoshammyman

New member
Jan 5, 2009
261
0
0
Gitsnik said:
restoshammyman said:
restoshammyman said:
Gitsnik said:
restoshammyman said:
so freaking wrong. check your program. to bad i only know pascal and javascript :(
It's the logic not the program ;)

Teach me to write code when I should be working.

Edit:

Well there you go, change that 2 for a 1 in the loop:

1 is on
4 is on
9 is on
16 is on
25 is on
36 is on
49 is on
64 is on
81 is on
100 is on

Personally, I don't even know if that is right or not (still) - but there it is.
100 is not on.
do you notice a pattern in the other ones?
if you have been looking for the wrong logic in your program. stop.
i forgot about 100. it is on
Goddamn. I just went through by hand and calculated all the numbers 100 could divide into for checks. The pattern is that they are all squares by the way - which I'd noted earlier but due to the 2 for 1 replacement I'd screwed had figured id just been wrong.

So was that it?
sorry i made you go by hand mate.
they are all perfect squares as one guy said.
and yea. your program is correct. thats the numbers.
 

HateDread

New member
Jan 20, 2009
248
0
0
restoshammyman said:
HateDread said:
Roundhousekickintheface said:
um. Pie lights are turned on
Bahahaa. Hatedread approves.
if you can both explain how 0.14 of a lamp can be on.
ill accept this answer as correct.
Only if you explain how there are actually goblins involved, then why they want to mess with the light switches, then how they actually do that. :)
 

Gitsnik

New member
May 13, 2008
798
0
0
restoshammyman said:
HateDread said:
Roundhousekickintheface said:
um. Pie lights are turned on
Bahahaa. Hatedread approves.
if you can both explain how 0.14 of a lamp can be on.
ill accept this answer as correct.
Oh oh oh.

AFTER you can tell me how a CPU knows what a 0 and a 1 is. Electrical charge is not so simple as a binary value.

Ok so not really a spoiler and my memory is vague on it, but the CPU receives a single (n) unit of power. If it does not receive n*0.7 then the value is considered off (0) and if it does receive greater than n*0.7 of the n units, it considers it one.

The point here is that it is possible for something to be 0.14 on - as far as we are concerned the lamp is "on" when we can see light, but at what power level can we see the light - and at what power level does it reach full strength. The change might be instantaneous to our puny minds, but it still happens incrementally
I might write code to solve simple problems, but damn there is a lot of random crap in my head!
 

restoshammyman

New member
Jan 5, 2009
261
0
0
Gitsnik said:
restoshammyman said:
HateDread said:
Roundhousekickintheface said:
um. Pie lights are turned on
Bahahaa. Hatedread approves.
if you can both explain how 0.14 of a lamp can be on.
ill accept this answer as correct.
Oh oh oh.

AFTER you can tell me how a CPU knows what a 0 and a 1 is. Electrical charge is not so simple as a binary value.

Ok so not really a spoiler and my memory is vague on it, but the CPU receives a single (n) unit of power. If it does not receive n*0.7 then the value is considered off (0) and if it does receive greater than n*0.7 of the n units, it considers it one.

The point here is that it is possible for something to be 0.14 on - as far as we are concerned the lamp is "on" when we can see light, but at what power level can we see the light - and at what power level does it reach full strength. The change might be instantaneous to our puny minds, but it still happens incrementally
I might write code to solve simple problems, but damn there is a lot of random crap in my head!
that might be how the CPU works but the RAM and the hard disc don't.
the hard disc i a large metallic disc thing. you can set magnetic charges on it. if theres a magnetic charges its called 1. if not its called 0.

RAM is something else all together. as far as i know there have been 2 major changes since the original RAM. the first one was also electromagnetic, the 2nd one was built with a bzillion logic gates. and the new one is a capacitor thing.
they somehow discovered that some capacitor type can hold a charge without losing any of its power for a very short amount of time. what it does is, hold the charge for that amount. then feeds it back into itself. this way the charge should hold forever. signaling that its a 1.
if the capacitor doesn't have a charge, its a 0.

my mind is just as fucked up as yours
 

Gitsnik

New member
May 13, 2008
798
0
0
restoshammyman said:
that might be how the CPU works but the RAM and the hard disc don't.
the hard disc i a large metallic disc thing. you can set magnetic charges on it. if theres a magnetic charges its called 1. if not its called 0.
Nope. A hard disk retains previous state information as well - look at data recovery. There is a n and a 1/n value once again here.

RAM is something else all together. as far as i know there have been 2 major changes since the original RAM. the first one was also electromagnetic, the 2nd one was built with a bzillion logic gates. and the new one is a capacitor thing.
they somehow discovered that some capacitor type can hold a charge without losing any of its power for a very short amount of time. what it does is, hold the charge for that amount. then feeds it back into itself. this way the charge should hold forever. signaling that its a 1.
if the capacitor doesn't have a charge, its a 0.

my mind is just as fucked up as yours
You can also perform cold ram attacks too to retrieve all sorts of data. Again, n*y and n can be equal to the same thing (i.e. "on") but they can hold different charges. The same for Off. Ram is a lot more volatile than a harddisk - especially for data retention - but you can work with it.

One of the first types of RAM (whose name I forget) actually could survive a power failure. A nifty trick - but slow as sin.

So basically, pi lamps is plausable. It's wrong, but plausable.

Also, no matter how often you say up or down, we can look smaller - we haven't yet nutted out what makes up the parts that make up atoms (or however deep we've gone so far) but if we can split them, there's still more to look into.
 

Syntax Error

New member
Sep 7, 2008
2,323
0
0
restoshammyman said:
I remember my Computer Architecture and Organization lectures. Thanks. I think those capacitor-based ones were the ones that needed refreshing because capacitors can only hold a charge for so long.

And this thread became a fountain for maths and nerdiness. Resto, I salute you.
 

restoshammyman

New member
Jan 5, 2009
261
0
0
Syntax Error said:
restoshammyman said:
I remember my Computer Architecture and Organization lectures. Thanks. I think those capacitor-based ones were the ones that needed refreshing because capacitors can only hold a charge for so long.

And this thread became a fountain for maths and nerdiness. Resto, I salute you.
well. the first guy solved it in about 30 min(claimed he helped hes little sister with it a while ago).
after the answer is up. theres not much else to do then to make fun of stupid answers.

and thanks to dual specing. it is now resto/elemental shammy man