Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-28-2003, 06:46 PM   #1
kevinale
Confirmed User
 
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
GFY: Math Challenge #2

I'm not gonna make it a night of brain teasers. This is the last one I post.

Ok. Someone wanted another. So here goes. Pick an integer where four times that number is equal to the original integer whose numbers are reversed.

For example:

      WXYZ * 4 = ZYXW

NOTE: I'm not saying that this integer is 4 digits long. It could be any length.

Good luck.

<BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR>
<BR><BR><BR><BR><BR><BR><BR>
__________________
1monkey0cup.com
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 06:56 PM   #2
buddyjuf
Guest
 
Posts: n/a
holy fuck, this could be an all-nighter
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 06:56 PM   #3
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
"0" is one possible answer

was it supposed to be a non-negative non-zero integer?
__________________

Last edited by Lane; 05-28-2003 at 07:03 PM..
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 06:57 PM   #4
gezzed
Confirmed User
 
Join Date: Mar 2002
Posts: 317
219978 X 4 = 879912
gezzed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 06:57 PM   #5
kevinale
Confirmed User
 
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
Quote:
Originally posted by gezzed
219978 X 4 = 879912
Good one!

There are two other answers too that are smaller integers. Can you get them?
__________________
1monkey0cup.com
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 06:58 PM   #6
buddyjuf
Guest
 
Posts: n/a
Quote:
Originally posted by gezzed
219978 X 4 = 879912
whoa!
show me the script?
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 06:58 PM   #7
Spunky
I need a beer
 
Spunky's Avatar
 
Industry Role:
Join Date: Jun 2002
Location: ♠ Toiletville ♠
Posts: 133,944
none - the hun gets revenue from pre-paid gallery placements on the top 15 spaces and banners. the rest of thegalleries are free placements.

__________________
Spunky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 06:58 PM   #8
SetTheWorldonFire
Confirmed User
 
Industry Role:
Join Date: Feb 2002
Location: California
Posts: 7,444
0 through 9
__________________
www.STWOFDesign.com
hit me up on icq 154206276 or Skype: JaimeGizzle
SetTheWorldonFire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:01 PM   #9
gezzed
Confirmed User
 
Join Date: Mar 2002
Posts: 317
Quote:
Originally posted by SetTheWorldonFire
0 through 9
only 0 works

1 x 4 = 4 which is not 1 reversed
2 x 4 = 8 which is not 2 reversed

etc.
gezzed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:04 PM   #10
kevinale
Confirmed User
 
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
Quote:
Originally posted by gezzed


only 0 works

1 x 4 = 4 which is not 1 reversed
2 x 4 = 8 which is not 2 reversed

etc.
Yes.. 0 works too. There are two more (I forgot 0)..

Give up?
__________________
1monkey0cup.com
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:04 PM   #11
buddyjuf
Guest
 
Posts: n/a
for sure I give up,
I just want to know what kind of script would solve that question =)
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:13 PM   #12
gezzed
Confirmed User
 
Join Date: Mar 2002
Posts: 317
I'll post perl source either today or tomorrow. Not that difficult.
gezzed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:16 PM   #13
kevinale
Confirmed User
 
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
Quote:
Originally posted by bdjuf
for sure I give up,
I just want to know what kind of script would solve that question =)
I used PERL.. Here is the script I used. It doesn't have the answers.. I'll post them later..

<pre>

for($i=0; $i<999999; ++$i){
if(checkNum($i)){
print "ANSWER IS $i\n";
#exit(1);
}
}

sub checkNum{
$num = shift;
$num2 = "";
for($j=0; $j<=length($num); ++$j){
$num2 .= substr($num, length($num)-$j, 1);
}
if( ($num*4) hahahaha ($num2*1) ){
return 1;
}
return 0;
}
</pre>

This will print the 4 answers

PS: That "hahaha" is the "= =" without the space
__________________
1monkey0cup.com
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:19 PM   #14
michaelw
Confirmed User
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
2178
21978
219978

amateurs
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br>
See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631
michaelw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:20 PM   #15
michaelw
Confirmed User
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
One minute VB code:
Code:
Dim zNew As Variant

For x = 1 To 500000
    zNew = x * 4
    If StrReverse(zNew) = x Then
    Debug.Print x
    End If
Next
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br>
See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631
michaelw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:20 PM   #16
kevinale
Confirmed User
 
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
Quote:
Originally posted by michaelw
2178
21978
219978

amateurs
Those be them.. God job.
__________________
1monkey0cup.com
kevinale is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:23 PM   #17
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
2178
21978
219978
2199978
21999978
219999978
2199999978
etc..
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:23 PM   #18
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
shit, micheal beat me
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-28-2003, 07:29 PM   #19
michaelw
Confirmed User
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
Quote:
Originally posted by Lane
shit, micheal beat me
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br>
See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631
michaelw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.