Math puzzles
- Redundant
- Lives in sente
- Posts: 924
- Joined: Thu Apr 22, 2010 3:00 pm
- Rank: lazy
- GD Posts: 0
- KGS: redundant/silchas
- Tygem: redundant
- Wbaduk: redundant
- DGS: redundant
- OGS: redundant
- Location: Pittsburgh
- Has thanked: 45 times
- Been thanked: 103 times
Re: Math puzzles
Ok. Then take the integers modulo 6.
Then let f(0) = f(2) = f(4) = 0 and f(1) = f(3) = f(5) = 3
and g(0) = g(3) = 0 g(1) = g(4) = 4 g(2) = g(5) = 2
then f(0) + g(0)=0
f(1) + g(1) =3 + 4=1
f(2) + g(2) = 0 + 2 = 2
f(3) + g(3) = 3 + 0 = 3
f(4) + g(4) = 0 + 4 = 4
f(5) + g(5) = 3 + 2 = 5
This works, but is much easier than the case from R to R. That's why you'd want to specify the domain and codomain.
Then let f(0) = f(2) = f(4) = 0 and f(1) = f(3) = f(5) = 3
and g(0) = g(3) = 0 g(1) = g(4) = 4 g(2) = g(5) = 2
then f(0) + g(0)=0
f(1) + g(1) =3 + 4=1
f(2) + g(2) = 0 + 2 = 2
f(3) + g(3) = 3 + 0 = 3
f(4) + g(4) = 0 + 4 = 4
f(5) + g(5) = 3 + 2 = 5
This works, but is much easier than the case from R to R. That's why you'd want to specify the domain and codomain.
- jts
- Oza
- Posts: 2664
- Joined: Sat Sep 18, 2010 4:17 pm
- Rank: kgs 6k
- GD Posts: 0
- Has thanked: 310 times
- Been thanked: 634 times
Re: Math puzzles
Redundant wrote:jts wrote:Shaddy wrote:problem 2:
Shaddy, will you say a little bit more about your solution? It seems to me that a lot is riding on an ambiguity in "This" in the last sentence. You would agree, right, that when the Nth person recites his number, the maximum number of people who could have gotten their number wrong is "N", and that the number of people who have gotten their number right will be a binomial around N/2?
Looking at the other people, each person will know which equivalence class they are in (as they only fail to know the state of their own hat). Thus everyone will guess based on the same representative of that equivalence class, which differs from the true distribution in only finitely many places.
The actual sequence and the pre-selected member of that sequence's equivalence class differ in only finitely many places, by definition. But the ex ante probability that the first fellow will correctly state the color of his hat is fifty percent. (That is, if he's not in the shared portion of the sequence he's guessing, and the chance that he is in the shared portion is infinitesimally small.) And if the probability that the nth fellow will correctly state the color of his hat is fifty percent, than the probability that the n+1* fellow will correctly state the color of his hat is fifty percent. So by induction there's no limit to the number of people who are just guessing. Which is, under most interpretations of infinity I've seen, the same as saying an infinite number of people are guessing.
Think about an equivalent problem. Take a countably infinite sequence of 0's and 1's; you look at all the elements of the set except for one. If you choose any countably infinite sequence in the same equivalence class as the previous sequence, is the probability that (the hidden element in the first sequence is the same as the element in the same spot in the second sequence) equal to 1?
- Shaddy
- Lives in sente
- Posts: 1206
- Joined: Sat Apr 24, 2010 2:44 pm
- Rank: KGS 5d
- GD Posts: 0
- KGS: Str1fe, Midorisuke
- Has thanked: 51 times
- Been thanked: 192 times
Re: Math puzzles
actually, the chance that the first guy is in the shared portion is 1, as the shared portion is infinite and the unshared portion finite. same for everyone else.
- jts
- Oza
- Posts: 2664
- Joined: Sat Sep 18, 2010 4:17 pm
- Rank: kgs 6k
- GD Posts: 0
- Has thanked: 310 times
- Been thanked: 634 times
Re: Math puzzles
Shaddy wrote:actually, the chance that the first guy is in the shared portion is 1, as the shared portion is infinite and the unshared portion finite. same for everyone else.
Hmm, I don't think so. Knowing that a={a_1, a_2, ..., a_n, ...} and b are in the same equivalence class tells us that, for any n, there are are infinitely many i>n s.t. a_i=b_i, but it doesn't tell us anything for i<n. And we can ask, out of the entire equivalence class, what are the odds that we have chosen a sequence b s.t. for all i>1, b_i=a+i? For all i>10? For all i>1x10^100? For any n you choose, knowing b_i and aRb gives you no information about a_i for all i<n.
I'm sure you understand the problem better than I can and could explain it to me, but you're quite wrong to think that the probability that the first guy is in the shared portion of the sequences is 1.
- Shaddy
- Lives in sente
- Posts: 1206
- Joined: Sat Apr 24, 2010 2:44 pm
- Rank: KGS 5d
- GD Posts: 0
- KGS: Str1fe, Midorisuke
- Has thanked: 51 times
- Been thanked: 192 times
Re: Math puzzles
I'm tired. I apologize- I don't understand the argument you gave in your second post very well. But I think I can prove (or at least sketch a proof) that the probability that the first person's hat matches the hat in the memorized sequence is 1 as follows:
Choose a finite subset of N. The members of this set will be the indices which differ between our sequence of black and white hats and the memorized sequence. The probability that this subset contains any given natural number is 0, since we choose some number of numbers without replacement and the probability that any given number will be chosen is 0. Therefore the probability that the first hat will be different from the memorized sequence is 0.
I think this works, anyway..
edit: is the shared portion you are talking about the set of n such that for any i > n, a_i = b_i, or the set of all n such that a_n = b_n?
Choose a finite subset of N. The members of this set will be the indices which differ between our sequence of black and white hats and the memorized sequence. The probability that this subset contains any given natural number is 0, since we choose some number of numbers without replacement and the probability that any given number will be chosen is 0. Therefore the probability that the first hat will be different from the memorized sequence is 0.
I think this works, anyway..
edit: is the shared portion you are talking about the set of n such that for any i > n, a_i = b_i, or the set of all n such that a_n = b_n?
- jts
- Oza
- Posts: 2664
- Joined: Sat Sep 18, 2010 4:17 pm
- Rank: kgs 6k
- GD Posts: 0
- Has thanked: 310 times
- Been thanked: 634 times
Re: Math puzzles
What I meant by "shared portion of the set" is aa' where a'={a_1, a_2, ... a_k} s.t. for all i>k, a_i=b_i (that is to say, aa'=bb'). If a and b are in the same equivalence class, such a subset exists by construction.
Consider a restricted subset of one of the equivalence classes to see which of our arguments you like better. Define A as the set of infinite sequences a={a_1, ..., a_n,... } s.t. for all i, a_i = {0, 1} and for all i>0, a_i = 0. Now, randomly choose two sequences, a and b contained in A. By construction, aRb. What is the probability that a_1=b_1?
The way I would do it is accept that for any i<100, exactly half of the elements of the set A have 0 as the i-th element, and half have 1. Therefore, for all i<100, aRb gives us no information about whether a_i=b_i.
By your suggested proof, we choose a finite subset of N (in this case, a finite subset of [1, 100]). Let's call it FS. The probability that this subset contains any given natural number is 0, obviously. (I think the most obviously way to formalize this statement is to say "consider the sequence {|FS|/i | i in N}. This sequence approaches zero.") Therefore, the probability that a_1=b_1 is one.
That last step of your proof is an obvious non sequitur. (Specifically, it's called the ecological fallacy.)
But of course, the chance that the sets a and b that our prisoners choose have a_i=b_i for all i>100 is infinitesimally small, because the actual equivalence classes they are dealing with are sets like A=V{A_i | i in n}, where A_i is defined s.t. the set in my example would be A_100. A_100 is only an infinitesimal subset of A.
Consider a restricted subset of one of the equivalence classes to see which of our arguments you like better. Define A as the set of infinite sequences a={a_1, ..., a_n,... } s.t. for all i, a_i = {0, 1} and for all i>0, a_i = 0. Now, randomly choose two sequences, a and b contained in A. By construction, aRb. What is the probability that a_1=b_1?
The way I would do it is accept that for any i<100, exactly half of the elements of the set A have 0 as the i-th element, and half have 1. Therefore, for all i<100, aRb gives us no information about whether a_i=b_i.
By your suggested proof, we choose a finite subset of N (in this case, a finite subset of [1, 100]). Let's call it FS. The probability that this subset contains any given natural number is 0, obviously. (I think the most obviously way to formalize this statement is to say "consider the sequence {|FS|/i | i in N}. This sequence approaches zero.") Therefore, the probability that a_1=b_1 is one.
That last step of your proof is an obvious non sequitur. (Specifically, it's called the ecological fallacy.)
But of course, the chance that the sets a and b that our prisoners choose have a_i=b_i for all i>100 is infinitesimally small, because the actual equivalence classes they are dealing with are sets like A=V{A_i | i in n}, where A_i is defined s.t. the set in my example would be A_100. A_100 is only an infinitesimal subset of A.
- Shaddy
- Lives in sente
- Posts: 1206
- Joined: Sat Apr 24, 2010 2:44 pm
- Rank: KGS 5d
- GD Posts: 0
- KGS: Str1fe, Midorisuke
- Has thanked: 51 times
- Been thanked: 192 times
Re: Math puzzles
jts wrote:What I meant by "shared portion of the set" is aa' where a'={a_1, a_2, ... a_k} s.t. for all i>k, a_i=b_i (that is to say, aa'=bb'). If a and b are in the same equivalence class, such a subset exists by construction.
Consider a restricted subset of one of the equivalence classes to see which of our arguments you like better. Define A as the set of infinite sequences a={a_1, ..., a_n,... } s.t. for all i, a_i = {0, 1} and for all i>0, a_i = 0. Now, randomly choose two sequences, a and b contained in A. By construction, aRb. What is the probability that a_1=b_1?
The way I would do it is accept that for any i<100, exactly half of the elements of the set A have 0 as the i-th element, and half have 1. Therefore, for all i<100, aRb gives us no information about whether a_i=b_i.
By your suggested proof, we choose a finite subset of N (in this case, a finite subset of [1, 100]). Let's call it FS. The probability that this subset contains any given natural number is 0, obviously. (I think the most obviously way to formalize this statement is to say "consider the sequence {|FS|/i | i in N}. This sequence approaches zero.") Therefore, the probability that a_1=b_1 is one.
That last step of your proof is an obvious non sequitur. (Specifically, it's called the ecological fallacy.)
But of course, the chance that the sets a and b that our prisoners choose have a_i=b_i for all i>100 is infinitesimally small, because the actual equivalence classes they are dealing with are sets like A=V{A_i | i in n}, where A_i is defined s.t. the set in my example would be A_100. A_100 is only an infinitesimal subset of A.
ah, you're right. it should be 1/2.
- cyclops
- Lives in sente
- Posts: 801
- Joined: Mon May 10, 2010 3:38 pm
- Rank: KGS 7 kyu forever
- GD Posts: 460
- Location: Amsterdam (NL)
- Has thanked: 353 times
- Been thanked: 107 times
- Contact:
first puzzle
Gocat, introducing clocks, is hot. I believe the simplest solution is:
f(x) = x and g(x) = 0 with as domain and range the integers modulo 2, that is the group { 0 , 1} in which x + y = 0 for x = y and 1 otherwise.
f(x) = x and g(x) = 0 with as domain and range the integers modulo 2, that is the group { 0 , 1} in which x + y = 0 for x = y and 1 otherwise.
I think I am so I think I am.
- flOvermind
- Lives with ko
- Posts: 295
- Joined: Wed Apr 21, 2010 3:19 am
- Rank: EGF 4 kyu
- GD Posts: 627
- Location: Linz, Austria
- Has thanked: 21 times
- Been thanked: 43 times
Re: Math puzzles
I think it's time for another puzzle 
This one is a bit simpler, it doesn't really need advanced math, just a bit of logic thinking...
Puzzle 3
There is a set of at least 3 coins. One of them is false and has a slightly different weight. All the others weigh exactly the same. It is not known whether the false coin it is heavier or lighter.
You have a simple scale available. With it you can compare the weight of two sets of coins and determine which one is heavier.
You may use the scale at most 3 times. You have to find the false coin.
The question is: How many coins can there be for the task to have a solution, and what's the corresponding strategy?
(For example, there is obviously a solution for 3 coins. Find the two coins that weigh the same, the other one is the false one. That can be done using 3 comparisons. That means the answer is at least 3
).
This is more or less an open puzzle. In the original version, there was a number of coins given, but my solution can do slightly better than that number. I have no guarantee that there isn't an even better solution available.
This one is a bit simpler, it doesn't really need advanced math, just a bit of logic thinking...
Puzzle 3
There is a set of at least 3 coins. One of them is false and has a slightly different weight. All the others weigh exactly the same. It is not known whether the false coin it is heavier or lighter.
You have a simple scale available. With it you can compare the weight of two sets of coins and determine which one is heavier.
You may use the scale at most 3 times. You have to find the false coin.
The question is: How many coins can there be for the task to have a solution, and what's the corresponding strategy?
(For example, there is obviously a solution for 3 coins. Find the two coins that weigh the same, the other one is the false one. That can be done using 3 comparisons. That means the answer is at least 3
This is more or less an open puzzle. In the original version, there was a number of coins given, but my solution can do slightly better than that number. I have no guarantee that there isn't an even better solution available.
- cyclops
- Lives in sente
- Posts: 801
- Joined: Mon May 10, 2010 3:38 pm
- Rank: KGS 7 kyu forever
- GD Posts: 460
- Location: Amsterdam (NL)
- Has thanked: 353 times
- Been thanked: 107 times
- Contact:
problem 3
The original problem I posted before in GoDiscussion.
The problem was solved there for n =
.
It will surprise me if there is a solution for any bigger n.
The problem was solved there for n =
It will surprise me if there is a solution for any bigger n.
I think I am so I think I am.
- cyclops
- Lives in sente
- Posts: 801
- Joined: Mon May 10, 2010 3:38 pm
- Rank: KGS 7 kyu forever
- GD Posts: 460
- Location: Amsterdam (NL)
- Has thanked: 353 times
- Been thanked: 107 times
- Contact:
problem 1
In a two dimensional vectorspace the solution is easy.
Assume two indepent directions. The first (vector) function gives the component of any vector x along one direction. The other does likewise along the other direction.
Both functions are constant along their opposite direction and hence trivially periodic.
This is easily generalized to any multi-dimensional vectorspace.
Solution for an ordered field.
Let v be the square root of 2 and w the square root of 3, and F the field of all numbers a + bv + cw +dvw with a, b, c and d rational.
a, b, c and d are unique for any number in F.
Now from F to F define f(a +bv + cw + dvw) = a + bv and g(a +bv + cw + dvw) = cw + dvw.
f and g are easily seen to solve the problem.
It seems the real problem is for which fields the first problem cannot be solved.
I think it can't be solved in the reals. But the problem would be nice if I'm wrong. Please flovermind, give us a hint.
Edit: Well, Robinz thought about these lines before. But I doubt intuitively that there exists such ( countable ) basis for the reals as he assumes. But maybe the axiom of choice comes in here. And maybe the concept of an overcountable basis makes sense.
Assume two indepent directions. The first (vector) function gives the component of any vector x along one direction. The other does likewise along the other direction.
Both functions are constant along their opposite direction and hence trivially periodic.
This is easily generalized to any multi-dimensional vectorspace.
Solution for an ordered field.
Let v be the square root of 2 and w the square root of 3, and F the field of all numbers a + bv + cw +dvw with a, b, c and d rational.
a, b, c and d are unique for any number in F.
Now from F to F define f(a +bv + cw + dvw) = a + bv and g(a +bv + cw + dvw) = cw + dvw.
f and g are easily seen to solve the problem.
It seems the real problem is for which fields the first problem cannot be solved.
I think it can't be solved in the reals. But the problem would be nice if I'm wrong. Please flovermind, give us a hint.
Edit: Well, Robinz thought about these lines before. But I doubt intuitively that there exists such ( countable ) basis for the reals as he assumes. But maybe the axiom of choice comes in here. And maybe the concept of an overcountable basis makes sense.
I think I am so I think I am.
- flOvermind
- Lives with ko
- Posts: 295
- Joined: Wed Apr 21, 2010 3:19 am
- Rank: EGF 4 kyu
- GD Posts: 627
- Location: Linz, Austria
- Has thanked: 21 times
- Been thanked: 43 times
Re: problem 1
cyclops wrote:In a two dimensional vectorspace the solution is easy.
In any vectorspace with more than one dimension, the solution is easy
cyclops wrote:It seems the real problem is for which fields the first problem cannot be solved.
I think it can't be solved in the reals. But the problem would be nice if I'm wrong. Please flovermind, give us a hint.
Edit: Well, Robinz thought about these lines before. But I doubt intuitively that there exists such ( countable ) basis for the reals as he assumes. But maybe the axiom of choice comes in here. And maybe the concept of an overcountable basis makes sense.
Robinz already found the correct solution:
http://www.lifein19x19.com/forum/viewto ... 820#p39820
Further elaboration:
- flOvermind
- Lives with ko
- Posts: 295
- Joined: Wed Apr 21, 2010 3:19 am
- Rank: EGF 4 kyu
- GD Posts: 627
- Location: Linz, Austria
- Has thanked: 21 times
- Been thanked: 43 times
Re: problem 3
cyclops wrote:The original problem I posted before in GoDiscussion.
The problem was solved there for n =.
It will surprise me if there is a solution for any bigger n.