Olympiad Maths Prep

Track / Stage 8 / 128 of 180 #1828 of 2000

Problem 1828

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.7 Prove it International Mathematical Olympiad Shortlist · IMO

Let NN be a positive integer. Prove that there exist three permutations a1,a2,,aNa_{1}, a_{2}, \ldots, a_{N}; b1,b2,,bNb_{1}, b_{2}, \ldots, b_{N}; and c1,c2,,cNc_{1}, c_{2}, \ldots, c_{N} of 1,2,,N1,2, \ldots, N such that
ak+bk+ck2N<2023 \left|\sqrt{a_{k}}+\sqrt{b_{k}}+\sqrt{c_{k}}-2 \sqrt{N}\right|<2023
for every k=1,2,,Nk=1,2, \ldots, N.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solutions — 3

Solution 1

The idea is to approximate the numbers 1,2,,N\sqrt{1}, \sqrt{2}, \ldots, \sqrt{N} by the nearest integer with errors <0.5<0.5. This gives the following sequence
1,1,2,2,2,2,3,3,3,3,3,3,4,. 1,1,2,2,2,2,3,3,3,3,3,3,4, \ldots .
More precisely, for each k1k \geqslant 1, we round k2k+1,,k2+k\sqrt{k^{2}-k+1}, \ldots, \sqrt{k^{2}+k} to kk, so that there are 2k2 k copies of kk.

Step 1. We first consider the easier case when NN has the form
N=m(m+1). N=m(m+1) .
In this case, the numbers 1,2,,N\sqrt{1}, \sqrt{2}, \ldots, \sqrt{N} are approximated by the elements of the multiset {1×2,2×4,3×6,,m×2m}\left\{1_{\times 2}, 2_{\times 4}, 3_{\times 6}, \ldots, m_{\times 2 m}\right\}. Let TmT_{m} denote "half of" the multiset, i.e.
Tm:={1×1,2×2,3×3,,m×m}. T_{m}:=\left\{1_{\times 1}, 2_{\times 2}, 3_{\times 3}, \ldots, m_{\times m}\right\} .
We will prove by induction that there exists three permutations (uk),(vk)\left(u_{k}\right),\left(v_{k}\right), and (wk)\left(w_{k}\right) of the elements in the multiset TmT_{m} such that uk+vk+wk=2m+1u_{k}+v_{k}+w_{k}=2 m+1 is constant for k=1,2,,m(m+1)2k=1,2, \ldots, \frac{m(m+1)}{2}.

When m=1m=1, take 1+1+1=31+1+1=3. When m=2m=2, take (1,2,2)+(2,1,2)+(2,2,1)=(5,5,5)(1,2,2)+(2,1,2)+(2,2,1)=(5,5,5). Suppose that we have constructed three permutations (uk),(vk)\left(u_{k}\right),\left(v_{k}\right), and (wk)\left(w_{k}\right) of Tm1T_{m-1} satisfying uk+vk+wk=2m1u_{k}+v_{k}+w_{k}=2 m-1 for every k=1,2,,m(m1)2k=1,2, \ldots, \frac{m(m-1)}{2}. For TmT_{m}, we note that
Tm=Tm1{m×m} T_{m}=T_{m-1} \sqcup\left\{m_{\times m}\right\}
and also
Tm=(Tm1+1){1,2,,m} \begin{equation*} T_{m}=\left(T_{m-1}+1\right) \sqcup\{1,2, \ldots, m\} \tag{1} \end{equation*}
Here Tm1+1T_{m-1}+1 means to add 1 to all elements in Tm1T_{m-1}. We construct the permutations (uk)\left(u_{k}^{\prime}\right), ( vkv_{k}^{\prime} ), and ( wkw_{k}^{\prime} ) of TmT_{m} as follows:
- For k=1,2,,m(m1)2k=1,2, \ldots, \frac{m(m-1)}{2}, we set uk=uk,vk=vk+1,wk=wk+1u_{k}^{\prime}=u_{k}, v_{k}^{\prime}=v_{k}+1, w_{k}^{\prime}=w_{k}+1.
- For k=m(m1)2+rk=\frac{m(m-1)}{2}+r with r=1,2,,mr=1,2, \ldots, m, we set uk=m,vk=r,wk=m+1ru_{k}^{\prime}=m, v_{k}^{\prime}=r, w_{k}^{\prime}=m+1-r.
It is clear from (1) that (uk),(vk)\left(u_{k}^{\prime}\right),\left(v_{k}^{\prime}\right), and (wk)\left(w_{k}^{\prime}\right) give three permutations of TmT_{m}, and that they satisfy uk+vk+wk=2m+1u_{k}^{\prime}+v_{k}^{\prime}+w_{k}^{\prime}=2 m+1 for every k=1,2,,m(m+1)2k=1,2, \ldots, \frac{m(m+1)}{2}.

