Difference between revisions of "1993 USAMO Problems/Problem 4"

(Created page with '== Problem 4== Let <math>a</math>, <math>b</math> be odd positive integers. Define the sequence <math>(f_n)</math> by putting <math>f_1 = a</math>, <math>f_2 = b</math>, and by …')
 
(Solution)
Line 9: Line 9:
 
== Solution ==
 
== Solution ==
  
Being typed up now ^v^- 07:32 PM EDT 4/22
+
<b>Part 1</b>) Prove that <math>f_n</math> is constant for sufficiently large <math>n</math>.
 +
 
 +
Note that if there is some <math>f_n=f_{n-1}</math> for any <math>n</math>, then <math>\frac{f_{n}+f_{n-1}}{2}=f_n</math>, which is odd. Thus, <math>f_{n+1}=f_n=f_{n-1}</math> and by induction, all <math>f_p</math> is constant for <math>p\ge n</math>.
 +
 
 +
Also note that <math>f_n\ge 0</math> since average of <math>2</math> positive number is always positive.
 +
 
 +
<br/>
 +
Thus, assume for contradiction, <math>_\nexists n</math>, <math>f_n=f_{n-1}</math>.
 +
 
 +
Then, <math>f_{n+1}\le\frac{f_{n}+f_{n-1}}{2}< \max (f_{n},f_{n-1})</math>, <math>f_{n+2}\le\frac{f_{n+1}+f_{n}}{2}< \max (f_{n},f_{n+1})\le\max (f_{n},f_{n-1})</math>
 +
 
 +
Thus, <math>\max (f_{n},f{n-1})> \max (f_{n+1},f_{n+2})</math> and that means that <math>\max (f_{2n},f_{2n+1})</math> is a strictly decreasing function and it must reach <math>0</math> as <math>n\rightarrow\infty</math>, which contradict with the fact that <math>f_n\ge0</math>.
 +
 
 +
<br/><b>Part 1</b> proven.
 +
 
 +
<br/>
 +
<hr/>
 +
<br/>
 +
 
 +
<b>Part 2</b>) Show that the constant is <math>\gcd(a,b)</math>.
 +
 
 +
For any <math>f_n</math> where <math>\gcd(a,b)=d\ne1</math>. <math>f_n=dg_n</math> for <math>g_n</math> with the same property except with <math>g_1=\frac{a}{d}</math> and <math>g_2=\frac{b}{d}</math>.
 +
 
 +
Therefore, if I prove that the constant for any <math>f_n</math> with relatively prime <math>a</math>, <math>b</math> is <math>1</math>, then I have shown that <b>part 2</b> is true.
 +
 
 +
<br/>
 +
<b>Lemma</b>) If <math>\gcd(f_n,f_{n-1})=1</math>, then <math>\gcd(f_n,f_{n+1})=1</math>.
 +
 
 +
Assume for contradiction that <math>\gcd(f_n,f_{n+1})=d\ne1</math>, since both <math>f_n</math> and <math>f_{n+1}</math> are odd, <math>d</math> is not divisible by <math>2</math>.
 +
 
 +
<math>f_{n+1}=\frac{f_n+f_{n-1}}{2^n}</math> for some <math>n\in \mathbb{Z}^+</math> such that <math>f_{n+1}</math> is odd.
 +
 
 +
<math>(2^n)f_{n+1}-f_n=f_{n-1}</math>
 +
 
 +
<math>d(p+q)=f_{n-1}</math>, where <math>p</math> and <math>q</math> is another integer.
 +
 
 +
Thus, <math>f_{n-1}</math> is divisible by <math>d</math> which contradicts with the assumption that <math>\gcd(f_n,f_{n-1})=1</math>.
 +
 
 +
<b>Lemma proven</b>
 +
 
 +
<br/> By induction, <math>\gcd(f_n,f_{n-1})=1</math> since <math>\gcd(a,b)=\gcd(f_1,f_2)=1</math>.
 +
 
 +
Since there must exist some <math>n</math> where <math>f_n=f_{n+1}</math> (part 1), <math>\gcd(f_n,f_{n+1})=f_n=1</math>.
 +
 
 +
<P align="right"><math>\mathbb{Q.E.D}</math></P>
  
 
== Resources ==
 
== Resources ==

Revision as of 19:52, 22 April 2010

Problem 4

Let $a$, $b$ be odd positive integers. Define the sequence $(f_n)$ by putting $f_1 = a$, $f_2 = b$, and by letting fn for $n\ge3$ be the greatest odd divisor of $f_{n-1} + f_{n-2}$. Show that $f_n$ is constant for $n$ sufficiently large and determine the eventual value as a function of $a$ and $b$.


Solution

Part 1) Prove that $f_n$ is constant for sufficiently large $n$.

Note that if there is some $f_n=f_{n-1}$ for any $n$, then $\frac{f_{n}+f_{n-1}}{2}=f_n$, which is odd. Thus, $f_{n+1}=f_n=f_{n-1}$ and by induction, all $f_p$ is constant for $p\ge n$.

Also note that $f_n\ge 0$ since average of $2$ positive number is always positive.


Thus, assume for contradiction, $_\nexists n$, $f_n=f_{n-1}$.

Then, $f_{n+1}\le\frac{f_{n}+f_{n-1}}{2}< \max (f_{n},f_{n-1})$, $f_{n+2}\le\frac{f_{n+1}+f_{n}}{2}< \max (f_{n},f_{n+1})\le\max (f_{n},f_{n-1})$

Thus, $\max (f_{n},f{n-1})> \max (f_{n+1},f_{n+2})$ and that means that $\max (f_{2n},f_{2n+1})$ is a strictly decreasing function and it must reach $0$ as $n\rightarrow\infty$, which contradict with the fact that $f_n\ge0$.


Part 1 proven.




Part 2) Show that the constant is $\gcd(a,b)$.

For any $f_n$ where $\gcd(a,b)=d\ne1$. $f_n=dg_n$ for $g_n$ with the same property except with $g_1=\frac{a}{d}$ and $g_2=\frac{b}{d}$.

Therefore, if I prove that the constant for any $f_n$ with relatively prime $a$, $b$ is $1$, then I have shown that part 2 is true.


Lemma) If $\gcd(f_n,f_{n-1})=1$, then $\gcd(f_n,f_{n+1})=1$.

Assume for contradiction that $\gcd(f_n,f_{n+1})=d\ne1$, since both $f_n$ and $f_{n+1}$ are odd, $d$ is not divisible by $2$.

$f_{n+1}=\frac{f_n+f_{n-1}}{2^n}$ for some $n\in \mathbb{Z}^+$ such that $f_{n+1}$ is odd.

$(2^n)f_{n+1}-f_n=f_{n-1}$

$d(p+q)=f_{n-1}$, where $p$ and $q$ is another integer.

Thus, $f_{n-1}$ is divisible by $d$ which contradicts with the assumption that $\gcd(f_n,f_{n-1})=1$.

Lemma proven


By induction, $\gcd(f_n,f_{n-1})=1$ since $\gcd(a,b)=\gcd(f_1,f_2)=1$.

Since there must exist some $n$ where $f_n=f_{n+1}$ (part 1), $\gcd(f_n,f_{n+1})=f_n=1$.

$\mathbb{Q.E.D}$

Resources

1993 USAMO (ProblemsResources)
Preceded by
Problem 3
Followed by
Problem 5
1 2 3 4 5
All USAMO Problems and Solutions