Problem:
Let be a function satisfying the following three conditions for all positive integers :
(a) is a positive integer,
(b) ,
(c) .
Find .
Solutions — 2
Solution 1
Solution:
We will show that must equal . We start by proving a lemma which gives us some of the values of .
Lemma: For ,
(a) ; and
(b) .
Proof: We use induction. For , note that , otherwise , which is impossible. Since is a positive integer for all positive integers , we conclude that . Since , is increasing. Thus or . Hence .
Suppose that for some positive integer ,
Then,
and
as desired. This completes the induction, and establishes the lemma.
Continuing with our solution, there are integers such that and there are integers such that
Since is an increasing function,
for . Therefore
for . Hence
Solution 2
Solution:
(Sketch) Andrew Dudzik's insight was to recognize that deals in a very simple way, with the base-3 representation of . Let be the base-3 digits of . For example, if in base 10, we would write in base 3 and hence . Dudzik proved the following:
1. If , then .
2. If , then
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 . In base-3 notation, is equal to . Thus, by formula #2,
and this equals in base-10 notation.