The Grey Labyrinth is a collection of puzzles, riddles, mind games, paradoxes and other intellectually challenging diversions. Related topics: puzzle games, logic puzzles, lateral thinking puzzles, philosophy, mind benders, brain teasers, word problems, conundrums, 3d puzzles, spatial reasoning, intelligence tests, mathematical diversions, paradoxes, physics problems, reasoning, math, science.

   
The Grey Labyrinth Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GL Math Contest (mith wins)

 
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Games
View previous topic :: View next topic  
Author Message
MatthewV
Daedalian Member :_



PostPosted: Wed Mar 01, 2006 11:20 pm    Post subject: 1 Reply with quote

The objective is to is to use the randomly chosen numbers 7, 18, 5, 25, 12, 1, 2, 25,18, 9 ,14, 20, 8 to be as close to 1000pi (3141.592653...) with the smallest score. The numbers must be used in order. Mathematical symbols have the following cost:

Code:
sign  cost  example

 +    free  3+9=12 
 -    1     5-3-1=1   (cost of 1*2=2)
 *    3     4*3*3=36  (cost of 3*2=6)
 /    3     20/5=4 
 ^    5     2^4=16    (roots can be made with ^.5 for the same cost)
 ()   2     5*(2+4)=30 (NOTE: the * is not included in the cost)
 !    7     4!=24     
|ab|  4     |-12|=12 

log   7     log100=2  (ONLY base 10)
ln    7     ln60=4.094344...

combining two numbers (you have 17 and 3 next to each other->173)
      10

sin
cos
tan   100   (ONLY in radians)
csc
sec
cot

asin
acos
atan  1000 (arctan) (output in radians)
acsc
asec
acot


Being away from 1000pi has the cost of 5*(distance away) If you get to 3139, 5*(1000<pi>-3139)= ~12.963. This will be carried out as far as needed to break ties when possible.


Code:
Example:
-7*18^.5+25*(12+1)- (log2^.25)*18*914 -20*8 = 2776.7448...
1 3  5  0  32  0  1 2 7  5    3  3 10 1  3     1824.239... 
TOTAL= 1824.239+49= 1873.239

The order of operations are very important. Submissions may be PMed to me or posted in the thread.

This will end on March 14 at 11:59 Alaska Time.


Last edited by MatthewV on Thu Mar 16, 2006 8:51 am; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail AIM Address
jeep
Daedalian Member



PostPosted: Thu Mar 02, 2006 12:41 am    Post subject: 2 Reply with quote

A couple questions... what is the order of precedence used? Left to right? Root, mult/div, add/sub...??

Also, in your example...
Code:
Example:
-7*18^.5+25(12+1)- (log2^.25)*18*914 -20*8 = 2776.7448...
1 3  5  0  2  0  1 2 7  5    3  3 10 1  3     1824.239... 
TOTAL= 1824.239+46= 1870.239


Would 25(12+1) give you multiplication for free? I'm guessing there would need to be a * in there, right?

-JEEP
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MatthewV
Daedalian Member :_



PostPosted: Thu Mar 02, 2006 2:45 am    Post subject: 3 Reply with quote

Fixed..

And jeep seems to be right.
Left to right 1. powers 2. multiple/divide 3. add subtract
Back to top
View user's profile Send private message Send e-mail AIM Address
alphatango
Daedalian Member



PostPosted: Thu Mar 02, 2006 11:22 am    Post subject: 4 Reply with quote

Must all the given numbers be used?
_________________
"Hanging is too good for a man who makes puns; he should be drawn and quoted." -- Fred Allen

Keeper of the Eternal Flame of the Inner Geek.
Back to top
View user's profile Send private message
MatthewV
Daedalian Member :_



PostPosted: Thu Mar 02, 2006 8:34 pm    Post subject: 5 Reply with quote

They must all be used in order.
Back to top
View user's profile Send private message Send e-mail AIM Address
MatthewV
Daedalian Member :_



PostPosted: Thu Mar 02, 2006 9:40 pm    Post subject: 6 Reply with quote

For those who have tried but didn't come up with a completely awesom answer...
A score of 100 is OK
A score of 50 is pretty good
A score is 25 or less is sweet.
Back to top
View user's profile Send private message Send e-mail AIM Address
Lepton*
Guest



PostPosted: Sun Mar 05, 2006 12:29 am    Post subject: 7 Reply with quote

If the inverse trig functions are allowed, then a perfect solution is possible, right? Now, to find it...
Back to top
Lepton*
Guest



PostPosted: Sun Mar 05, 2006 12:56 am    Post subject: 8 Reply with quote

How about:

(7 + 18) * 5 * asin( - 25 + 12 + 1 + 2 + 25 - 18 + 9 + 14 - 20) * 8
1000 * asin( 0 )
1000 * pi

Oh, I just re-read the rules. I though that the distance was multiplied by the cost, rather than added to it. I guess that gives me a cost of 1012, which sux0rs. Ah well, at least it's something to beat, right?
Back to top
MatthewV
Daedalian Member :_



PostPosted: Sun Mar 05, 2006 1:11 am    Post subject: 9 Reply with quote

