 |
 |
2 missing number riddles |
 |
Feb18-09, 08:37 AM
|
#1
|
Sentenza is
Offline:
Posts: 7
|
2 missing number riddles
I have been looking for hours... pfff...
|
|
|
|
Feb18-09, 04:36 PM
|
Last edited by davee123; Feb18-09 at 06:06 PM..
#2
|
davee123 is
Offline:
Posts: 468
|
Re: 2 missing number riddles
These are kind of silly, since they probably have dozens of possible solutions-- there aren't any stated rules, it's just whatever makes sense to you. Here's some quickie answers I got:
Originally Posted by Sentenza

|
Spoiler
One answer could be 1725. If upper-left is A, lower-left is B, upper right is C, and lower-right is D, then you could have: |C-(|2A-2B|^D)|
Originally Posted by Sentenza

|
Spoiler
I get 24-- if the labels are A, B, C (leftmost-to-rightmost), then one formula could be A+2B+2C+1. [edit]oops, should be 18, not 24[/edit]
DaveE
|
|
|
|
Feb18-09, 05:53 PM
|
#3
|
jimmysnyder is
Offline:
Posts: 1,663
|
Re: 2 missing number riddles
Originally Posted by davee123
Spoiler
I get 24-- if the labels are A, B, C (leftmost-to-rightmost), then one formula could be A+2B+2C+1.
|
Shouldn't that be ?
|
|
|
|
Feb18-09, 06:05 PM
|
#4
|
davee123 is
Offline:
Posts: 468
|
Re: 2 missing number riddles
Originally Posted by jimmysnyder
Shouldn't that be ?
|
Oops, yep, apparently there was a bug in my math.
DaveE
|
|
|
|
Feb19-09, 03:55 AM
|
#5
|
Sentenza is
Offline:
Posts: 7
|
Re: 2 missing number riddles
Ok, some more info... You can only use the numbers in the riddle!
|
|
|
|
Feb19-09, 09:42 AM
|
#6
|
K.J.Healey is
Offline:
Posts: 641
|
Re: 2 missing number riddles
Originally Posted by Sentenza

