Math and Logic Puzzles

For completed/abandoned Mish Mash Games.
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3900 (ISO) » Tue Oct 18, 2016 9:42 am

Post by Mitillos »

Part 1 is indeed easy, and Who's answer works. Zorb's slightly more complicated answer probably works too, but I haven't looked at it carefully.

Part 2 may be difficult, but it is definitely not impossible. Also, there are two interesting variants to 2:

2a) Change the number of colours to k.
2b) Allow prisoners to hear the previous responses (originally they can't in 2, and I should have mentioned this). How many people must you lose, at most?
You don't have ambiguity; you have
options
.
User avatar
Who
Who
Yes?
User avatar
User avatar
Who
Yes?
Yes?
Posts: 4745
Joined: March 22, 2013
Location: Third Base

Post Post #3901 (ISO) » Tue Oct 18, 2016 10:04 am

Post by Who »

Wait what? What do you mean "can't hear previous responses"? Can't hear the guesses? Then it's definitely impossible.
Who said that?
Chamber. It's all a conspiracy.
Or is it?
6
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3902 (ISO) » Tue Oct 18, 2016 12:14 pm

Post by Mitillos »

@Who: I am sorry to contradict you again, but you are incorrect. You can save all but finitely many of the prisoners, even if they can't hear previous guesses.

Edit: Let me qualify that, by saying again that we are assuming that all the prisoners can perfectly receive and process infinite information, even though that is not possible in the real world.
You don't have ambiguity; you have
options
.
User avatar
Zorblag
Zorblag
Troll
User avatar
User avatar
Zorblag
Troll
Troll
Posts: 4057
Joined: September 25, 2008
Location: Under a bridge in Seattle

Post Post #3903 (ISO) » Tue Oct 18, 2016 1:30 pm

Post by Zorblag »

@Mitillos do you intend to have the prisoners know whether the previous prisoners lived or what color their hats were? Clearly not both as that would be equivalent to hearing the guesses. Troll assumed neither was the case, but Troll's solution to part one did rely on hearing previous answers (as well as having perfect reasoning.)

-Zorblag R`Lyeh
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3904 (ISO) » Tue Oct 18, 2016 1:51 pm

Post by Mitillos »

@Zor: No to both questions. Hearing previous guesses on part 1 is fine; not mentioning this difference between the two situations was my mistake.
You don't have ambiguity; you have
options
.
User avatar
Who
Who
Yes?
User avatar
User avatar
Who
Yes?
Yes?
Posts: 4745
Joined: March 22, 2013
Location: Third Base

Post Post #3905 (ISO) » Tue Oct 18, 2016 8:47 pm

Post by Who »

Spoiler:
Let S be the set of functions which map binary strings to the set {0,1}.
By the well ordering theorem, S has a well-ordering. Agree on such a well ordering in advance.
Each prisoner looks at the prisoners in front of him, looks at the elements of S, finds all functions which would lead to only a finite number of prisoners dying, picks the least such function, and applies it to himself.

They will all choose the same function. Proof:
If prisoner m sees a finite number of prisoners live with the function, prisoner n will too. There are only a finite number in between them. Thus, the sets both are dealing with are the same, thus both sets will have the same least element, thus they'll both pick the same function.

There is always such a function. Proof:
There are two cases:
If the string does not eventually repeat forever, no substring matches another substring which starts at a different place. Thus, there exists a function which saves everyone.
If the string does eventually repeat, there is a function which saves everyone in the repeating part. (Just guess the hat of the thing in the repeat before the next part of it you see), thus only the prisoners before the repeat die, thus there exists a function in which finitely many prisoners die.
Thus the subset is nonempty.
Who said that?
Chamber. It's all a conspiracy.
Or is it?
6
User avatar
Who
Who
Yes?
User avatar
User avatar
Who
Yes?
Yes?
Posts: 4745
Joined: March 22, 2013
Location: Third Base

Post Post #3906 (ISO) » Tue Oct 18, 2016 9:11 pm

Post by Who »

For part b, do they get to hear whether or not the person behind them lived?

Irrelevant.
Spoiler: a
The original solution but replace the 2s with ks.

Spoiler: b
The first prisoner checks the function, sees the last prisoner who would have died, says the parity up to that prisoner. (Might die). If nobody ahead of him dies guesses according to the function.
The nth prisoner checks the function found, if anyone ahead of him would die by it he guesses according to parity and previous guesses. If nobody ahead would die, guesses according to the function.
(Prisoner who would have died last by the function will die, because since nobody ahead of him dies he guesses according to the function)
At most 2 deaths. I don't think it's possible to get at most 1 death, but no proof.
Who said that?
Chamber. It's all a conspiracy.
Or is it?
6
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3907 (ISO) » Wed Oct 19, 2016 6:36 am

Post by Mitillos »

Nifty. You can get the same result, by partitioning binary (or k-ary) sequences into equivalence classes, where two sequences are in the same class if they have a finite number of elements different.

For the second variant, if you label these sequences based on whether the number of elements which is different is odd or even, the first prisoner can use his guess to give this information to everyone ahead of him, so that only he need potentially die.
You don't have ambiguity; you have
options
.
User avatar
Scigatt
Scigatt
Goon
User avatar
User avatar
Scigatt
Goon
Goon
Posts: 833
Joined: January 4, 2008
Location: Vancouver, Canada

Post Post #3908 (ISO) » Mon Oct 31, 2016 12:38 pm

Post by Scigatt »

In post 3896, Mitillos wrote:Let's bring back the prisoners and hats.

There is a countably infinite number of prisoners, who are being offered the chance to be released. They will each have a black or white hat placed on their head, and be arranged in a line, so that each prisoner can see all the prisoners and hats ahead of him, but not behind or on him (don't worry about how they will manage to see an infinite number of people, just go with it). Then, starting from the person who can see everyone else, they will each make a guess as to whether their hat is black or white. Those who get it right can leave, but the rest will be killed. The prisoners can confer for a strategy in advance, but not during the event.

1) For any given fraction, find a strategy that saves at least all but that fraction of the prisoners.
2) Find a strategy that saves all but a finite number of prisoners.
What if the prisoners are arranged to have order type ω + (ω* + ω) ⋅ η?
User avatar
TheDominator37
TheDominator37
Mafia Scum
User avatar
User avatar
TheDominator37
Mafia Scum
Mafia Scum
Posts: 1476
Joined: May 18, 2015
Location: Dowisetrepla
Contact:

Post Post #3909 (ISO) » Mon Oct 31, 2016 12:55 pm

Post by TheDominator37 »

What is 3+2?
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3910 (ISO) » Mon Oct 31, 2016 2:24 pm

Post by Mitillos »

In post 3908, Scigatt wrote:What if the prisoners are arranged to have order type ω + (ω* + ω) ⋅ η?
For the purpose of this problem, it can be assumed that each individual prisoner is assigned a fixed natural number for his position, so we don't run into that problem, given that this automatically implies an order type ω.
You don't have ambiguity; you have
options
.
User avatar
Who
Who
Yes?
User avatar
User avatar
Who
Yes?
Yes?
Posts: 4745
Joined: March 22, 2013
Location: Third Base

Post Post #3911 (ISO) » Mon Oct 31, 2016 2:26 pm

Post by Who »

In post 3909, TheDominator37 wrote:What is 3+2?
10.
(In base 10)
Who said that?
Chamber. It's all a conspiracy.
Or is it?
6
User avatar
Felissan
Felissan
Goon
User avatar
User avatar
Felissan
Goon
Goon
Posts: 216
Joined: April 3, 2015
Location: France

Post Post #3912 (ISO) » Mon Oct 31, 2016 11:11 pm

Post by Felissan »

In post 3909, TheDominator37 wrote:What is 3+2?
Spoiler: Answer
"Dammit Felissan, making someone lose the game is NOT NICE"
- DeathRowKitty 2016
"Also, the me in your signature just made the me in this thread lose the game and I'm not sure how to feel about this."
- DeathRowKitty 2018
"You've made me make myself lose the game so many times that I feel like it's an entirely new game I'm losing"
- DeathRowKitty 2022
User avatar
animorpherv1
animorpherv1
Honey Trap
User avatar
User avatar
animorpherv1
Honey Trap
Honey Trap
Posts: 5763
Joined: April 12, 2008
Location: Untraveled Road
Contact:

Post Post #3913 (ISO) » Tue Nov 01, 2016 10:28 am

Post by animorpherv1 »

Solution re: Mtillos. Pass on my end if I'm right.

Spoiler: This is a solution with a 50% chance of success to save everyone, 50% chance to save all but one for black & white
While the prisoners are talking, they determine to give each colour a value. For this example, if the person guessing sees an odd number of black hats, that person will say black. Otherwise, they say white.

The first person will see all black and all hats but their own and answer accordingly. Before the next person goes, they check the number of hats they see. So for example, if guesser #1 says 'black', that means he sees an odd number of black hats. If guesser #2 sees an odd number of black hats, that means their hat is white, then answers 'white'.

This continues down the line.
"Animorpherv1's posts are so powerful that prolonged exposure may cause vertigo, nausea, acute tinnitus, and in rare cases, death." - vonflare

"Ani is right 100% of the time" - Alisae
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3914 (ISO) » Tue Nov 01, 2016 10:34 am

Post by Mitillos »

@ani: Your answer works for a finite number of prisoners. Unfortunately, here we have an infinite number of prisoners. There is no "all hats" or "all black hats" to see.
You don't have ambiguity; you have
options
.
User avatar
animorpherv1
animorpherv1
Honey Trap
User avatar
User avatar
animorpherv1
Honey Trap
Honey Trap
Posts: 5763
Joined: April 12, 2008
Location: Untraveled Road
Contact:

Post Post #3915 (ISO) » Tue Nov 01, 2016 12:35 pm

Post by animorpherv1 »

Sadly that's the only version of the problem I know.
"Animorpherv1's posts are so powerful that prolonged exposure may cause vertigo, nausea, acute tinnitus, and in rare cases, death." - vonflare

"Ani is right 100% of the time" - Alisae
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3916 (ISO) » Mon Jan 02, 2017 4:33 pm

Post by Mitillos »

Necromancy powers, go!

You have been tasked by a king to make sure that the tribute paid to him by vassal states is not made of counterfeit gold. Specifically, each year each of the five vassals must send one hundred gold ingots, each weighing 10kg. The number of ingots they send each year is correct, but the king has information that something is amiss with the ingots themselves. He will let you use the royal scale which, when loaded with any number of ingots, will give you their precise weight. Unfortunately, operating the scale is both time-consuming and expensive, so the king will only allow you to use it once each year. If you fail to find which of the vassals have not paid their appropriate tribute, you will be put to death. Also, the king doesn't like other people touching his gold too much, so if you use more ingots than is absolutely necessary, you will be put to death.

1) On the first year, exactly one of the vassals is sending fake ingots, which are exactly 1kg off the correct weight. You do not know in advance if they are 9kg or 11kg, but you know that they all weigh the same.
2) On the second year, some of the vassals are sending fake ingots, all of which are known to only weigh 9kg each.
3) On the third year, some of the vassals are sending fake ingots which could be lighter or heavier than normal by 1kg. The ingots from each individual vassal are the same weight, but different vassals can send different ingots.

What strategies will you use each year, to find who is sending fake ingots?
You don't have ambiguity; you have
options
.
User avatar
KuroiXHF
KuroiXHF
Jack of All Trades
User avatar
User avatar
KuroiXHF
Jack of All Trades
Jack of All Trades
Posts: 6191
Joined: December 10, 2015
Location: King Kuroi

Post Post #3917 (ISO) » Mon Jan 02, 2017 4:34 pm

Post by KuroiXHF »

In post 3912, Felissan wrote:
In post 3909, TheDominator37 wrote:What is 3+2?
Spoiler: Answer
He asked what 3 + 2 is, not 2 + 3!
"and now i am TURNED ON AGAIN!!!!!!!!!!" - KainTepes

I'm regularly V/LA on the weekends. If this is the weekend and I've not said otherwise, please assume I'm on V/LA.
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3918 (ISO) » Mon Jan 02, 2017 4:39 pm

Post by Mitillos »

Addition is usually commutative.
You don't have ambiguity; you have
options
.
User avatar
Who
Who
Yes?
User avatar
User avatar
Who
Yes?
Yes?
Posts: 4745
Joined: March 22, 2013
Location: Third Base

Post Post #3919 (ISO) » Mon Jan 02, 2017 4:56 pm

Post by Who »

Spoiler: Gold
1) Weigh 1 ingot from the first vassal, 2 from the 2nd, 3 from the 3rd, 4 from the 4th, none from the 5th.
If the total is 100 kg, it's the 5th vassal. If the total is 104 kg or 96 kg, it's the 4th. If it's 103 or 97, it's the 3rd. If it's 102 or 98, it's the 2nd, if it's 99 or 101, it's the first.
2) 1,2,4,8,16. Subtract the weight from 310, convert to binary, look at digits.
3 I need to think about more in case there's a way which involves touching less gold, I don't want to be put to death. My gut instinct says 1 3 6 9 27 81, but that seems inefficient. If he had more vassals I know of tricks which might help, but he has too few vassals for them.
Who said that?
Chamber. It's all a conspiracy.
Or is it?
6
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3920 (ISO) » Mon Jan 02, 2017 5:12 pm

Post by Mitillos »

@Who: Correct on first and second year.

Also, after someone solves year 3, you can go ahead and expand with your tricks for more vassals.
You don't have ambiguity; you have
options
.
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3921 (ISO) » Mon Jan 02, 2017 8:38 pm

Post by Mitillos »

@Who: After you solved the first two parts, the king still wanted to have you killed. He said that you are trying to trick him, and that you probably could have done at least the second part with fewer than 31 ingots, insisting that you could have cut some corners like you did in the first part. I tried telling him that this was not possible, but he wouldn't let me speak, and had me imprisoned for contradicting him. Then, in his anger, he decided that you (or someone else) must prove that you used the smallest number of ingots possible in both your answers, otherwise he will have us both executed. Also, the same will hold for the third part, once someone answers it.
You don't have ambiguity; you have
options
.
User avatar
Who
Who
Yes?
User avatar
User avatar
Who
Yes?
Yes?
Posts: 4745
Joined: March 22, 2013
Location: Third Base

Post Post #3922 (ISO) » Tue Jan 03, 2017 5:10 am

Post by Who »

2 proof)
There are 32 total possible combinations of fakes. If n ingots are weighed, the scale will return an integer result from 9n to 10n, inclusive. Thus, there are n+1 total possible answers the scale can give. There must be a surjection from the set of scale results to possibilities that we use to determine guilt, thus the set of answers must be at least as big as the set of possibilities, thus the set of answers must be at least of size 32, thus there must be at least 31 ingots used.
1 proof:
The amount from two different vassals cannot be the same, if it were the same then it would be impossible to distinguish which one is guilty of exactly one of those two is guilty. All ingot amounts must be nonnegative, thus it cannot decrease below 0, all must be integers, I took the set of 5 distinct nonnegative integers with the smallest sum.
3 is in fact 1 3 9 27 81. Proof incoming.
Who said that?
Chamber. It's all a conspiracy.
Or is it?
6
User avatar
Mitillos
Mitillos
He
Mafia Scum
User avatar
User avatar
Mitillos
He
Mafia Scum
Mafia Scum
Posts: 2300
Joined: August 23, 2012
Pronoun: He
Contact:

Post Post #3923 (ISO) » Tue Jan 03, 2017 6:31 am

Post by Mitillos »

Very nice. And yes, your answer for 3 is also correct. Looking forward to the proof.
You don't have ambiguity; you have
options
.
User avatar
Who
Who
Yes?
User avatar
User avatar
Who
Yes?
Yes?
Posts: 4745
Joined: March 22, 2013
Location: Third Base

Post Post #3924 (ISO) » Tue Jan 03, 2017 8:19 am

Post by Who »

The proof I thought would work for 3 is blatantly wrong. (I thought that it would just be an argument about how many possibilities like 2, but then with the added section where you prove that two different but equivalent possibilities (For example: vassal 1 gives 9 and vassal 1 gives 11) can't cancel out, but that line of argument won't work because there are 364 total possibilities for the scale to return with 121 ingots, but there are only 243 possibilities for answers, that argument just says you need at least 81 ingots) Also I'm back to thinking that the answer is wrong.

I cannot do basic arithmetic.
Who said that?
Chamber. It's all a conspiracy.
Or is it?
6
Locked

Return to “Sens-O-Tape Archive”