Let n>2 be a positive integer. Consider all numbers S of the form S=a1a2+a2a3+⋯+ak−1ak, with k>1, and ai being positive integers such that a1+a2+⋯+ak=n. Determine all numbers that can be represented in the given form.
Solution
Let ⌊x⌋ be the largest integer less than or equal to x and ⌈x⌉ the smallest integer greater than or equal to x. The smallest number S that can be represented in the given form is n−1, while the largest number is ⌊4n2⌋. Since a2a3≥a3, a3a4≥a4, …, ak−1ak≥ak, it follows S≥a1a2+a3+a4+⋯+ak=n+a1a2−a1−a2=n−1+(a1−1)(a2−1)≥n−1. The equality holds if and only if a2=a3=⋯=ak−1=1. Indeed, for a2=a3=⋯=ak−1=1 we have n=a1+n−21+1+⋯+1+ak, and S=a1⋅1+n−31⋅1+1⋅1+⋯+1⋅1+1⋅ak=n−1. If S=a1a2+a2a3+⋯+ak−1ak=n−1, then S=a1a2+a2a3+⋯+ak−1ak=a1+a2+⋯+ak−1⇔⇔a1(a2−1)+a2(a3−1)+⋯+ak−1(ak−1)−(ak−1)=0⇔⇔a1(a2−1)+a2(a3−1)+⋯+(ak−1)(ak−1−1)=0 Since aj≥1 for all j∈{1,2,…,n}, we have a2=a3=⋯=ak−1=1. From the arithmetic-geometric mean inequality for k=2 and k=3, we have S=a1a2≤⌊(2a1+a2)2⌋=⌊4n2⌋ and S=a1a2+a2a3=a2(a1+a3)≤⌊4n2⌋. Let ai be the maximal element among a1,a2,…,ak. It follows S=a1a2+a2a3+⋯+ak−1ak=a1a2+a2a3+⋯+ai−1ai+ai2+aiai+1+⋯+ak−1ak−ai2≤≤a1ai+a2ai+⋯+ai−1ai+ai2+aiai+1+aiai+2+⋯+aiak−ai2==ai(a1a2+a2a3+⋯+ak−1ak)−ai2+ain−ai2=ai(n−ai)≤⌊4n2⌋. The equality holds for k=2 if and only if ∣a1−a2∣≤1 or for k=3 if and only if ∣(a1+a3)−a2∣≤1. Indeed, for arbitrary positive integer numbers a,b such that a≤b, a+b=n, n>2 there exists an integer number α such that b=a+α. Then ab=⌊4n2⌋⇔ab=⌊4(a+b)2⌋⇔a(a+α)=⌊4(2a+α)2⌋⇔a2+αa=⌊44a2+4αa+α2⌋⇔a2+αa=a2+αa+⌊4α2⌋⇔⌊4α2⌋=0 ⇔0≤4α2<1⇔0≤α2<4⇔0≤α2≤1⇔∣a−b∣≤1. We will prove by induction that all numbers from the interval ⌊n−1,⌊4n2⌋⌋ can be represented using only the partitions with a1=1. The cases n=3 and n=4 can be easily verified. Suppose it is true for n−1 and will prove for n. According to the step of induction we generate all numbers S′=a1′a2′+a2′a3′+⋯+ak−1′ak′ such that S′∈⌊n−2,⌊4(n−1)2⌋⌋ and a1′+a2′+⋯+ak−1′+ak′=n−1. Now, adding 1 as first element to every representation of S′ we obtain all representations S (S=S′+1) of n such that S∈⌊n−1,⌊4(n−1)2⌋+1⌋, where ⌊4(n−1)2⌋+1=⌊4n2−2n+41⌋+1. Therefore, we only need to construct the numbers from ⌊4n2−2n+41⌋+2 to ⌊4n2⌋−1. Set k=4 and a1=1, a2=x, a3=⌊2n⌋−1, a4=⌊2n⌋−x, with 1≤x≤⌊2n⌋−1. It follows S=x+x(⌊2n⌋−1)+(⌊2n⌋−1)(⌊2n⌋−x)=x+⌊2n⌋⌊2n⌋−x=x+⌊4n2⌋−⌊2n⌋. The equality x+⌊2n⌋⌊2n⌋−x=x+⌊4n2⌋−⌊2n⌋ can be proved considering both cases n odd, and respectively n even. For x=1,2,…,⌊2n⌋−1 we get all numbers from 1+⌊4n2⌋−⌊2n⌋ to ⌊4n2⌋−1. Since ⌊4n2−2n+41⌋+2≥1+⌊4n2⌋−⌊2n⌋, this completes the proof. □
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement and solution reproduced as published; topic and difficulty added by this site.