There is a function f (n) on the positive integers n = 1, 2, 3, ...
It is defined solely by these properties:
f (n) is itself a positive integer
f is strictly increasing: f (n+1) > f (n)
applying f twice returns the argument multiplied by 3: f ( f (n) ) = 3n
Work out the values of f for the first 30 integers or so: f (1), f (2), f (3), … , f (30).
Start, of course, with 1 and 2.
When you see some patterns, find f (2015).
Credit: Recent Math Olympiad.