GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   GFY: Math Challenge (https://gfy.com/showthread.php?t=137884)

kevinale 05-28-2003 04:30 PM

GFY: Math Challenge
 
Well my girlfriend works in an actuarial department (basically math geeks) and they have from time to time. So here was a math problem that was forwarded to the office group. See if you can get it.




There is a number (n) that is composed of 3 digits such that when squared, it's result has only even numbers. When (n+500) is squared, it has a result that is comprised of only even numbers.

What is n?

<BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR>

-=HOAX=- 05-28-2003 04:31 PM

4

Juicy D. Links 05-28-2003 04:32 PM

69

The Truth Hurts 05-28-2003 04:36 PM

unless you worded it wrong... or i read it wrong... there seems to be a lot of possible answers.

imJason 05-28-2003 04:39 PM

yah I think its worded wrong also,

all 3 digit numbers that are even, would be even when squared,

so thats like half the numbers from 100 to 998

and adding 500 to them still means they are even, no matter what the number, so its square would also be even,

???

SpaceAce 05-28-2003 04:40 PM

Quote:

Originally posted by imJason
yah I think its worded wrong also,

all 3 digit numbers that are even, would be even when squared,

so thats like half the numbers from 100 to 998

and adding 500 to them still means they are even, no matter what the number, so its square would also be even,

???

He didn't say the number was merely even, it is comprised of all even digits.

SpaceAce

European Lee 05-28-2003 04:42 PM

I know this much.....

Its a prime number :thumbsup

Regards,

Lee

imJason 05-28-2003 04:42 PM

Quote:

Originally posted by SpaceAce


He didn't say the number was merely even, it is comprised of all even digits.

SpaceAce

your right, not is a even number, is comprised only of even numbers

ok

Pipecrew 05-28-2003 04:42 PM

you are all impicbles, the answer is 112.5

The Truth Hurts 05-28-2003 04:43 PM

Quote:

Originally posted by SpaceAce


He didn't say the number was merely even, it is comprised of all even digits.

SpaceAce

that still leaves a lot of possibilities..

kevinale 05-28-2003 04:43 PM

Quote:

Originally posted by SpaceAce


He didn't say the number was merely even, it is comprised of all even digits.

SpaceAce

I didn't say (n) was even. I said (n)^2 has all even digits and (n+500)^2 has all even digits.

The Truth Hurts 05-28-2003 04:43 PM

Quote:

Originally posted by Pipecrew
you are all impicbles, the answer is 112.5

on that note...
what the fuck is an impicble?

BlueDesignStudios 05-28-2003 04:44 PM

462

Did i win?

buddyjuf 05-28-2003 04:44 PM

168 times 168 is 28224 and 668 times 668 is 446224

n = 168

what do I win?

SpaceAce 05-28-2003 04:46 PM

Quote:

Originally posted by kevinale


I didn't say (n) was even. I said (n)^2 has all even digits and (n+500)^2 has all even digits.

I know. I was trying to point that out to everyone who thought the resulting number had to be merely even. I wasn't talking about n, I was talking about it's square.

SpaceAce

stocktrader23 05-28-2003 04:48 PM

Quote:

Originally posted by bdjuf
168 times 168 is 28224 and 668 times 668 is 446224

n = 168

what do I win?

Mind explaining how you got to that figure?

kevinale 05-28-2003 04:49 PM

Quote:

Originally posted by bdjuf
168 times 168 is 28224 and 668 times 668 is 446224

n = 168

what do I win?

ONE MEEEELION DOLLARS!

Good job.

Damian_Maxcash 05-28-2003 04:49 PM

Quote:

Originally posted by bdjuf
168 times 168 is 28224 and 668 times 668 is 446224

n = 168

what do I win?

Beat me to by about 5 secs......:(

buddyjuf 05-28-2003 04:50 PM

Quote:

Originally posted by stocktrader23


Mind explaining how you got to that figure?

the power of PHP =)

http://www.wantsmut.com/square.php

Beastiepoo 05-28-2003 04:52 PM

Quote:

Originally posted by Pipecrew
you are all impicbles, the answer is 112.5
:1orglaugh :1orglaugh

kevinale 05-28-2003 04:52 PM

I wrote a PERL program to figure it out for me. My g/f used Excel. Here is my code:

<pre>

for($n=100;$n<999;++$n) {
print "$n \n";
if(allEven($n) && allEven($n+500)){
print "\n\nI GOT IT! THE # is -> $n\n\n";
exit(1);
}
}

sub allEven{
$num1 = shift;
$num = "" . $num1**2;
$retVal = 1;
for($i=0; $i<length($num);++$i){
# print " TRYING $num length = " . length($num);
$k = substr($num,$i,1);
if($k%2 hahahaha 0){
$retVal &= 1;
}
else{
$retVal = 0;
}
}

return $retVal;

}

</pre>

Mathius 05-28-2003 04:54 PM

Quote:

Originally posted by bdjuf
168 times 168 is 28224 and 668 times 668 is 446224

n = 168

what do I win?

nice job!!!

nazgul 05-28-2003 05:01 PM

Son of a bitch.... i just got here... and just figured it out on excel

168 is correct

buddyjuf 05-28-2003 05:06 PM

give us more of these :thumbsup

-=HOAX=- 05-28-2003 05:37 PM

4

kevinale 05-28-2003 06:23 PM

Quote:

Originally posted by SpaceAce


I know. I was trying to point that out to everyone who thought the resulting number had to be merely even. I wasn't talking about n, I was talking about it's square.

SpaceAce

Yeah. I was agreeing with you.. I was just re-stating your quote and trying to further explain what the question was.

buddyjuf 05-28-2003 06:24 PM

Quote:

Originally posted by kevinale


Yeah. I was agreeing with you.. I was just re-stating your quote and trying to further explain what the question was.

that was an ugly bump :(


All times are GMT -7. The time now is 04:32 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123