- 20,640
- 27,818
I know, my bad. But 15+6 is too easy.BvU said:Moving the goal posts eh ...?
I know, my bad. But 15+6 is too easy.BvU said:Moving the goal posts eh ...?
fresh_42 said:19. Construct ##21## with symbols from ##\{\,1,5,6,7,*,/,+,-,(,)\,\}## but use the digits at most once.
There are of course some 'cheating' answers e.g. 1,023,457,98623 = 1,808,433,654,72110 which is prime (probably not the smallest such prime though).fresh_42 said:15. What is the smallest prime which includes all ten digits exactly once?
fresh_42 said:How must the prisoner distribute the balls so that his chances to survive are as high as possible?
fresh_42 said:Correct, with an overall chance of almost ##3/4##.
21. Which are the numbers (as symbols) ##n_0,\ldots ,n_9## such that the following statement is true:
'This sentence contains ##n_0## times the ##0##, ##n_1## times the ##1##, ##n_2## times the ##2, \ldots ## and ##n_9## times the ##9##'?
(And don't force me to phrase it without backdoors, you know what I mean.)
fresh_42 said:'This sentence contains 1 times the 0 and 2 times 1.' is true. The question is: how do we have to chose the ##n_i## that the sentence with all digits is true.
What do you mean by this? We need a vector ##\vec{n} \in \mathbb{Z}^{10}## such thatDavidSnider said:11,10,9,8,7,6,5,4,3,2 -> 0, 10, 18, 24, 28, 30, 30, 28, 24, 18
That would need e.g. 11 zeros in the sentence "This sentence has 11 times '0', 10 times '1', ...", but the sentence with your numbers plugged in doesn't have that many (it just has 2).DavidSnider said:11,10,9,8,7,6,5,4,3,2 -> 0, 10, 18, 24, 28, 30, 30, 28, 24, 18
mfb said:That would need e.g. 11 zeros in the sentence "This sentence has 11 times '0', 10 times '1', ...", but the sentence with your numbers plugged in doesn't have that many (it just has 2).
Maybe it is clearer if we add "digit"?
"This sentence contains n0 times the digit '0', n1 times the digit '1', ..."
fresh_42 said:Correct, with an overall chance of almost ##3/4##.
21. Which are the numbers (as symbols) ##n_0,\ldots ,n_9## such that the following statement is true:
'This sentence contains ##n_0## times the ##0##, ##n_1## times the ##1##, ##n_2## times the ##2, \ldots ## and ##n_9## times the ##9##'?
(And don't force me to phrase it without backdoors, you know what I mean.)
rrrrrr, gggggg, bbbbb - 3, unicolor
rrrrrg - 1 - 6 - mirror symmetry through beads
rrrrgg rrrgrg rrgrrg - 3 - 18 - mirror symmetry through edge, mirror symmetry through beads, 180 degree symmetry (6 each)
rrrggg rrgrgg rgrgrg - 3 - 9 - mirror symmetry through beads, no symmetry, 120 degree symmetry (3 each)
For 2 different kinds of beads, 33, for at most 2, 36.
rrrrgb rrrgrb rrgrrb - 3 - 9 - no symmetry, no symmetry, mirror symmetry through beads (3 each)
rrrggb rrgrgb rgrrgb grrrgb rrggrb rgrgrb - 6 - 36 - no symmetry, no symmetry, no symmetry, mirror symmetry through beads, no symmetry, mirror symmetry through beads (6 each)
rrggbb - 1 - 1 - no symmetry
rgrgbb rggrbb - 2 - 6 - no symmetry, mirror symmetry through edge
rgrbgb - 1 - 3 - mirror symmetry through beads
rgbrgb - 1 - 1 - 180 degree symmetry
The easiest way to solve all such problems is to use the successor function ##S## of Peano arithmetic. For instance, the first one can be solved asfresh_42 said:1. Extend the following to a valid equation, using only mathematical symbols!
Example: ##1\; 2\; 3 \;=\; 1 \longrightarrow - (1 \cdot 2) + 3 = 1##. Solutions are of course not unique.
##9\;9\;9\;=\;6##
##8\;8\;8\;=\;6##
##7\;7\;7\;=\;6##
##6\;6\;6\;=\;6##
##5\;5\;5\;=\;6##
##4\;4\;4\;=\;6##
##3\;3\;3\;=\;6##
##2\;2\;2\;=\;6##
##1\;1\;1\;=\;6##
##0\;0\;0\;=\;6##
Sorry, yes, forgotten a condition. Corrected now.mfb said:Is this missing something? There are many options that are trivial to find.
Sorry, I had forgotten the condition of 100 pieces in total.lpetrich said:They must all add up to $100, and one should buy at least one of each.
- Box of pralines: $7
- Bag of chips: $3
- Chocolate bar: $0.50
I will estimate the minimum number of items purchased using a "greedy" algorithm. First, the minimum purchases, one of each: $7 + $3 + $0.50 = $10.50, giving $89.50 left over. One can have at most 12 boxes of pralines, costing $84 and giving $5.50 left over. One can have at most one bag of chips, giving $2.50 left over. One can have 5 chocolate bars, costing $2.50, with $0.00 left over.
Thus, one should purchase 13 boxes of pralines, 2 bags of chips, and 6 chocolate bars.
Relaxing that minimum-number constraint means that the solution is no longer unique, since
- 1 box of pralines = 2 bags of chips + 2 chocolate bars
- 3 boxes of pralines = 7 bags of chips
- 1 box of pralines = 14 chocolate bars
- 1 bag of chips = 6 chocolate bars
fresh_42 said:23. John wants to buy sweets for his party. He has $100 to spend. A box Belgian pralines costs $7, chips cost $3, and for 50 cents he gets a chocolate bar. What does he have to buy, if he wants at least one of each and spend the whole $100 to buy exactly 100 pieces in total?
The second one isn't a solution as it violates a requirement.kith said:What we get are the two solutions
<br /> n_p = 5, n_c = 7, n_b = 100-5-7 = 88\\<br /> n_p = 0, n_c = 20, n_b = 100-20 = 80<br />
Right, I thought it violated the spirit of the excercise but didn't read carefully enough! I've edited my solution.fresh_42 said:The second one isn't a solution as it violates a requirement.
I will solve it with the correction.fresh_42 said:23. John wants to buy sweets for his party. He has $100 to spend. A box Belgian pralines costs $7, chips cost $3, and for 50 cents he gets a chocolate bar. What does he have to buy, if he wants at least one of each and spend the whole $100 to buy exactly 100 pieces in total?
But Matlab won't get you the Nobel prize for finding the GUT - pattern recognition might!Orodruin said:Technically the fastest way is to copy-paste the table into Matlab and have it sum the numbers for you as this is what I started with and nobody has answered yet ... This saves all the time spent on noticing the pattern.
Theorists use Matlab a lot.fresh_42 said:But Matlab won't get you the Nobel prize for finding the GUT - pattern recognition might!![]()
As not everyone will be familiar with the names: A dime is 10 cent, a quarter is 25 cent.fresh_42 said:In a tin are 10 dimes and 5 quarters. Against a stake one can shake out 3 coins, which one can keep.
fresh_42 said:26. In a tin are 10 dimes and 5 quarters. Against a stake one can shake out 3 coins, which one can keep.
What stake is the offer worth?
The rules are not clear to me. Should the sum of all your cards be 15 or the sum of a subset of your cards? If the former, then you have at best drawn when your opponent forces you above 15. It is easy as player one to force your opponent above 15 and as player two to block all possible wins (as there will always be at most one single card that brings player one to exactly 15). If the latter, there is an obvious winning strategy (P1:6, P2:9, P1: 8, P2: 1/7, P1: 7/1 and win 8+7 or 6+8+1)fresh_42 said:28. Nine cards with numbers one to nine are open in the middle of the table. Two players draw alternatively a card. Winner is who first has a hand that totals fifteen. Is there a winning strategy for the first player, for the second, or will optimal strategies always end with a draw? Why?
The dictionary plus Google translate both said 'alternative'.Orodruin said:The rules are not clear to me. Should the sum of all your cards be 15 or the sum of a subset of your cards? If the former, then you have at best drawn when your opponent forces you above 15. It is easy as player one to force your opponent above 15 and as player two to block all possible wins (as there will always be at most one single card that brings player one to exactly 15). If the latter, there is an obvious winning strategy (P1:6, P2:9, P1: 8, P2: 1/7, P1: 7/1 and win 8+7 or 6+8+1)
I also think the word you are looking for is ”alternatingly”?
I disagree. In particularfresh_42 said:@lpetrich's solution is correct.
is not correct. Under your rules this would bring him to 17 for a certain loss or draw and so taking 8 would not be a good choice unless it is to avoid a loss. Also the assertion that 1,2,3,4,5 would sum to 15 is irrelevant because what matters is what comes before, not only what is about to come.lpetrich said:Player #1 still has an opportunity for a two-move win, and plays one of the remaining two cards that will make it possible. I select 8 for definiteness.
I disagree. It is not tic-tac toe. To consider it tic-tac-toe you must first show that the only combination that can win is with three cards, but both 2, 3, 4, and indeed 5 cards (as in 12345) are possible wins under the rules presented.fresh_42 said:Imagine the cards are arranged as a magic square:
4 9 2
3 5 7
8 1 6
Now it is tic-tac-toe.
fresh_42 said:The dictionary plus Google translate both said 'alternative'.
alternatively
adverb
1. in an alternative way.
-------
alternatingly
adverb
1. In an alternating manner; taking turns.
To show this you still need to show that all 4- and 5-combos that win are unattainable. This is not trivial. Yes, you can show that there will be no 3-combo that wins, but you must show that it is impossible to devise a strategy that wins with 4 or 5 cards (which you, per my argument, cannot do) without winning the 3-in-a-row of tic-tac-toe. I honestly think my argument is much simpler. There are also bad tic-tac-toe moves that will not lose you this game, which to me suggests that the strategy applicable to this game is much easier. Also, the first move of the second player can be forced, unlike in tic-tac-toe.fresh_42 said:It is tic-tac-toe since I assumed an optimal strategy from both players. Of course you can lose deliberately. You just cannot win.
Sorry, but I don't see it. I see too many caveats with that argument for it to hold water even informally. (If it was that easy then it should be possible to at least make it plausible to me that it is viable.) It is also certainly not the argument presented in #138 and I cannot see that argument being correct either.fresh_42 said:The tic-tac-toe argument is easy to see and sufficient in this frame.
Tic-tac-toe is not necessarily decided in three moves. Also, tic-tac-toe strategy places less constraints on the second player than this game does, for example for the first move. For example, if you pick 9 then I have to pick 6 in this game or you win. In tic-tac-toe I can pick 5. The only optimal response to me picking 5 in this game is picking 6 to win. In tic-tac-toe it is to force a draw, which can be done with several different moves.fresh_42 said:A player can always chose the tic-tac-toe strategy ##S## of the square in post #140 above and there is nothing the other one can do about it. If you are first to draw, I will choose my card according to ##S##. If I start, then you will have to follow ##S##, for otherwise I will win. There will be no more than 3 moves, because it will be decided in 3. Only possibility is, that there is a combination of 15 with 3 cards which isn't a row, column or diagonal of the square. But if so, I will follow ##S## and will win since you opened up the possibility of e.g. a row in 3 moves. There is no way you can beat ##S##.
The best word for this use in British English is alternately.fresh_42 said:P.S.: You were right with alternating. I made a mistake. Likely due todaynighttime.