The inductive construction can be visualised by the 3×m(m+1)23 \times \frac{m(m+1)}{2} matrix
[u1um(m1)/2mm v1+1vm(m1)/2+11m w1+1wm(m1)/2+1m1], \left[\begin{array}{cccccc} u_{1} & \ldots & u_{m(m-1) / 2} & m & \ldots & m \ v_{1}+1 & \ldots & v_{m(m-1) / 2}+1 & 1 & \ldots & m \ w_{1}+1 & \ldots & w_{m(m-1) / 2}+1 & m & \ldots & 1 \end{array}\right],
in which the three rows represent the permutations (uk),(vk),(wk)\left(u_{k}^{\prime}\right),\left(v_{k}^{\prime}\right),\left(w_{k}^{\prime}\right), and the sum of the three entries of each column is 2m+12 m+1.

Thus, when N=m2+mN=m^{2}+m, we can construct permutations (ak),(bk)\left(a_{k}\right),\left(b_{k}\right), and (ck)\left(c_{k}\right) of 1,2,,N1,2, \ldots, N such that
2m+11.5<ak+bk+ck<2m+1+1.5. \begin{equation*} 2 m+1-1.5<\sqrt{a_{k}}+\sqrt{b_{k}}+\sqrt{c_{k}}<2 m+1+1.5 . \tag{2} \end{equation*}
This gives
ak+bk+ck2N<2.5<2023 \left|\sqrt{a_{k}}+\sqrt{b_{k}}+\sqrt{c_{k}}-2 \sqrt{N}\right|<2.5<2023
where we used that 1<2m2m2+m<0-1<2 m-2 \sqrt{m^{2}+m}<0 for positive mm.

