![]() |
|
|
#23 |
|
"Forget I exist"
Jul 2009
Dumbassville
20C016 Posts |
using straight addition we can make all of 1,3,6,10,15 aka the triangular numbers up to 15 noting that the squares are sums of odd numbers we can get the first 3 squares plus 0,2,4,or 6 ( some of these overlap the triangular numbers of course) so we can produce 1,4,9,3,6,11,5,8,13,7,10,15 all through addition only.we can't subtract 4 and 5 both at the same time since (4+5)>(1+2+3) if we form fractions ( using parentheses and division) then we know certain arrangements don't turn out integers so those combinations are out including things like (1+3+5)/(2+4) in fact any sum on the top need be even I think as even/odd odd/odd and even/even are possible in theory but I think any odd/odd ones don't turn out integer in this case. (1+2+3+4)/5 =2 works though. there are limits on each operation but I haven't really thought much deeper. never mind I forgot the order restriction. there's still the limits to consider though.
Last fiddled with by science_man_88 on 2016-10-18 at 16:33 |
|
|
|
|
|
#24 |
|
"Curtis"
Feb 2005
Riverside, CA
12FD16 Posts |
One more cheater:
39 = 5 * 4! / 3 - 2 + 1 |
|
|
|
|
|
#25 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
10,753 Posts |
Quote:
Now that everyone has had their fun, I'm tempted to write a Perl script which evaluates all possible binary trees of the form (tree operator tree) where the terminal nodes are taken from the set {5,4,3,2,1} and operator from the set {+, -, *, /} subject to the constraint that the resulting expression has its leaves in descending order. Clearly, the maximum value which can be created without cheating is 120, the smallest is -120; some values are not integers, one of which is 5/(4*3*2*1). Last fiddled with by xilman on 2016-10-18 at 17:02 |
|
|
|
|
|
|
#26 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
nope 121= 5*4*3*2+1 = 120+1
Last fiddled with by science_man_88 on 2016-10-18 at 17:58 |
|
|
|
|
|
#27 |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
10,753 Posts |
|
|
|
|
|
|
#28 |
|
"Robert Gerbicz"
Oct 2005
Hungary
5CC16 Posts |
I've found all possible integers with a simple c code (note that here I have not allowed unary operations), as you can see you really can't reach 39.
(in some lines you can delete some parentheses to get the same number)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1 49=5*(4+3*2)-1 50=5*(4+3+2+1) 51=(5+4*3)*(2+1) 53=(5+4)*(3*2)-1 54=(5+4)*(3+2+1) 55=5*(4+3*2+1) 57=5*(4*3)-(2+1) 58=5*(4*3)-(2*1) 59=5*(4*3)-(2-1) 60=5*(4*(3*(2-1))) 61=5*(4*3)+2-1 62=5*(4*3)+2*1 63=(5+4)*(3*2+1) 65=5*(4+3*(2+1)) 69=(5*4+3)*(2+1) 70=5*((4+3)*(2*1)) 71=5*((4+3)*2)+1 75=5*(4*3+2+1) 80=5*(4*(3+2-1)) 81=(5+4)*(3*(2+1)) 95=5*(4*(3+2)-1) 99=5*(4*(3+2))-1 100=5*(4*(3+2*1)) 101=5*(4*(3+2))+1 105=5*((4+3)*(2+1)) 115=5*(4*(3*2)-1) 119=5*(4*(3*2))-1 120=5*(4*(3+2+1)) 121=5*(4*(3*2))+1 125=5*(4*(3*2)+1) 140=5*(4*(3*2+1)) 180=5*(4*(3*(2+1))) Last fiddled with by R. Gerbicz on 2016-10-18 at 18:24 Reason: delete that lots of ; |
|
|
|
|
|
#29 |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
I can represent a (reasonably) large prime with these digits and only one sign symbol :-)
5432 + 1 = 27327525884414205519790497974303154461449992065060438017 |
|
|
|
|
|
#30 |
|
"Mark"
Apr 2003
Between here and the
11×577 Posts |
Now you just need to do it with the three 6's puzzle...
|
|
|
|
|
|
#31 |
|
"Robert Gerbicz"
Oct 2005
Hungary
148410 Posts |
|
|
|
|
|
|
#32 | ||
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101Γ103 Posts
2·3·7·233 Posts |
Quote:
Quote:
Since the rules (as provided in the original link calls 5, 4, 3, 2, & 1 "digits" and not numbers, I think KangJ is ok. Similarly: 39 = -5 + 43 + 2 - 1 |
||
|
|
|
|
|
#33 |
|
"Mark"
Apr 2003
Between here and the
11×577 Posts |
Maybe that was wrong. I'm trying to find it. Possibly it was six sixes not three sixes. I'm sure that someone else here will remember.
Last fiddled with by rogue on 2016-10-18 at 20:24 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WakeOnLan (There must be someone who knows the answer to this.) | wildrabbitt | Linux | 26 | 2020-05-09 19:09 |
| If you choose an answer at random | Uncwilly | Lounge | 12 | 2018-02-14 15:00 |
| mfakto is not running.. please give me a answer | diablo5147 | GPU Computing | 1 | 2013-12-09 01:47 |
| Manual reservation system obsolete? (Answer: no) | thommy | Prime Sierpinski Project | 5 | 2006-02-21 16:36 |
| please answer | flasholinos | Lone Mersenne Hunters | 2 | 2003-06-17 19:08 |