Maths Olympiad Prep

Library / /23 of 86

Algebra Difficulty 6.1 National Olympiad Prove it United States

Problem:
Let f(n)f(n) be a function satisfying the following three conditions for all positive integers nn:
(a) f(n)f(n) is a positive integer,
(b) f(n+1)>f(n)f(n+1) > f(n),
(c) f(f(n))=3nf(f(n)) = 3n.
Find f(2001)f(2001).

Solutions — 2

Solution 1

Solution:
We will show that f(2001)f(2001) must equal 38163816. We start by proving a lemma which gives us some of the values of f(n)f(n).

Lemma: For n=0,1,2,n = 0, 1, 2, \ldots,
(a) f(3n)=23nf\left(3^{n}\right) = 2 \cdot 3^{n}; and
(b) f(23n)=3n+1f\left(2 \cdot 3^{n}\right) = 3^{n+1}.

Proof: We use induction. For n=0n = 0, note that f(1)1f(1) \neq 1, otherwise 3=f(f(1))=f(1)=13 = f(f(1)) = f(1) = 1, which is impossible. Since f(k)f(k) is a positive integer for all positive integers kk, we conclude that f(1)>1f(1) > 1. Since f(n+1)>f(n)f(n+1) > f(n), ff is increasing. Thus 1<f(1)<f(f(1))=31 < f(1) < f(f(1)) = 3 or f(1)=2f(1) = 2. Hence f(2)=f(f(1))=3f(2) = f(f(1)) = 3.

Suppose that for some positive integer n1n \geq 1,
f(3n)=23n and f(23n)=3n+1 f\left(3^{n}\right) = 2 \cdot 3^{n} \text{ and } f\left(2 \cdot 3^{n}\right) = 3^{n+1}
Then,
f(3n+1)=f(f(23n))=23n+1 f\left(3^{n+1}\right) = f\left(f\left(2 \cdot 3^{n}\right)\right) = 2 \cdot 3^{n+1}
and
f(23n+1)=f(f(3n+1))=3n+2 f\left(2 \cdot 3^{n+1}\right) = f\left(f\left(3^{n+1}\right)\right) = 3^{n+2}
as desired. This completes the induction, and establishes the lemma.

Continuing with our solution, there are 3n13^{n} - 1 integers mm such that 3n<m<23n3^{n} < m < 2 \cdot 3^{n} and there are 3n13^{n} - 1 integers mm' such that
f(3n)=23n<m<3n+1=f(23n). f\left(3^{n}\right) = 2 \cdot 3^{n} < m' < 3^{n+1} = f\left(2 \cdot 3^{n}\right).
Since ff is an increasing function,
f(3n+m)=23n+m f\left(3^{n} + m\right) = 2 \cdot 3^{n} + m
for 0m3n0 \leq m \leq 3^{n}. Therefore
f(23n+m)=f(f(3n+m))=3(3n+m) f\left(2 \cdot 3^{n} + m\right) = f\left(f\left(3^{n} + m\right)\right) = 3\left(3^{n} + m\right)
for 0m3n0 \leq m \leq 3^{n}. Hence
f(2001)=f(236+543)=3(36+543)=3816. f(2001) = f\left(2 \cdot 3^{6} + 543\right) = 3\left(3^{6} + 543\right) = 3816.

Solution 2

Solution:
(Sketch) Andrew Dudzik's insight was to recognize that f(n)f(n) deals in a very simple way, with the base-3 representation of nn. Let n=a1a2atn = a_{1} a_{2} \cdots a_{t} be the base-3 digits of nn. For example, if n=50n = 50 in base 10, we would write n=1212n = 1212 in base 3 and hence a1=1,a2=2,a3=1,a4=2a_{1} = 1, a_{2} = 2, a_{3} = 1, a_{4} = 2. Dudzik proved the following:

1. If a1=1a_{1} = 1, then f(n)=2a2a3atf(n) = 2 a_{2} a_{3} \cdots a_{t}.
2. If a1=2a_{1} = 2, then f(n)=1a2a3at0f(n) = 1 a_{2} a_{3} \cdots a_{t} 0

These two statements can be proven easily with induction; we leave this as an exercise for the reader. Note that Dudzik's formulas allow us to immediately compute f(2001)f(2001). In base-3 notation, 20012001 is equal to 22020102202010. Thus, by formula #2,
f(2202010)=12020100=132+234+236+37, f(2202010) = 12020100 = 1 \cdot 3^{2} + 2 \cdot 3^{4} + 2 \cdot 3^{6} + 3^{7},
and this equals 38163816 in base-10 notation.

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: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.