Step 2. We now proceed to the general case. Let mm be such that
m(m+1)N<(m+1)(m+2) m(m+1) \leqslant N<(m+1)(m+2)
Write N=m(m+1)+tN=m(m+1)+t for some t{0,1,,2m+1}t \in\{0,1, \ldots, 2 m+1\} and let
L:=49N L:=\left\lfloor\frac{4}{9} N\right\rfloor
We will make use of the following inequalities below:
N>m2,N<(m+2)2,t2m+1,L+1>4N/9,L4N/9 N>m^{2}, \quad N<(m+2)^{2}, \quad t \leqslant 2 m+1, \quad L+1>4 N / 9, \quad L \leqslant 4 N / 9
As above, we construct three permutations (ak),(bk)\left(a_{k}\right),\left(b_{k}\right), and (ck)\left(c_{k}\right) of 1,2,,m(m+1)1,2, \ldots, m(m+1) satisfying (2). Now we construct the three required permutations (Ak),(Bk)\left(A_{k}\right),\left(B_{k}\right), and (Ck)\left(C_{k}\right) of 1,2,,N1,2, \ldots, N as follows:
For k=1,2,,m(m+1)k=1,2, \ldots, m(m+1), if akLa_{k} \leqslant L, take Ak=akA_{k}=a_{k}, and if ak>La_{k}>L, take Ak=ak+tA_{k}=a_{k}+t. For k=m(m+1)+rk=m(m+1)+r with r=1,2,,tr=1,2, \ldots, t, set Ak=L+rA_{k}=L+r. Define the permutations ( BkB_{k} ) and ( CkC_{k} ) similarly. Now for k=1,2,,m(m+1)k=1,2, \ldots, m(m+1), we show 0Akak20 \leqslant \sqrt{A_{k}}-\sqrt{a_{k}} \leqslant 2. The lower bound is obvious. If m1m \leqslant 1, then N5N \leqslant 5 and hence Akak512\sqrt{A_{k}}-\sqrt{a_{k}} \leqslant \sqrt{5}-\sqrt{1} \leqslant 2. If m2m \geqslant 2, then
Akak=AkakAk+akt2L+12m+143m2 \sqrt{A_{k}}-\sqrt{a_{k}}=\frac{A_{k}-a_{k}}{\sqrt{A_{k}}+\sqrt{a_{k}}} \leqslant \frac{t}{2 \sqrt{L+1}} \leqslant \frac{2 m+1}{\frac{4}{3} m} \leqslant 2
We have similar inequalities for ( BkB_{k} ) and ( CkC_{k} ). Thus
2N4.5<2m+11.5Ak+Bk+Ck2m+1+1.5+6<2N+8.5 2 \sqrt{N}-4.5<2 m+1-1.5 \leqslant \sqrt{A_{k}}+\sqrt{B_{k}}+\sqrt{C_{k}} \leqslant 2 m+1+1.5+6<2 \sqrt{N}+8.5
For k=m2+m+1,,m2+m+tk=m^{2}+m+1, \ldots, m^{2}+m+t, we have
2N<3L+1Ak+Bk+Ck3L+t4N+9t<2N+8.5 2 \sqrt{N}<3 \sqrt{L+1} \leqslant \sqrt{A_{k}}+\sqrt{B_{k}}+\sqrt{C_{k}} \leqslant 3 \sqrt{L+t} \leqslant \sqrt{4 N+9 t}<2 \sqrt{N}+8.5
To sum up, we have defined three permutations (Ak),(Bk)\left(A_{k}\right),\left(B_{k}\right), and (Ck)\left(C_{k}\right) of 1,2,,N1,2, \ldots, N, such that
Ak+Bk+Ck2N<8.5<2023 \left|\sqrt{A_{k}}+\sqrt{B_{k}}+\sqrt{C_{k}}-2 \sqrt{N}\right|<8.5<2023
holds for every k=1,2,,Nk=1,2, \ldots, N.

Solution 2

This is a variation of Solution 1 that uses induction for Step 2.
Let nn be an integer satisfying 0nm+10 \leqslant n \leqslant m+1 and define the multiset Tm,nT_{m, n} by
Tm,n:={1×1,2×2,3×3,,m×m,(m+1)×n} T_{m, n}:=\left\{1_{\times 1}, 2_{\times 2}, 3_{\times 3}, \ldots, m_{\times m},(m+1)_{\times n}\right\}
In other words, Tm,0=Tm,Tm,n=Tm{(m+1)×n}T_{m, 0}=T_{m}, T_{m, n}=T_{m} \sqcup\left\{(m+1)_{\times n}\right\} and Tm,m+1=Tm+1T_{m, m+1}=T_{m+1}, where TmT_{m} is the set defined in Solution 1.

