Number theoryDifficulty 7.2National olympiad, round 2Find the answer
Consider a sequence {an}n≥0 such that an+1=an−⌊an⌋(n≥0),a0≥0.
(1) If a0=24, then find the smallest n such that an=0.
(2) If a0=m2(m=2,3,⋯), then for j with 1≤j≤m, express a2j−1,a2j in terms of j,m.
(3) Let m≥2 be integer and for integer p with 1≤p≤m−1, let a\0=m2−p. Find k such that ak=(m−p)2, then find the smallest n such that an=0.
A number or a short expression. Spacing and $ signs are ignored.
Solution
### Part 1: 1. Given a0=24, we need to find the smallest n such that an=0. 2. We calculate the sequence step-by-step: a0=24,a1=a0−⌊a0⌋=24−⌊24⌋=24−4=20,a2=a1−⌊a1⌋=20−⌊20⌋=20−4=16,a3=a2−⌊a2⌋=16−⌊16⌋=16−4=12,a4=a3−⌊a3⌋=12−⌊12⌋=12−3=9,a5=a4−⌊a4⌋=9−⌊9⌋=9−3=6,a6=a5−⌊a5⌋=6−⌊6⌋=6−2=4,a7=a6−⌊a6⌋=4−⌊4⌋=4−2=2,a8=a7−⌊a7⌋=2−⌊2⌋=2−1=1,a9=a8−⌊a8⌋=1−⌊1⌋=1−1=0. 3. Therefore, the smallest n such that an=0 is 9.
### Part 2: 1. We claim that a2j=(m−j)2 for all 1≤j≤m. We will prove this by induction. 2. Base Case: a0=m2,a1=a0−⌊a0⌋=m2−m,a2=a1−⌊a1⌋=(m2−m)−(m−1)=(m−1)2. Thus, the base case holds. 3. Inductive Step: Assume a2k=(m−k)2 for some k. We need to show a2k+2=(m−k−1)2. a2k+1=a2k−⌊a2k⌋=(m−k)2−(m−k)=m2−m(2k+1)+k2+k,a2k+2=a2k+1−⌊a2k+1⌋. Since (m−k−1)2≤a2k+1≤(m−k)2, we have ⌊a2k+1⌋=m−k−1. a2k+2=a2k+1−(m−k−1)=(m2−m(2k+1)+k2+k)−(m−k−1)=m2−m(2k+2)+k2+2k+1=(m−k−1)2. Thus, the induction is complete. 4. Using the fact that a2j−2=(m−j+1)2 for all 2≤j≤m, we have: a2j−1=a2j−2−⌊a2j−2⌋=(m−j+1)2−(m−j+1)=(m−j+1)(m−j). Therefore, a2j−1=(m−j+1)(m−j) and a2j=(m−j)2.
### Part 3: 1. Let a0=m2−p. We need to find k such that ak=(m−p)2. 2. We calculate the sequence step-by-step: a0=m2−p,a1=a0−⌊a0⌋=m2−p−⌊m2−p⌋. Since ⌊m2−p⌋=m−1 (as p is small), we have: a1=m2−p−(m−1)=m2−m+1−p. 3. We continue this process until we reach (m−p)2. The sequence will eventually reach (m−p)2 after 2p steps. 4. Therefore, the smallest n such that an=0 is 2m−1.
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: NuminaMath-1.5,
licensed Apache-2.0.
Statement and solution reproduced as published; topic and difficulty added by this site.