Solution. We describe a strategy for Petya. Write \(1\) as a sum of \(2^n\) unit fractions. Split them into unequal pairs and add the numbers in each pair. Then split the \(2^{\,n-1}\) results again into unequal pairs and add in each pair, and so on, until one number remains. Since the total sum is \(1\), after \(n\) steps the remaining number is \(1\).
Assume the above process is feasible. Then Petya writes \(1\) as the sum of two numbers that were added at step \(n-1\). Vasya chooses one addend that itself is a sum of two numbers obtained at step \(n-1\), and so on. In the end one of the original \(2^n\) fractions remains.
To realize this process we need the following auxiliary statement.
Lemma. There are two 4-tuples \(a_1>a_2>a_3>a_4\) and \(b_1>b_2>b_3>b_4\). Then one can pair them into \((a_i,b_j)\) so that in each pair the numbers are distinct and the pairwise sums are all different.
Proof of the lemma. Consider cases.
\(1^{\circ}.\) \(a_1=b_1\), \(a_2=b_2\). If \(a_4\ne b_4\), w.l.o.g. \(a_3\ge b_3\), we can arrange
\(a_1+b_2>b_1+a_3>a_2+b_3>a_4+b_4\).
If \(a_4=b_4\) and, w.l.o.g., \(a_3\ge b_3\), arrange
\(a_1+b_2>b_1+a_3>a_2+b_4>b_3+a_4\).
\(2^{\circ}.\) \(a_3=b_3\), \(a_4=b_4\) reduces to the previous case after replacing the 4-tuples by \(-a_i\) and \(-b_i\).
\(3^{\circ}.\) The pairs \((a_1,b_1)\) and \((a_2,b_2)\) are different, and so are \((a_3,b_3)\) and \((a_4,b_4)\). Then we can pair the first two pairs with each other (and do the same with the third and fourth), obtaining two sums smaller than in the first pair. If \(a_1=b_1\) or \(a_2=b_2\), take \(a_1+b_2\), \(a_2+b_1\); otherwise take \(a_1+b_1\) and \(a_2+b_2\). The lemma is proved.
Now the process from the beginning is feasible (i.e., at every step we add distinct numbers) provided we can partition the initial \(2^n\) fractions into 4-tuples so that inside each 4-tuple all fractions are pairwise distinct. Indeed, then at each step we split the 4-tuples into pairs and, by the lemma, add numbers coming from different 4-tuples. After each step the obtained sums again split into 4-tuples of pairwise distinct numbers. Continuing this for the first \(n-2\) steps, we get a 4-tuple of distinct numbers \(x_1\lt x_2\lt x_3\lt x_4\); at step \(n-1\) we add \(x_1+x_2\) and \(x_3+x_4\), and at step \(n\) these two numbers are added.
Thus it suffices to represent \(\tfrac14\) as a sum of \(2^{n-2}\) fractions of the form \(1/m\) in four different ways, each time using distinct denominators not exceeding \(2^n+50\).
First way - the sum of \(2^{\,n-2}\) equal fractions \(\dfrac{1}{2^n}\).
Construct three other representations. Among the numbers \(n,n-1,n-2,n-3,n-4,n-5\) there is at most one power of two and at most two primes (since primes greater than \(3\) leave remainders \(1\) or \(5\) mod \(6\)); remove such numbers from consideration. Any remaining number can be written as \(n-k=pt\) with \(p,t>1\) and \(t\) odd. Then \(2^n+2^k=2^k(2^p+1)q\). Take \(2^{\,n-2}-2^{\,k+p-2}\) fractions \(\dfrac{1}{2^n+2^k}\) and \(2^{\,k+p-2}\) fractions \(\dfrac{1}{2^{\,k+p}q}\). Since \(k\le5\), we have \(2^{\,k+p}q<2^n+2^k\le2^n+50\). The sum equals
\(\dfrac{2^{\,n-2}-2^{\,k+p-2}}{2^n+2^k}+\dfrac{2^{\,k+p-2}}{2^{\,k+p}q}
=\tfrac14\Big(\dfrac{2^n-2^{\,k+p}}{2^n+2^k}+\dfrac{2^k(2^p+1)}{2^n+2^k}\Big)=\tfrac14.\)
Do this for three different values of \(k\). The obtained representations have no common fractions: with the first set the three new ones do not intersect, and a fraction of the form \(\dfrac{1}{2^n+2^k}\) can occur in at most one set. It remains to check that the fractions \(\dfrac{1}{2^{\,k+p}q}\) are all distinct. Suppose contrary that \(2^{\,k+p}q=2^{\,k_1+p_1}q_1\). Because \(q,q_1\) are odd, we get \(q=q_1\), a common divisor of \(2^n+2^k\) and \(2^n+2^{k_1}\). Hence \(2^k-2^{k_1}\) is divisible by \(q\), so \(q<32\). But \(p=(n-k)/t32\), a contradiction.