The distance you are away is mulitplied by 5 and then added to your score.

Yup... the arc functions suck for that reason. I wanted that...

And this is also because is the arcsin of 0 really equal to pi? It is also equal to 0 (a more common answer I believe).I don't mind it because it is Lepton and because all the other entries have had a lower score.

Right now I have
mith, Talzor, kevinatilusa, Lepton (and myself)
Back to top
View user's profile Send private message Send e-mail AIM Address
Lepton*
Guest



PostPosted: Sun Mar 05, 2006 7:56 am    Post subject: 10 Reply with quote

In retrospect, I just wanted to see if I could find a "perfect" solution. The arcsine functions are multi-valued, so asin(0) could equally well be 0 or 12345*pi.
Back to top
mith
Pitbull of Truth



PostPosted: Sun Mar 05, 2006 8:32 am    Post subject: 11 Reply with quote

arcsin (etc.) often is defined to only give the principal values (0, for arcsin(0)).

Not that it really matters here, as using the trig functions is clearly not the way to go. Revenge most foul!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
/dev/joe*
Guest



PostPosted: Wed Mar 08, 2006 5:23 pm    Post subject: 12 Reply with quote

7 + (-18-5+25+12)^(1+2) + 25 + (18+9)*14 - 20 + 8 = 3142, for a score of 19 and a smidge.
Back to top
Talzor
Daedalian Member



PostPosted: Fri Mar 10, 2006 11:49 am    Post subject: 13 Reply with quote

-7 - 18 + 5 + 25 - 12 - 1 + 2 * 25 * 18 + 9 + 14 * 20 * 8 for a score a smidge under 19.
Sorry couldn't help myself Revenge most foul!.
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Amb
Amb the Hitched.



PostPosted: Sat Mar 11, 2006 7:25 am    Post subject: 14 Reply with quote

My first attempt gives

(((7*18+5)/25*12-1)*2-25-18+9)*14)*20/8) = 3141.60
Back to top
View user's profile Send private message AIM Address MSN Messenger
Amb
Amb the Hitched.



PostPosted: Sat Mar 11, 2006 7:37 am    Post subject: 15 Reply with quote

I also have ((7 + 18) * 5 * 25 - 12) * 1 + 2 - 25 + 18 - 9 + 14 + 20 + 8 = 3141.00 which is apparently 18.9632 points?
Back to top
View user's profile Send private message AIM Address MSN Messenger
MatthewV
Daedalian Member :_



PostPosted: Sat Mar 11, 2006 7:50 am    Post subject: 16 Reply with quote

appears the "smidge under 19" group is tied Felicitous
Back to top
View user's profile Send private message Send e-mail AIM Address
Amb
Amb the Hitched.



PostPosted: Sat Mar 11, 2006 7:58 am    Post subject: 17 Reply with quote

Can we get an idea of what to target to steal 1st place :-p
Back to top
View user's profile Send private message AIM Address MSN Messenger
MatthewV
Daedalian Member :_



PostPosted: Sat Mar 11, 2006 8:07 am    Post subject: 18 Reply with quote

GLAmb1089: Too lazy :-p

Are you still too lazy??
Back to top
View user's profile Send private message Send e-mail AIM Address
Talzor
Daedalian Member



PostPosted: Sat Mar 11, 2006 11:20 am    Post subject: 19 Reply with quote

Here's something to beat amb Cannibal
(7 + 18) * 5 * 25 - 12 + 1 + 2 - 25 + 18 - 9 + 14 + 20 + 8 = 3142.00 = 13.0367... points
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
MatthewV
Daedalian Member :_



PostPosted: Sat Mar 11, 2006 11:42 pm    Post subject: 20 Reply with quote

amb and mith both found that one before you :-)
Back to top
View user's profile Send private message Send e-mail AIM Address
Talzor
Daedalian Member



PostPosted: Sun Mar 12, 2006 1:43 am    Post subject: 21 Reply with quote

I figure he probably had, but the on the off chance that he'd missed it I just had to post it. Felicitous
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
MatthewV
Daedalian Member :_



PostPosted: Sun Mar 12, 2006 9:02 am    Post subject: 22 Reply with quote

You guys have a few days to break this tie for second place Felicitous
Back to top
View user's profile Send private message Send e-mail AIM Address
Amb
Amb the Hitched.



PostPosted: Sun Mar 12, 2006 6:26 pm    Post subject: 23 Reply with quote

The numbers are code for 'Grey Labyrinth' Revenge most foul!

And yes Talzor, I was going to publish that equation but MV didnt want me to. I was kinda hoping I could find Miths cheaper one but not yet. It would probably have one set of brackets, 2 multipliers and the rest add.

In fact, if we knew the score of Miths, we could probably work backwards as to what has to be there. Eg if we presume 12.00 then we can probably suss out a combination that equates to roughly 3141.59 and then multiply the difference by 5? and see what we get.
Back to top
View user's profile Send private message AIM Address MSN Messenger
mith
Pitbull of Truth



PostPosted: Sun Mar 12, 2006 7:51 pm    Post subject: 24 Reply with quote

It wasn't me that was lower.