|
Difference in right two - difference in left two? So -6?
|
|
|
|
Feb19-09, 10:09 AM
|
#7
|
jimmysnyder is
Offline:
Posts: 1,663
|
Re: 2 missing number riddles
Originally Posted by K.J.Healey
Difference in right two - difference in left two? So -6?
|
If you use absolute differences you get 6.
|
|
|
|
Feb19-09, 10:29 AM
|
#8
|
Sentenza is
Offline:
Posts: 7
|
Re: 2 missing number riddles
Originally Posted by jimmysnyder
If you use absolute differences you get 6.
|
I found this too... But it's wrong... (a friend of mine gave me the riddles)
For the second one 18 is wrong. He said you have to use squares...
|
|
|
|
Feb19-09, 10:37 AM
|
#9
|
Gokul43201 is
Offline:
Posts: 10,265
|
Re: 2 missing number riddles
Well, looks like you've found them both (the number riddles that were missing).
|
|
|
|
Feb19-09, 10:46 AM
|
#10
|
jimmysnyder is
Offline:
Posts: 1,663
|
Re: 2 missing number riddles
Originally Posted by Sentenza
I found this too... But it's wrong... (a friend of mine gave me the riddles).
|
I can understand you saying that it is not the number that your friend was thinking of, but why do you say it is wrong? It meets all the conditions of the puzzle. For one thing, you should add all the conditions to the puzzle at the outset and not hand them out piecemeal. For another, you should add an extra condition to this puzzle: If the puzzle has more than one solution, then only the one my friend is thinking of counts.
|
|
|
|
Feb19-09, 12:02 PM
|
#11
|
Gokul43201 is
Offline:
Posts: 10,265
|
Re: 2 missing number riddles
I think the friend is handing out the conditions piecemeal.
|
|
|
|
Feb19-09, 02:01 PM
|
Last edited by davee123; Feb19-09 at 04:09 PM..
#12
|
davee123 is
Offline:
Posts: 468
|
Re: 2 missing number riddles
Originally Posted by Gokul43201
I think the friend is handing out the conditions piecemeal.
|
Yeah, the friend is inaccurate to declare the answer as wrong. Note that "He said you have to use squares" in the 2nd problem, and yet there isn't even a number 2 in the 2nd drawing. So raising something to the 2nd power is using a non-existent number already. You could admittedly GET a 2 if you do a 7-5, but then you've used up a 7 and 5, and can't get a 20 using only 2 and 6. And if you allow using numbers multiple times, then you could say that my earlier answer was correct by rewriting it: .
I wrote a program a while back to solve things like these that goes through all the permutations of multiplication, addition, subtraction, division, powers, and modulus-- maybe I can tweak it to show all the possible solutions... Hmmm...
[edit]
Ok, my original program worked for 4 input numbers, so I could verify that using addition, subtraction, multiplication, division, powers, logs, and modulus, and using each "outlying number" only once, that these are the available solutions for the 1st problem (assuming upper-left is A, lower-left is B, upper-right is C, lower-right is D):
(((B-A)%C)+D)
(D-((A-B)%C))
(D+((B-A)%C))
(((D%C)+B)-A)
(((D%C)+B)%A)
((B+(D%C))-A)
((B+(D%C))%A)
(((D%C)-A)+B)
(B+((D%C)-A))
(B%((D%C)-A))
(B-(A-(D%C)))
(B%(A-(D%C)))
(((A+B)+D)%C)
(((B+A)+D)%C)
(((B-A)+D)%C)
((D+(A+B))%C)
((D-(A-B))%C)
((D+(B+A))%C)
((D+(B-A))%C)
(((A+D)+B)%C)
(((D+A)+B)%C)
(((D-A)+B)%C)
((B+(A+D))%C)
((B-(A-D))%C)
((B%(A-D))%C)
((B+(D+A))%C)
((B+(D-A))%C)
((B%(D-A))%C)
(((B+D)+A)%C)
(((B+D)-A)%C)
(((B+D)%A)%C)
(((D+B)+A)%C)
(((D+B)-A)%C)
(((D+B)%A)%C)
((A+(B+D))%C)
((A+(D+B))%C)
Obviously that doesn't include absolute value, trig functions, factorials, "square", "square root", "cube", "cube root", up-arrow notation, Choose, etc. So that's examining 32,928 possible formulas. If you included a "reasonable" amount of the other functions, it'd be on the order of 5 octillion possible formulas (really infinite), so I decided to skip that.
[/edit]
DaveE
|
|
|
|
Feb19-09, 06:51 PM
|
#13
|
Gokul43201 is
Offline:
Posts: 10,265
|
Re: 2 missing number riddles
Originally Posted by davee123
I wrote a program a while back to solve things like these that goes through all the permutations of multiplication, addition, subtraction, division, powers, and modulus-- maybe I can tweak it to show all the possible solutions...
|
Whe I first saw a bunch of Sengupta's cryptarithms, I was thinking about exactly this: that it wouldn't take too long to write a program (and much less time to run it) to wade through the 9! or so possibilities for all of those puzzles. Next, I wondered if that wasn't exactly what you had done. 
|
|
|
|
Feb19-09, 10:57 PM
|
#14
|
davee123 is
Offline:
Posts: 468
|
Re: 2 missing number riddles
Originally Posted by Gokul43201
Whe I first saw a bunch of Sengupta's cryptarithms, I was thinking about exactly this: that it wouldn't take too long to write a program (and much less time to run it) to wade through the 9! or so possibilities for all of those puzzles. Next, I wondered if that wasn't exactly what you had done. 
|
Yeah, depending on the question, sometimes I'll brute force my way through. But usually I'll try and see what mathemagical tricks I can use before I resort to that. The permutations listed above were actually for a much trickier problem:
http://www.physicsforums.com/showthread.php?t=204239
Basically, the inputs, outputs, and functions were all fair game, so brute force was the only way I could think of to hack it. And sometimes, you can sort of know in advance that it's the only way-- like when dealing with primes, which don't have a nice mathematical formula for solving them.
DaveE
|
|
|
|
Feb20-09, 03:33 AM
|
#15
|
Sentenza is
Offline:
Posts: 7
|
Re: 2 missing number riddles
Probably a stupid question, but what is % ? (i know it's the symbol for percentage, but what do you use it for here?)
|
|
|
|
Feb20-09, 09:09 AM
|
#16
|
davee123 is
Offline:
Posts: 468
|
Re: 2 missing number riddles
Originally Posted by Sentenza
Probably a stupid question, but what is % ? (i know it's the symbol for percentage, but what do you use it for here?)
|
That's the modulus function-- it's basically the "remainder" function. So 12 % 5 = 2, 33 % 41 = 33, 11 % 2.5 = 1, etc.
DaveE
|
|
|
|
|
 |
 |
|
 |
|