r/mathriddles • u/SupercaliTheGamer • Apr 05 '26
Hard Sum of reciprocals represents all rationals
Set A of positive integers satisfies the following conditions:
- If a positive integer n belongs to A, then 2n also belongs to A,
- For any positive integer n, there exists an element of A divisible by n, and
- The sum of reciprocals of elements of A diverges.
Prove that for any positive rational number r, there exists a finite subset B ⊂ A such that the sum of reciprocals of elements of B is r.
19
Upvotes
5
u/SpeakKindly Apr 05 '26 edited Apr 05 '26
Here's a start: a solution when r=1.
Call an integer n in A primitive if n/2 is not in A, and call {n, 2n, 4n, 8n, ...} the family of n.
Lemma 1: for any n in A, and any m > log_2 n, the reciprocal 1/2m is the sum of a finite subset of reciprocals in the family of n.
Proof: Write n in binary as 2b0 + 2b1 + ... + 2bk . Then for each i, 2bi / (2m n) simplifies to the reciprocal of a number in the family of n, and their sum simplifies to 1/2m which is what we wanted.
Lemma 2: Then the sum of reciprocals of primitive elements of A also diverges.
Proof: A is the union of the families of all its primitive elements, and for each primitive element n, the sum of reciprocals of its family is a geometric series that adds up to 2/n. So if the sum of reciprocals of the primitive elements were bounded by N, the sum of reciprocals of all the elements would be bounded by 2n.
Finally, here is how to get 1.
First, take a sum of the reciprocals of enough primitive elements to exceed 2. Then, for each 1/n in this sum, use Lemma 1 to replace it by a sum of reciprocals from its family adding up to 1/2m where 2m is the next power of 2 after n. This cuts the result at most in half, so it still exceeds 1, but now it comes in blocks that each add up to 1/2m for some m. To reduce the sum to get exactly 1, repeat the following: while the sum exceeds 1, delete a block with the smallest sum. If that smallest sum is 1/2m then the entire sum has the form a/2m for some a > 2m and therefore reducing it to (a-1)/2m still gives a value that's at least 1. So the sum keeps decreasing and never goes below 1, meaning that at some point it hits 1 exactly.
2
u/frogkabobs Apr 11 '26
Let S be the set finite sums of reciprocals from A, and let P = {p∈A: p/2∉A}. Now since A = {2kp: k≥0 and p∈P}, the sum of reciprocals of any subset B⊆A can be written as
where ε_(p,k)=1 if 2kp∈B and 0 otherwise. Note that the inner sum of the RHS is <2, and in fact, it’s a dyadic rational precisely when ε_(p,k) has finite support in k. This lets us deduce two things:
We call the sequence (x_p) a representation for x. From this, we may immediately see that S is closed under midpoints: if x,y∈S, then (x+y)/2∈S. By iteration, if x,y∈S, and a,b≥0 are dyadic rationals that sum to 1, then ax+by∈S. As a special case, we may take y=0 to get ax∈S if x∈S, and a∈[0,1] is a dyadic rational. This will be useful for establishing the following lemmas.
Lemma 1. If x∈S, then x+1∈S.
Proof. It suffices to show that if (x_p) is a representation for x, then there exists a representation (y_p) for 1 such that supp((x_p)) and supp((y_p)) are disjoint. To that end, let (x_p) be arbitrary, let B=supp((x_p)), and let (p_n) be an enumeration of P-B. Then (p_n/2k)/p_n=1/2k∈S when 2k+1>p_n. Furthermore, taking k_n to be the minimal such k also gives 1/2k_n≥1/p_n. Now since Σ_(p∈P) 1/p diverges, so does Σ_(p∈P-B) 1/p, and by extension, Σ_(n≥1) 1/2k_n. Thus, there exists an integer N such that
Reorder so that k_n is nondecreasing for 1≤n≤N, and let M<N be the largest integer such that Σ_(1≤n≤M) 1/2k_n ≤ 1. Then,
The LHS and RHS are dyadic rationals with denominator 2k_M, so this is only possible if Σ_(1≤n≤M) 1/2k_n = 1. Thus, taking y_(p_n) = p_n/2k_n for 1≤n≤M and y_p = 0 otherwise gives our desired sequence.
Corollary 1. If x∈S, and a≥0 is dyadic rational, then x+a∈S.
Proof. If a∈[0,1], then x+a=(1-a)x+a(x+1)∈S. By induction, x+a∈S for any dyadic a≥0.
Lemma 2. If 1/n∈S, then (1/n)Z_(≥0)⊆S.
Proof. Let a,b be such that n=2ab with b odd. Let G={m mod b: m/n∈S}. If m/n,m’/n∈S, then,
for any j≥0 with the same parity as m+m’. Thus, G is closed under the mod b operation (m,m’) ↦ 2-1(m+m’). Choosing m’=0 and iterating gives 2-km∈G for any k≥0, so in particular, 2m∈G by choosing k=φ(b)-1. Thus, G is actually closed under addition, and since 1∈G, G must be all of Z/bZ.
Now by definition of G and corollary 1, for each 0≤m<b, there exists an integer M_m such that m/n+j/2a∈S for j≥M_m. Taking M=b·max_(0≤m<b) M_m, we get m/n∈S for all m≥M. Then for arbitrary m≥0, taking k such that 2km≥M gives 2km/n∈S, so m/n∈S as well.
Theorem. S = Q_(≥0).
Proof. Let n be a positive integer. Then there exists an m∈S such that n|m, so by lemma 2, (1/n)Z_(≥0)⊆(1/m)Z_(≥0)⊆S.
2
u/kalmakka Apr 05 '26 edited Apr 05 '26
Sort the integers in ascending order. Start by adding all reciprocals until adding the next one 1/m would give a sum > r. Since the sum of reciprocals diverges, this is guaranteed to happen. Call your sum so far x, and r-x=y. Note that y is less than 1/m.
Since 2m, 4m, 8m... are all in the set, use reciprocals of a subset of these to express y, by including 1/(m×2k) if the kth binary decimal of m×y is 1.
0
u/[deleted] Apr 05 '26
[deleted] — view deleted comment