Difference between revisions of "1989 OIM Problems/Problem 5"

(solution)
Line 1: Line 1:
 
== Problem ==
 
== Problem ==
Let function <math>f</math> defined over set {1; 2; 3; ... }
+
Let function <math>f</math> defined over set <math>\{1,2,3,\ldots\}</math> which satisfies
  
 
(i) <math>f(1)=1</math>
 
(i) <math>f(1)=1</math>
Line 13: Line 13:
  
 
== Solution ==
 
== Solution ==
{{solution}}
+
We claim that <math>f</math> contains all values which do not include a <math>2</math> in their base <math>3</math> representation.
 +
 
 +
First, consider (iii) in base <math>3</math>. This is just adding a <math>0</math> to the right end of <math>f(n)</math>. From there, we can generate our numbers:
 +
 
 +
From every odd number (say <math>1</math>), we use (iii) to add a <math>0</math> to the right end. Then, from (ii), we can choose to either keep it the same (by not applying the property) or changing the end <math>0</math> to a <math>1</math>. Notice that this property cannot be applied twice since then <math>2n+1</math> would not be even; thus we must apply (iii) again in order to add another <math>0</math> or <math>1</math>, which repeats. As a result, we can continue to add ending digits, and we are able to decide whether they are a <math>0</math> or <math>1</math>, which are both of the two remaining legal digits. Thus we can create all values which do not include a <math>2</math> in their base <math>3</math> representation. Clearly, this also does not allow a number with a <math>2</math> in its base <math>3</math> representation; the conclusion follows.
 +
 
 +
~ [https://artofproblemsolving.com/wiki/index.php/User:Eevee9406 eevee9406]
  
 
== See also ==
 
== See also ==
 
https://www.oma.org.ar/enunciados/ibe4.htm
 
https://www.oma.org.ar/enunciados/ibe4.htm

Revision as of 02:05, 24 March 2025

Problem

Let function $f$ defined over set $\{1,2,3,\ldots\}$ which satisfies

(i) $f(1)=1$

(ii) $f(2n+1)=f(2n)+1$

(iii) $f(2n)=3f(n)$

Find the set of values of $f$.

~translated into English by Tomas Diaz. ~orders@tomasdiaz.com

Solution

We claim that $f$ contains all values which do not include a $2$ in their base $3$ representation.

First, consider (iii) in base $3$. This is just adding a $0$ to the right end of $f(n)$. From there, we can generate our numbers:

From every odd number (say $1$), we use (iii) to add a $0$ to the right end. Then, from (ii), we can choose to either keep it the same (by not applying the property) or changing the end $0$ to a $1$. Notice that this property cannot be applied twice since then $2n+1$ would not be even; thus we must apply (iii) again in order to add another $0$ or $1$, which repeats. As a result, we can continue to add ending digits, and we are able to decide whether they are a $0$ or $1$, which are both of the two remaining legal digits. Thus we can create all values which do not include a $2$ in their base $3$ representation. Clearly, this also does not allow a number with a $2$ in its base $3$ representation; the conclusion follows.

~ eevee9406

See also

https://www.oma.org.ar/enunciados/ibe4.htm