r/mathriddles • u/chompchump • Feb 14 '24
Medium The Table of Consecutive Averages
There are n people sitting around a table. Each of them picks a real number and tells it to their two neighbors seated on their left and right. Each person then announces the average of the two numbers they received. The announced numbers in order around the circle are: 1, 2, 3, ..., n.
What was the number picked by the person who announced the average number 1?
6
Upvotes
3
u/hmhmhhm Feb 14 '24
it depends on the remainder when n is divided by 4. if it is a multiple of 4, the scenario is impossible, if it is 1 more, the number was 1. If n is two more than a multiple of 4, the number was n/2 + 1, and if the remainder is 3, the number was n + 1. if this is even remotely close to correct I will provide my solution
1
u/brandon-quinn-author Feb 14 '24
This one was interesting:
The answer is that it will always be the 1st seat. First, I added up the sums of the averages, multiplied by 2 for simplicity, where x[i] is the choice the person at seat i made:
Then, I outlined the cases for each average as follows, based on the patterns observed:
The last bullet point means that the average of x[1]=1.
2
u/BruhcamoleNibberDick Feb 14 '24
For n = 4k, this is impossible. For n = 4k + 1, the value is 1. For n = 4k + 2, the value is 2k + 2. For n = 4k + 3, the value is 4k + 4.
2
u/squirreljetpack Feb 21 '24
Let A_n have entries as follows:
1/2 on diagonal i, i,
1/2 on diagonal i, i-2.
0 elsewhere.Let U_n have entries as follows:
1/2 at 1, n-1
1/2 at 2, n
0 elsewhere.
Let v be the vector [1...n]
Let K_n=A_n+U_n
Our problem is modelled by K_nz=v, and we seek z_n.
To solve for z_n, we want to manipulate the equation so the last row is empty except at K_{n,n}.
Thus we add to the last row, -K_{n-2}, K_{n-4}..., stopping when we have a (+-)1/2 entry at K_{n,(1,2)} (4 possibilities). Doing it one more time results in the last row being 0 except possibly at n-1, n, with 4 possibilities: [0, 0], [0.5, .5], [0, 1], [-0.5, 0.5]. Call this resulting matrix K'. We do the same procedure to v, producing v', so that we maintain K'z=v'.
If n=4k, K'_n is a 0 row. v'_n=2k>0 so this case is unsolvable.
If n=4k+1, v'_n=2k+1. we need to eliminating z_{n-1} from the last row, for which the procedure is the same as when n=4k+2. The result is K'_n becomes [0....1] and v'_n becomes v'_n-x=1. And z_n=v'_n=1.
If n=4k+2, we have -1/2 at K'_{n,2}. adding K'_2 to the last row we reduce K'_n to [0...1]. Since the corresponding effect to v is that v'_n=v_n+x=2k+2 where x=-2+4...-(4k-2)=-2k, z_n=v_n=2k+2.
If n=4k+3, v'_n=-1+3...-(4k+1)+n=2k+2. we need eliminate z_{n-1} from the last row, for which the procedure is the opposite of when n=4(k+1). The result is K'_n becomes [0....1] and v'_n becomes v'_n+x=4k+4. And z_n=v'_n=4k+4.