| {"year": "2022", "tier": "T0", "problem_label": "1", "problem_type": null, "exam": "IMO", "problem": "The Bank of Oslo issues two types of coin: aluminum (denoted \\(A\\) ) and bronze (denoted \\(B\\) ). Marianne has \\(n\\) aluminum coins and \\(n\\) bronze coins arranged in a row in some arbitrary initial order. A chain is any subsequence of consecutive coins of the same type. Given a fixed positive integer \\(k \\leq 2n\\) , Gilberty repeatedly performs the following operation: he identifies the longest chain containing the \\(k^{\\mathrm{th}}\\) coin from the left and moves all coins in that chain to the left end of the row. For example, if \\(n = 4\\) and \\(k = 4\\) , the process starting from the ordering \\(AABBBA\\) would be \\(AABBBA\\) \\(A\\) \\(BBBA\\) \\(A\\) \\(AAABBB\\) \\(A\\) \\(BBBBAA\\) \\(A\\) \\(BBBBAA\\) \\(A\\) \\(\\dots\\) \n\nFind all pairs \\((n,k)\\) with \\(1\\leq k\\leq 2n\\) such that for every initial ordering, at some moment during the process, the leftmost \\(n\\) coins will all be of the same type.", "solution": "Tsame type. \n\nAnswer: \\(n\\leq k\\leq \\left\\lceil \\frac{3}{2} n\\right\\rceil\\) \n\nCall a maximal chain a block. Then the line can be described as a sequence of blocks: it's one of: \n\n\\[\\underbrace{A\\ldots A}_{e_1}\\underbrace{B\\ldots B}_{e_2}\\underbrace{A\\ldots A}_{e_3}\\ldots \\underbrace{A\\ldots A}_{e_m}\\mathrm{~for~odd~}m\\] \\[\\underbrace{A\\ldots A}_{e_1}\\underbrace{B\\ldots B}_{e_2}\\underbrace{A\\ldots A}_{e_3}\\ldots \\underbrace{B\\ldots B}_{e_m}\\mathrm{~for~even~}m\\] \n\nor the same thing with the roles of \\(A\\) and \\(B\\) flipped. \n\nThe main claim is the following: \n\nClaim — The number \\(m\\) of blocks will never increase after an operation. Moreover, it stays the same if and only if \n\n- \\(k \\leq e_1\\) ; or \n\n- \\(m\\) is even and \\(e_m \\geq 2n + 1 - k\\) . \n\nProof. This is obvious, just run the operation and see! \n\nThe problem asks for which values of \\(k\\) we always reach \\(m = 2\\) eventually; we already know that it's non- increasing. We consider a few cases: \n\n- If \\(k < n\\) , then any configuration with \\(e_1 = n - 1\\) will never change. \n\n- If \\(k > \\lceil 3n / 2 \\rceil\\) , then take \\(m = 4\\) and \\(e_1 = e_2 = \\lfloor n / 2 \\rfloor\\) and \\(e_3 = e_4 = \\lceil n / 2 \\rceil\\) . This configuration retains \\(m = 4\\) always: the blocks simply rotate. \n\n- Conversely, suppose \\(k \\geq n\\) has the property that \\(m > 2\\) stays fixed. If after the first three operations \\(m\\) hasn't changed, then we must have \\(m \\geq 4\\) even, and \\(e_m, e_{m-1}, e_{m-2} \\geq 2n + 1 - k\\) . Now, \n\n\\[n \\geq e_m + e_{m-2} \\geq 2(2n + 1 - k) \\implies k \\geq \\frac{3}{2} n + 1\\]\n\n\n\nso this completes the proof.", "metadata": {"resource_path": "IMO/segmented/en-IMO-2022-notes.jsonl", "problem_match": "1. ", "solution_match": "## \\(\\S 1.1\\) IMO 2022/1, proposed by Baptiste Serraille (FRA) \n"}} |
| {"year": "2022", "tier": "T0", "problem_label": "2", "problem_type": null, "exam": "IMO", "problem": "Find all functions \\(f\\colon \\mathbb{R}^{+}\\to \\mathbb{R}^{+}\\) such that for each \\(x\\in \\mathbb{R}^{+}\\) , there is exactly one \\(y\\in \\mathbb{R}^{+}\\) satisfying \n\n\\[x f(y) + y f(x)\\leq 2.\\]", "solution": "The answer is \\(f(x)\\equiv 1 / x\\) which obviously works (here \\(y = x\\) ). \n\nFor the converse, assume we have \\(f\\) such that each \\(x\\in \\mathbb{R}^{+}\\) has a friend \\(y\\) with \\(x f(y) + y f(x)\\leq 2\\) . By symmetry \\(y\\) is also the friend of \\(x\\) . \n\nClaim — In fact every number is its own friend. \n\nProof. Assume for contradiction \\(a\\neq b\\) are friends. Then we know that \\(a f(a) + a f(a)>\\) \\(2\\Longrightarrow f(a) > \\frac{1}{a}\\) . Analogously, \\(f(b) > \\frac{1}{b}\\) . However, we then get \n\n\\[2\\geq a f(b) + b f(a) > \\frac{a}{b} +\\frac{b}{a}\\stackrel {\\mathrm{AMGM}}{\\geq}2\\] \n\nwhich is impossible. \n\nThe problem condition now simplifies to saying \n\n\\[f(x)\\leq \\frac{1}{x}\\mathrm{~for~all~}x,\\qquad x f(y) + y f(x) > 2\\mathrm{~for~all~}x\\neq y.\\] \n\nIn particular, for any \\(x > 0\\) and \\(\\epsilon >0\\) we have \n\n\\[2< x f(x + \\epsilon) + (x + \\epsilon)f(x)\\leq \\frac{x}{x + \\epsilon} +(x + \\epsilon)f(x)\\] \\[\\Longrightarrow f(x) > \\frac{x + 2\\epsilon}{(x + \\epsilon)^{2}} = \\frac{1}{x + \\frac{\\epsilon^{2}}{x + 2\\epsilon}}.\\] \n\nSince this holds for all \\(\\epsilon >0\\) this forces \\(f(x)\\geq \\frac{1}{x}\\) as well. We're done. \n\nRemark. Alternatively, instead of using \\(x + \\epsilon\\) , it also works to consider \\(y = \\frac{1}{f(x)}\\) . For such a \\(y\\) , we would have \n\n\\[x f\\left(\\frac{1}{f(x)}\\right) + \\frac{1}{f(x)}\\cdot f(x) = x f\\left(\\frac{1}{f(x)}\\right) + 1\\leq x\\cdot f(x) + 1\\leq 1 + 1 = 2\\] \n\nwhich gives a similar contradiction.", "metadata": {"resource_path": "IMO/segmented/en-IMO-2022-notes.jsonl", "problem_match": "2. ", "solution_match": "## \\(\\S 1.2\\) IMO 2022/2, proposed by Merlijn Staps (NLD) \n"}} |
| {"year": "2022", "tier": "T0", "problem_label": "3", "problem_type": null, "exam": "IMO", "problem": "Let \\(k\\) be a positive integer and let \\(S\\) be a finite set of odd prime numbers. Prove that there is at most one way (up to rotation and reflection) to place the elements of \\(S\\) around the circle such that the product of any two neighbors is of the form \\(x^{2} + x + k\\) for some positive integer \\(x\\) .", "solution": "We replace \"positive integer \\(x\\) \" with \"nonnegative integer \\(x\\) \", and say numbers of the form \\(x^{2} + x + k\\) are good. We could also replace \"nonnegative integer \\(x\\) \" with \"integer \\(x\\) \" owing to the obvious map \\(x \\mapsto 1 - x\\) . \n\nClaim — If \\(p\\) is an odd prime, there are at most two odd primes \\(q\\) and \\(r\\) less than \\(p\\) for which \\(pq = x^{2} + x + k\\) and \\(pr = y^{2} + y + k\\) are good. \n\nMoreover, if the above occurs and \\(x, y \\geq 0\\) , then \\(x + y + 1 = p\\) and \\(xy \\equiv k \\pmod{p}\\) . \n\nProof. The equation \\(T^{2} + T + k \\equiv 0 \\pmod{p}\\) has at most two solutions modulo \\(p\\) , i.e. at most two solutions in the interval \\([0, p - 1]\\) . Because \\(0 \\leq x, y < p\\) from \\(p > \\max(q, r)\\) and \\(k > 0\\) , the first half follows. \n\nFor the second half, Vieta also gives \\(x + y \\equiv - 1 \\pmod{p}\\) and \\(xy \\equiv k \\pmod{p}\\) , and we know \\(0 < x + y < 2p\\) . \\(\\square\\) \n\nClaim — If two such primes do exist as above, then \\(qr\\) is also good (!). \n\nProof. Let \\(pq = x^{2} + x + k\\) and \\(pr = y^{2} + y + k\\) for \\(x, y \\geq 0\\) as before. Fix \\(\\alpha \\in \\mathbb{C}\\) such that \\(\\alpha^{2} + \\alpha + k = 0\\) ; then for any \\(n \\in \\mathbb{Z}\\) , we have \n\n\\[n^{2} + n + k = \\mathrm{Norm}(n - \\alpha).\\] \n\nHence \n\n\\[pq \\cdot pr = \\mathrm{Norm} \\left((x - \\alpha)(y - \\alpha)\\right) = \\mathrm{Norm} \\left((xy - k) - (x + y + 1)\\alpha\\right)\\] \n\nBut \\(\\mathrm{Norm}(p) = p^{2}\\) , so combining with the second half of the previous claim gives \n\n\\[qr = \\mathrm{Norm} \\left(\\frac{1}{p} (xy - k) - \\alpha\\right)\\] \n\nas needed. \n\nThese two claims imply the claim directly by induction on \\(|S|\\) , since one can now delete the largest element of \\(S\\) . \n\nRemark. To show that the condition is not vacuous, the author gave a ring of 385 primes for \\(k = 41\\) ; see https://aops.com/community/p26068963.\n\n\n\n## \\(\\S 2\\) Solutions to Day 2", "metadata": {"resource_path": "IMO/segmented/en-IMO-2022-notes.jsonl", "problem_match": "3. ", "solution_match": "## \\(\\S 1.3\\) IMO 2022/3, proposed by Ankan Bhattacharya (USA) \n"}} |
| {"year": "2022", "tier": "T0", "problem_label": "4", "problem_type": null, "exam": "IMO", "problem": "Let \\(A B C D E\\) be a convex pentagon such that \\(B C = D E\\) . Assume that there is a point \\(T\\) inside \\(A B C D E\\) with \\(T B = T D\\) \\(T C = T E\\) and \\(\\angle A B T = \\angle T E A\\) . Let line \\(A B\\) intersect lines \\(C D\\) and \\(C T\\) at points \\(P\\) and \\(Q\\) , respectively. Assume that the points \\(P\\) , \\(B\\) , \\(A\\) , \\(Q\\) occur on their line in that order. Let line \\(A E\\) intersect \\(C D\\) and \\(D T\\) at points \\(R\\) and \\(S\\) , respectively. Assume that the points \\(R\\) , \\(E\\) , \\(A\\) , \\(S\\) occur on their line in that order. Prove that the points \\(P\\) , \\(S\\) , \\(Q\\) , \\(R\\) lie on a circle.", "solution": "## Problem statemens imply \n\n\\[\\triangle BTC\\cong \\triangle DTE,\\qquad \\mathrm{and}\\qquad \\triangle BTY\\cong \\triangle ETX.\\] \n\nDefine \\(K = \\overline{CT} \\cap \\overline{AE}\\) , \\(L = \\overline{DT} \\cap \\overline{AB}\\) , \\(X = \\overline{BT} \\cap \\overline{AE}\\) , \\(Y = \\overline{ET} \\cap \\overline{BY}\\) . \n\n\n \n\nClaim (Main claim) — We have \n\n\\[\\triangle BTQ \\sim \\triangle ETS, \\qquad \\text{and} \\qquad BY: YL: LQ = EX: XK: KS.\\]\n\n\n\nIn other words, \\(TBYLQ \\sim TEXKS\\) . \n\nProof. We know \\(\\triangle BTY \\sim \\triangle ETX\\) . Also, \\(\\triangle BTL = \\triangle BTD = \\triangle CTE = \\triangle KTE\\) and \\(\\triangle BTQ = \\triangle BTC = \\triangle DTE = \\triangle STE\\) . \\(\\square\\) \n\nIt follows from the claim that: \n\n\\(\\cdot \\mathit{T L} / \\mathit{T Q} = \\mathit{T K} / \\mathit{T S}\\) , ergo \\(T L\\cdot T S = T K\\cdot T Q\\) , so \\(K L S Q\\) is cyclic; and \n\n\\(\\cdot \\mathit{T C} / \\mathit{T K} = \\mathit{T E} / \\mathit{T K} = \\mathit{T B} / \\mathit{T L} = \\mathit{T D} / \\mathit{T L}\\) , so \\(\\overline{{K L}}\\parallel \\overline{{P C D R}}\\) \n\nWith these two bullets, we're done by Reim theorem.", "metadata": {"resource_path": "IMO/segmented/en-IMO-2022-notes.jsonl", "problem_match": "4. ", "solution_match": "## \\(\\S 2.1\\) IMO 2022/4, proposed by Patrik Bak (SVK) \n"}} |
| {"year": "2022", "tier": "T0", "problem_label": "5", "problem_type": null, "exam": "IMO", "problem": "Find all triples \\((a,b,p)\\) of positive integers with \\(p\\) prime and \n\n\\[a^{p} = b! + p.\\]", "solution": "The answer is \\((2,2,2)\\) and \\((3,4,3)\\) only, which work. \n\nIn what follows we assume \\(a\\geq 2\\) \n\nClaim — We have \\(b\\leq 2p - 2\\) , and hence \\(a< p^{2}\\) \n\nProof. For the first half, assume first for contradiction that \\(b\\geq 2p\\) . Then \\(b! + p\\equiv p\\) (mod \\(p^{2}\\) ), so \\(\\nu_{p}(b! + p) = 1\\) , but \\(\\nu_{p}(a^{p}) = 1\\) never occurs. \n\nWe can also rule out \\(b = 2p - 1\\) since that would give \n\n\\[(2p - 1)! + p = p[(p - 1)!(p + 1)(p + 2)\\dots (2p - 1) + 1]\\] \n\nBy Wilson theorem the inner bracket is \\((- 1)^{2} + 1\\equiv 2\\) (mod \\(p\\) ) exactly, contradiction for \\(p > 2\\) . And when \\(p = 2\\) , \\(3! + 2 = 8\\) is not a perfect square. \n\nThe second half follows as \\(a^{p}\\leq (2p - 2)! + p< p^{2p}\\) . (Here we used the crude estimate \\((2p - 2)! = \\prod_{k = 1}^{p - 1}k\\cdot (2p - 1 - k)< (p(p - 1))^{p - 1})\\) . \\(\\square\\) \n\nClaim — We have \\(a\\geq p\\) , and hence \\(b\\geq p\\) \n\nProof. For the first half, assume for contradiction that \\(p > a\\) . Then \n\n\\[b! + p = a^{p}\\geq a^{p - 1} + p\\geq a^{a} + p > a! + p\\Rightarrow b > a.\\] \n\nThen taking modulo \\(a\\) now gives \\(0\\equiv 0 + p\\) (mod \\(a\\) ), which is obviously impossible. \n\nThe second half follows from \\(b! = a^{p} - p\\geq p! - p > (p - 1)!\\) . \\(\\square\\) \n\nClaim — We have \\(a = p\\) exactly. \n\nProof. We know \\(p\\geq b\\) hence \\(p\\mid b! + p\\) , so let \\(a = pk\\) for \\(k< p\\) . Then \\(k\\mid b!\\) yet \\(k\\nmid a^{p} - p\\) contradiction. \\(\\square\\) \n\nLet's get the small \\(p\\) out of the way: \n\n- For \\(p = 2\\) , checking \\(2\\leq b\\leq 3\\) gives \\((a,b) = (2,2)\\) only. \n\n- For \\(p = 3\\) , checking \\(3\\leq b\\leq 5\\) gives \\((a,b) = (3,4)\\) only. \n\nOnce \\(p\\geq 5\\) , if \\(b! = p^{p} - p = p(p^{p - 1} - 1)\\) then applying Zsigmondy gets a prime factor \\(q\\equiv 1\\) (mod \\(p - 1\\) ) which divides \\(p^{p - 1} - 1\\) . Yet \\(q\\leq b\\leq 2p - 2\\) and \\(q\\neq p\\) , contradiction.", "metadata": {"resource_path": "IMO/segmented/en-IMO-2022-notes.jsonl", "problem_match": "5. ", "solution_match": "## \\(\\S 2.2\\) IMO 2022/5, proposed by Tijs Buggenhout (BEL) \n"}} |
| {"year": "2022", "tier": "T0", "problem_label": "6", "problem_type": null, "exam": "IMO", "problem": "Let \\(n\\) be a positive integer. A Nordic square is an \\(n\\times n\\) board containing all the integers from 1 to \\(n^{2}\\) so that each cell contains exactly one number. An uphill path is a sequence of one or more cells such that: \n\na) the first cell in the sequence is a valley, meaning the number written is less than all its orthogonal neighbors, \nb) each subsequent cell in the sequence is orthogonally adjacent to the previous cell, and \nc) the numbers written in the cells in the sequence are in increasing order. \n\nFind, as a function of \\(n\\) , the smallest possible total number of uphill paths in a Nordic square.", "solution": "Lre. \n\nAnswer: \\(2n^{2} - 2n + 1\\) \n\nBound. The lower bound is the \"obvious\" one: \n\n- For any pair of adjacent cells, say \\(a > b\\) , one can extend it to a downhill path (the reverse of an uphill path) by walking downwards until one reaches a valley. This gives \\(2n(n - 1) = 2n^{2} - 2n\\) uphill paths of length \\(\\geq 2\\) . \n\n- There is always at least one uphill path of length 1, namely the single cell \\(\\{1\\}\\) (or indeed any valley). \n\nConstruction. For the construction, the ideas it build a tree \\(T\\) on the grid such that no two cells not in \\(T\\) are adjacent. \n\nAn example of such a grid is shown below for \\(n = 15\\) with \\(T\\) in yellow and cells not in \\(T\\) in black; it generalizes to any \\(3\\mid n\\) , and then to any \\(n\\) by deleting the last \\(n\\) mod 3 rows and either/both of the leftmost/rightmost column.\n\n\n\n\n<table><tr><td>1</td><td>2</td><td>3</td><td>32</td><td></td><td>36</td><td>62</td><td>63</td><td>64</td><td>93</td><td></td><td>97</td><td>123</td><td>124</td><td>125</td></tr><tr><td></td><td>4</td><td></td><td>33</td><td>34</td><td>35</td><td></td><td>65</td><td></td><td>94</td><td>95</td><td>96</td><td></td><td>126</td><td></td></tr><tr><td>6</td><td>5</td><td>7</td><td></td><td>37</td><td></td><td>67</td><td>66</td><td>68</td><td></td><td>98</td><td></td><td>128</td><td>127</td><td>129</td></tr><tr><td></td><td>8</td><td></td><td>39</td><td>38</td><td>40</td><td></td><td>69</td><td></td><td>100</td><td>99</td><td>101</td><td></td><td>130</td><td></td></tr><tr><td>10</td><td>9</td><td>11</td><td></td><td>41</td><td></td><td>71</td><td>70</td><td>72</td><td></td><td>102</td><td></td><td>132</td><td>131</td><td>133</td></tr><tr><td></td><td>12</td><td></td><td>43</td><td>42</td><td>44</td><td></td><td>73</td><td></td><td>104</td><td>103</td><td>105</td><td></td><td>134</td><td></td></tr><tr><td>14</td><td>13</td><td>15</td><td></td><td>45</td><td></td><td>75</td><td>74</td><td>76</td><td></td><td>106</td><td></td><td>136</td><td>135</td><td>137</td></tr><tr><td></td><td>16</td><td></td><td>47</td><td>46</td><td>48</td><td></td><td>77</td><td></td><td>108</td><td>107</td><td>109</td><td></td><td>138</td><td></td></tr><tr><td>18</td><td>17</td><td>19</td><td></td><td>49</td><td></td><td>79</td><td>78</td><td>80</td><td></td><td>110</td><td></td><td>140</td><td>139</td><td>141</td></tr><tr><td></td><td>20</td><td></td><td>51</td><td>50</td><td>52</td><td></td><td>81</td><td></td><td>112</td><td>111</td><td>113</td><td></td><td>142</td><td></td></tr><tr><td>22</td><td>21</td><td>23</td><td></td><td>53</td><td></td><td>83</td><td>82</td><td>84</td><td></td><td>114</td><td></td><td>144</td><td>143</td><td>145</td></tr><tr><td></td><td>24</td><td></td><td>55</td><td>54</td><td>56</td><td></td><td>85</td><td></td><td>116</td><td>115</td><td>117</td><td></td><td>146</td><td></td></tr><tr><td>26</td><td>25</td><td>27</td><td></td><td>57</td><td></td><td>87</td><td>86</td><td>88</td><td></td><td>118</td><td></td><td>148</td><td>147</td><td>149</td></tr><tr><td></td><td>28</td><td></td><td>59</td><td>58</td><td>60</td><td></td><td>89</td><td></td><td>120</td><td>119</td><td>121</td><td></td><td>150</td><td></td></tr><tr><td>30</td><td>29</td><td>31</td><td></td><td>61</td><td></td><td>91</td><td>90</td><td>92</td><td></td><td>122</td><td></td><td>152</td><td>151</td><td>153</td></tr></table> \n\nPlace 1 anywhere in \\(T\\) and then place all the small numbers at most \\(|T|\\) adjacent to previously placed numbers (example above). Then place the remaining numbers outside \\(T\\) arbitrarily. \n\nBy construction, as 1 is the only valley, any uphill path must start from 1. And by construction, it may only reach a given pair of terminal cells in one way, i.e. the downhill paths we mentioned are the only one. End proof.", "metadata": {"resource_path": "IMO/segmented/en-IMO-2022-notes.jsonl", "problem_match": "6. ", "solution_match": "## \\(\\S 2.3\\) IMO 2022/6, proposed by Nikola Petrovic (SRB) \n"}} |
|
|