I'm lower now, though. Revenge most foul!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MatthewV
Daedalian Member :_



PostPosted: Thu Mar 16, 2006 5:01 am    Post subject: 25 Reply with quote

ooops, I will let this run 24 hours longer than it was supposed to. I doubt anyone will submit anything in the next four hours...
Back to top
View user's profile Send private message Send e-mail AIM Address
Amb
Amb the Hitched.



PostPosted: Thu Mar 16, 2006 6:16 am    Post subject: 26 Reply with quote

Rats - I was trying to use my programme I wrote to find answers. (The one I wrote for the worst), but it returns everything thing in the form (((x[]y)[]z)[]a) etc... Which eliminates a lot of combos where the brackets are more spread out
Back to top
View user's profile Send private message AIM Address MSN Messenger
MatthewV
Daedalian Member :_



PostPosted: Thu Mar 16, 2006 8:49 am    Post subject: 27 Reply with quote

10 minutes early. Oh well.
I included all the entries I received that were distinctly different in some manner. One of amb's in thread ones was not included...oh well...
I marked the best each person sent with three stars.
As noted by amb, the numbers were not random. They spell out GREYLABYRINTH.


Lepton ***
(7 + 18) * 5 * asin( -25 + 12 + 1 + 2 + 25 - 18 + 9 + 14 - 20) * 8 = 1000 pi
Score = 1012.0000000000000000

mith
(7 + 18 + 5) * (25 + 12 + 1 + 2 + 25 + 18 + 9 + 14) -20 * ln(8) = 3138.411169...
Score = 33.907...

mith
(7 + 18 + 5 + 25) * (12 + 1 + 2 + 25 + 18) - 9 - 14 - 20 - 8 = 3139
Score = 23.963...

mith
(7 + 18 + 5 + 25) * (12 + 1 + 2 + 25 + 18) -log(9) +(14 - 20) * 8 = 3141.045757...
Score = 23.734...

mith
(7 + 18 + 5 + 25) * (12 + 1 + 2 + 25 + 18) - (9 + 14 - 20)! * 8 = 3142
Score = 23.036...

Talzor
7! - 18 * 5 * 25 + 12 + 1 - 2 + 25 + 18 + 9 + 14 * 20 + 8 = 3141
Score 20.963...

/dev/joe***
7 + ( -18 - 5 + 25 + 12) ^(1 + 2) + 25 + (18 + 9) * 14 - 20 + 8 = 3142
Score = 19.036...

amb
((7 + 18) * 5 * 25 - 12) * 1 + 2 - 25 + 18 - 9 + 14 + 20 + 8 = 3141
Score = 18.963...

Talzor
-7 - 18 + 5 + 25 - 12 - 1 + 2 * 25 * 18 + 9 + 14 * 20 * 8 = 3141
Score = 18.963...

kevinatilusa
(7 + 18 + 5 + 25 + 12 - 1 + 2 * 25 + 18 + 9 + 14) * 20 + Ln(8) =3142.08...
Score 18.433...

MatthewV***
7 + 18 + 5! * 25 + 12 + 1 + 2 * 25 + 18 + 9 + 14 + 20 - 8 = 3141
Scoring 16.963...

kevinatilusa
- sqrt[7] + (18 + 5 + 25 + 12 - 1 + 2 + 25 + 18 + 9 + 14 * 20) * 8 = 3141.35...
Scoring 16.192...

amb AND mith AND Talzor***
(7 + 18) * 5 * 25 - 12 + 1 + 2 - 25 + 18 - 9 + 14 + 20 + 8 = 3142
Scoring 13.036

mith
7 + (18 + 5 + 25) * (12 - 1 + 2 + 25 + 18 + 9) - 14 + 20 + 8 = 3141
Score = 11.963...

kevinatilusa***
7 - 18 + (5 + 25 * 12 + 1 + 2 + 25 + 18 + 9 + 14 + 20) * 8 = 3141
Scoring 11.963...

mith***
- 7 + 18 - 5 + (25 + 12 + 1 + 2 + 25 + 18 + 9) * (14 + 20) + 8 = 3142
Score = 11.036732051035...

Lepton gets the very large “Perfect” star
/dev/joe gets a small blue star
MatthewV gets a shiny purple star
amb and Talzor share a lustrous bronze star
kevinatilusa gets the beautiful silver star
mith gets the great gold star.

Thank you and congratulations to mith!
Back to top
View user's profile Send private message Send e-mail AIM Address
mith
Pitbull of Truth



PostPosted: Thu Mar 16, 2006 5:24 pm    Post subject: 28 Reply with quote

w00t.

I put together a little spreadsheet to check for solutions of the form: numbers + (numbers added together)*(numbers added together) + numbers. I started doing it "by hand" leaving off a few numbers at the end to play with, but I eventually wrote something to check all the possible ways to split things into four groups.

Also checked for possibilites using two * and one set of (), but I didn't think of trying what kevin did. After piggy-backing off amb's posted solution, I knew I couldn't use much more than that and stay lower.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous: by   
Reply to topic    The Grey Labyrinth Forum Index -> Visitor Games All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Site Design by Wx3