Claim. There exist three permutations (uk),(vk),(wk)\left(u_{k}\right),\left(v_{k}\right),\left(w_{k}\right) of Tm,nT_{m, n} such that
{uk+vk+wk=2m+1(n=0),uk+vk+wk{2m+1,2m+2,2m+3}(1nm),uk+vk+wk=2m+3(n=m+1). \begin{cases}u_{k}+v_{k}+w_{k}=2 m+1 & (n=0), \\ u_{k}+v_{k}+w_{k} \in\{2 m+1,2 m+2,2 m+3\} & (1 \leqslant n \leqslant m), \\ u_{k}+v_{k}+w_{k}=2 m+3 & (n=m+1) .\end{cases}
Proof. We proceed by induction on mm. If n=0n=0 or n=m+1n=m+1, the assertion can be proved as in Solution 1. If 1nm1 \leqslant n \leqslant m, we note that
Tm,n=Tm1,n{m×(mn),(m+1)×n}=(Tm1,n+1){1,2,,m} T_{m, n}=T_{m-1, n} \sqcup\left\{m_{\times(m-n)},(m+1)_{\times n}\right\}=\left(T_{m-1, n}+1\right) \sqcup\{1,2, \ldots, m\}
From the hypothesis of induction, it follows that we have three permutations (uk),(vk),(wk)\left(u_{k}\right),\left(v_{k}\right),\left(w_{k}\right) of Tm1,nT_{m-1, n} satisfying uk+vk+wk{2m1,2m,2m+1}u_{k}+v_{k}+w_{k} \in\{2 m-1,2 m, 2 m+1\} for every kk. We construct the permutations (uk),(vk)\left(u_{k}^{\prime}\right),\left(v_{k}^{\prime}\right), and (wk)\left(w_{k}^{\prime}\right) of Tm,nT_{m, n} as follows:
- For k=1,2,,m(m1)2+nk=1,2, \ldots, \frac{m(m-1)}{2}+n, we set uk=uk,vk=vk+1u_{k}^{\prime}=u_{k}, v_{k}^{\prime}=v_{k}+1, and wk=wk+1w_{k}^{\prime}=w_{k}+1.
- For k=m(m1)2+n+rk=\frac{m(m-1)}{2}+n+r with r=1,2,,mr=1,2, \ldots, m, we set uk=mu_{k}^{\prime}=m if 1rmn1 \leqslant r \leqslant m-n while uk=m+1u_{k}^{\prime}=m+1 if mn+1rm,vk=rm-n+1 \leqslant r \leqslant m, v_{k}^{\prime}=r, and wk=m+1rw_{k}^{\prime}=m+1-r.
It is clear from the construction that (uk),(vk)\left(u_{k}^{\prime}\right),\left(v_{k}^{\prime}\right), and (wk)\left(w_{k}^{\prime}\right) give three permutations of Tm,nT_{m, n}, and they satisfy uk+vk+wk{2m+1,2m+2,2m+3}u_{k}^{\prime}+v_{k}^{\prime}+w_{k}^{\prime} \in\{2 m+1,2 m+2,2 m+3\} for every k=1,2,,m(m+1)2+nk=1,2, \ldots, \frac{m(m+1)}{2}+n.

Again, we can visualise the construction using the matrix
[u1um(m1)/2+nmmm+1m+1v1+1vm(m1)/2+n+11mw1+1wm(m1)/2+n+1m1]. \left[\begin{array}{ccccccccc} u_{1} & \ldots & u_{m(m-1) / 2+n} & m & \ldots & m & m+1 & \ldots & m+1 \\v_{1}+1 & \ldots & v_{m(m-1) / 2+n}+1 & 1 & \ldots & \ldots & \ldots & \ldots & m \\w_{1}+1 & \ldots & w_{m(m-1) / 2+n}+1 & m & \ldots & \ldots & \ldots & \ldots & 1 \end{array}\right] .

In general, we have m(m+1)N<(m+1)(m+2)m(m+1) \leqslant N<(m+1)(m+2) for some m0m \geqslant 0. Set N=m(m+1)+tN=m(m+1)+t for some t{0,1,,2m+1}t \in\{0,1, \ldots, 2 m+1\}. Then the approximation of {1,2,,N}\{\sqrt{1}, \sqrt{2}, \ldots, \sqrt{N}\} by the nearest integer with errors <0.5<0.5 is a multiset
{1×2,2×4,,m×2m,(m+1)×t}=Tm,n1Tm,n2 \left\{1_{\times 2}, 2_{\times 4}, \ldots, m_{\times 2 m},(m+1)_{\times t}\right\}=T_{m, n_{1}} \sqcup T_{m, n_{2}}
with n1=t/2n_{1}=\lfloor t / 2\rfloor and n2=t/2n_{2}=\lceil t / 2\rceil.
Since 0n1n2m+10 \leqslant n_{1} \leqslant n_{2} \leqslant m+1, by using the Claim we can construct permutations ( aka_{k} ), ( bkb_{k} ), and (ck)\left(c_{k}\right) to satisfy the following inequality:
2m+11.5<ak+bk+ck<2m+3+1.5. 2 m+1-1.5<\sqrt{a_{k}}+\sqrt{b_{k}}+\sqrt{c_{k}}<2 m+3+1.5 .
Since m<N<m+2m<\sqrt{N}<m+2, it follows that
2N4.5<2m+11.5<ak+bk+ck<2m+3+1.5<2N+4.5 2 \sqrt{N}-4.5<2 m+1-1.5<\sqrt{a_{k}}+\sqrt{b_{k}}+\sqrt{c_{k}}<2 m+3+1.5<2 \sqrt{N}+4.5
and so
Ak+Bk+Ck2N<4.5<2023 \left|\sqrt{A_{k}}+\sqrt{B_{k}}+\sqrt{C_{k}}-2 \sqrt{N}\right|<4.5<2023

Solution 3

This solution is based on the geometrical insight of equilateral triangles.

Step 1. We first consider the easier case of triangle numbers
N=m(m+1)2. N=\frac{m(m+1)}{2} .
As shown in the following picture, consider the triangular shaped lattice points inside an equilateral triangle ABCA B C with a total of NN points. The lattice is built in a way that the th \ell^{\text {th }} row has exactly \ell points for each =1,2,,m\ell=1,2, \ldots, m. Rows are numbered in three different ways, one for each vertex.

Each point PkP_{k} in the triangular lattice is labelled with a triple of integers (ak,bk,ck)\left(a_{k}, b_{k}, c_{k}\right) as follows. The first coordinate is called the AA-coordinate, and so on for B,CB, C. To define the AA-coordinate, denoted Wa()W_{a}(\bullet), first label the lattice points by 1,2,3,1,2,3, \ldots starting with the point closest to AA and then going down the rows with the rule that within a row, the labelling is from left to right (see right picture). The BB-coordinate, denoted Wb()W_{b}(\bullet), is defined by rotating the AA-coordinate counterclockwise by 120120^{\circ}. The CC-coordinate, denoted Wc()W_{c}(\bullet), similarly, by rotating the AA-coordinate counterclockwise by 240240^{\circ}.

Assume that a point PP lies in the ath \ell_{a}{ }^{\text {th }} row from the vertex AA, in the bth \ell_{b}{ }^{\text {th }} row from the vertex BB, and in the cth \ell_{c}{ }^{\text {th }} row from the vertex CC. Note that a\ell_{a} is proportional to the height of AA in the triangle, minus the height of PP. Since inside an equilateral triangle, the sum of the lengths of the heights from a point to the three sides is independent of the point, we must have
a+b+c=2m+1=8N+1. \ell_{a}+\ell_{b}+\ell_{c}=2 m+1=\sqrt{8 N+1} .
Since there are exactly 1+2++=(+1)21+2+\cdots+\ell=\frac{\ell(\ell+1)}{2} points in the first \ell rows, the AA-labeling Wa(P)W_{a}(P) of the point PP satisfies
a(a1)2+1Wa(P)a(a+1)2. \frac{\ell_{a}(\ell_{a}-1)}{2}+1 \leqslant W_{a}(P) \leqslant \frac{\ell_{a}(\ell_{a}+1)}{2} .
In paticular,
(a12)2<2Wa(P)<(a+12)2. \left(\ell_{a}-\frac{1}{2}\right)^{2}<2 W_{a}(P)<\left(\ell_{a}+\frac{1}{2}\right)^{2} .
Taking the cyclic sum gives
2Wa(P)+2Wb(P)+2Wc(P)(a+b+c)<32 \left|\sqrt{2 W_{a}(P)}+\sqrt{2 W_{b}(P)}+\sqrt{2 W_{c}(P)}-\left(\ell_{a}+\ell_{b}+\ell_{c}\right)\right|<\frac{3}{2}
and thus
Wa(P)+Wb(P)+Wc(P)2N+18<3212=324. \left|\sqrt{W_{a}(P)}+\sqrt{W_{b}(P)}+\sqrt{W_{c}(P)}-2 \sqrt{N+\frac{1}{8}}\right|<\frac{3}{2} \cdot \frac{1}{\sqrt{2}}=\frac{3 \sqrt{2}}{4} .

Step 2. Now, for a general positive integer NN, there exists a positive integer mm such that
m(m1)2+1Nm(m+1)2. \frac{m(m-1)}{2}+1 \leqslant N \leqslant \frac{m(m+1)}{2} .
Write N=m(m+1)2tN=\frac{m(m+1)}{2}-t with t{0,1,,m1}t \in\{0,1, \ldots, m-1\}. We modify the above construction for m(m+1)2\frac{m(m+1)}{2} points into a construction for NN points as follows. We remove tt arbitrary points from the mth m^{\text {th }} row (namely the bottom row) of the triangular lattice. The remaining triangular lattice has m(m+1)2t=N\frac{m(m+1)}{2}-t=N points, and we assign their A,BA-, B-, and CC-coordinates as before (in the same order, yet skipping over the points that are removed so that the coordinates exactly form permutations of 1,2,,N1,2, \ldots, N ).

For each point PP in the triangular lattice (that was not removed earlier), suppose that it is in the ath ,bth \ell_{a}{ }^{\text {th }}, \ell_{b}{ }^{\text {th }}, and cth \ell_{c}{ }^{\text {th }} row when viewed from A,BA, B, and CC, respectively. Now the AA-coordinates Wa(P)W_{a}(P) still satisfies
a(a1)2+1Wa(P)a(a+1)2. \frac{\ell_{a}(\ell_{a}-1)}{2}+1 \leqslant W_{a}(P) \leqslant \frac{\ell_{a}(\ell_{a}+1)}{2} .
The BB-coordinate Wb(P)W_{b}(P) satisfies
(b1)(b2)2+1Wb(P)b(b+1)2 \frac{(\ell_{b}-1)(\ell_{b}-2)}{2}+1 \leqslant W_{b}(P) \leqslant \frac{\ell_{b}(\ell_{b}+1)}{2}
because, viewing from point BB, we have removed either 0 or 1 point from each row, and the first b1\ell_{b}-1 rows have at least 0+1++(b2)=(b1)(b2)20+1+\cdots+(\ell_{b}-2)=\frac{(\ell_{b}-1)(\ell_{b}-2)}{2} points left. For the same reason, the CC-labeling Wc(P)W_{c}(P) satisfies
(c1)(c2)2+1Wc(P)c(c+1)2. \frac{(\ell_{c}-1)(\ell_{c}-2)}{2}+1 \leqslant W_{c}(P) \leqslant \frac{\ell_{c}(\ell_{c}+1)}{2} .
From this, we deduce that
a12<2Wa(P)<a+12,b32<2Wb(P)<b+12,c32<2Wc(P)<c+12. \begin{aligned} \ell_{a}-\frac{1}{2} & <\sqrt{2 W_{a}(P)}<\ell_{a}+\frac{1}{2}, \\ \ell_{b}-\frac{3}{2} & <\sqrt{2 W_{b}(P)}<\ell_{b}+\frac{1}{2}, \\ \ell_{c}-\frac{3}{2} & <\sqrt{2 W_{c}(P)}<\ell_{c}+\frac{1}{2} . \end{aligned}
Combining all above with the inequalities 2m1<22N<2m+12 m-1<2 \sqrt{2 N}<2 m+1 and a+b+c=2m+1\ell_{a}+\ell_{b}+\ell_{c}=2 m+1, we deduce that
22N72<(2m+1)72<2Wa(P)+2Wb(P)+2Wc(P)<(2m+1)+32<22N+72 \begin{aligned} 2 \sqrt{2 N}-\frac{7}{2}<(2 m+1)-\frac{7}{2}<\sqrt{2 W_{a}(P)} & +\sqrt{2 W_{b}(P)}+\sqrt{2 W_{c}(P)} \\ & <(2 m+1)+\frac{3}{2}<2 \sqrt{2 N}+\frac{7}{2} \end{aligned}
Therefore, for each point PP, we have
Wa(P)+Wb(P)+Wc(P)2N<7212<2.5<2013. \left|\sqrt{W_{a}(P)}+\sqrt{W_{b}(P)}+\sqrt{W_{c}(P)}-2 \sqrt{N}\right|<\frac{7}{2} \cdot \frac{1}{\sqrt{2}}<2.5<2013 .
We may finally order of the NN points in an arbitrary way. Then the AA-labelings Wa()W_{a}(\bullet) give the permutation a1,,aNa_{1}, \ldots, a_{N}, the BB-labelings Wb()W_{b}(\bullet) give b1,,bNb_{1}, \ldots, b_{N}, and the CC-labelings Wc()W_{c}(\bullet) give c1,,cNc_{1}, \ldots, c_{N}.

For each k=1,2,,Nk=1,2, \ldots, N, we have
ak+bk+ck2N<2.5<2023 \left|\sqrt{a_{k}}+\sqrt{b_{k}}+\sqrt{c_{k}}-2 \sqrt{N}\right|<2.5<2023

Figure 1

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.