Difference between revisions of "2007 USAMO Problems/Problem 1"
Jschroeder (talk | contribs) (→Problem) |
Sneekifnyt1 (talk | contribs) (→Solutions) |
||
Line 50: | Line 50: | ||
and yields | and yields | ||
<cmath>s_{m+i} = s_m + i(m - 1) = m(m - 1) + i(m - 1) = (m + i)(m - 1).</cmath> | <cmath>s_{m+i} = s_m + i(m - 1) = m(m - 1) + i(m - 1) = (m + i)(m - 1).</cmath> | ||
+ | |||
+ | |||
+ | |||
+ | ===Solution 5=== | ||
+ | |||
+ | |||
+ | Let <math>S_k =\sum_{i=1}^k a_i</math>, where <math>S_k \equiv 0 \pmod{k}</math> and <math>0 \leq a_k < k</math>. Define <math>m_k = S_k / k</math>, with <math>m_1 = n</math>. | ||
+ | |||
+ | First, for <math>k > 1</math>, since <math>S_{k-1} = (k-1) \cdot m_{k-1}</math> and <math>S_k = S_{k-1} + a_k</math>, we need <math>S_k \equiv 0 \pmod{k}</math>. Set <math>a_k \equiv m_{k-1} \pmod{k}</math>. Then, | ||
+ | |||
+ | <math>S_k \bmod k \equiv \bigl((k-1) \cdot m_{k-1} + (m_{k-1} \bmod k)\bigr) \pmod{k}</math>. | ||
+ | Since <math>(k-1) \cdot m_{k-1} \equiv -m_{k-1} \pmod{k}</math>, and <math>-m_{k-1} + (m_{k-1} \bmod k) \equiv 0 \pmod{k}</math>, this holds. | ||
+ | |||
+ | Next, compute <math>m_k = S_k / k = \bigl((k-1) \cdot m_{k-1} + a_k\bigr) / k</math>. | ||
+ | If <math>m_{k-1} \geq k</math>, let <math>m_{k-1} = qk + r</math> with <math>0 \leq r < k</math>, so <math>a_k = r</math>, and | ||
+ | <math>m_k = \frac{(k-1) \cdot m_{k-1} + r}{k} < m_{k-1}</math>, | ||
+ | so <math>m_k < m_{k-1}</math>. Moreover, so long as <math>m_{k-1} \geq k</math> then <math>m_{i}</math> is strictly decreasing while <math>k</math> is strictly increasing, until <math>m_{i} \leq k</math>, in which case the sequence terminates as <math>m_{k-1} = m_{k}</math> | ||
+ | |||
==Solution 5(like solution 2)== | ==Solution 5(like solution 2)== | ||
First, we may make an observation and say that for <math>n \equiv p (mod k)</math>, <math>\sum_{m=2}^{k} a_m \equiv k-p (mod k)</math> must occur for the whole sum to be divisible by <math>k</math>. Thus, the following is apparent: | First, we may make an observation and say that for <math>n \equiv p (mod k)</math>, <math>\sum_{m=2}^{k} a_m \equiv k-p (mod k)</math> must occur for the whole sum to be divisible by <math>k</math>. Thus, the following is apparent: |
Revision as of 01:04, 9 October 2025
Contents
Problem
(Sam Vandervelde) Let be a positive integer. Define a sequence by setting
and, for each
, letting
be the unique integer in the range
for which
is divisible by
. For instance, when
the obtained sequence is
. Prove that for any
the sequence
eventually becomes constant.
Solutions
Solution 1
Let and
. Thus, because
,
, and by definition,
. Thus,
. Also, both
and
are integers, so
. As the
's form a non-increasing sequence of positive integers, they must eventually become constant.
Therefore, for some sufficiently large value of
. Then
, so eventually the sequence
becomes constant.
Solution 2
Let . Since
, we have that
Since
for some integer
, we can keep adding
to satisfy the conditions, provided that
. This is true since
, so the sequence must eventually become constant.
Solution 3
Define , and
. By the problem hypothesis,
is an integer valued sequence.
Lemma: There exists a such that
.
Proof: Choose any such that
. Then
as desired.
End Lemma
Let be the smallest
such that
. Then
, and
. To make
an integer,
must be divisible by
. Thus, because
is divisible by
,
, and, because
,
. Then
as well. Repeating the same process using
instead of
gives
, and an easy induction can prove that for all
,
. Thus,
becomes a constant function for arbitrarily large values of
.
Solution 4
For , let
We claim that for some
we have
. To this end, consider the sequence which computes the differences between
and
, i.e., whose
-th term is
. Note that the first term of this sequence is positive (it is equal to
) and that its terms are strictly decreasing since
Further, a negative term cannot immediately follow a positive term. Suppose otherwise, namely that
and
. Since
and
are divisible by
and
, respectively, we can tighten the above inequalities to
and
. But this would imply that
, a contradiction. We conclude that the sequence of differences must eventually include a term equal to zero.
Let be a positive integer such that
. We claim that
This follows from the fact that the sequence
is uniquely determined and choosing
, for
, satisfies the range condition
and yields
Solution 5
Let , where
and
. Define
, with
.
First, for , since
and
, we need
. Set
. Then,
.
Since
, and
, this holds.
Next, compute .
If
, let
with
, so
, and
,
so
. Moreover, so long as
then
is strictly decreasing while
is strictly increasing, until
, in which case the sequence terminates as
Solution 5(like solution 2)
First, we may make an observation and say that for ,
must occur for the whole sum to be divisible by
. Thus, the following is apparent:
Then, we may make another observation that when
, the sum also has to be divisible by n. We may then explore when n=k:
and
Then,
Also,
for
. This is because:
This must be true since
will be divisible by
and
, we may then generalize this to all
Thus, we may say that the sequence
must converge to some integer value
when
.
Alternate solutions are always welcome. If you have a different, elegant solution to this problem, please add it to this page.
See also
- <url>viewtopic.php?t=145842 Discussion on AoPS/MathLinks</url>
2007 USAMO (Problems • Resources) | ||
Preceded by First Question |
Followed by Problem 2 | |
1 • 2 • 3 • 4 • 5 • 6 | ||
All USAMO Problems and Solutions |
These problems are copyrighted © by the Mathematical Association of America, as part of the American Mathematics Competitions.