Olympiad Maths Prep

Track / Stage 5 / 67 of 400 #667 of 2000

Problem 667

AIME late
Number theory Difficulty 5.2 Find the answer

For each positive integer nn, an non-negative integer f(n)f(n) is associated in such a way that the following three rules are satisfied:
i) f(ab)=f(a)+f(b)f(a b)=f(a)+f(b).

ii) f(n)=0f(n)=0 if nn is a prime greater than 10.

iii) f(1)<f(243)<f(2)<11f(1)<f(243)<f(2)<11.

Knowing that f(2106)<11f(2106)<11, determine the value of f(96)f(96).

Official solution

Solution

By property ii), we have f(243)=f(35)=5f(3)f(243)=f\left(3^{5}\right)=5 f(3). Given that

0f(1)<5f(3)<f(2)<11 0 \leq f(1)<5 f(3)<f(2)<11

and that 5f(3)5 f(3) is a multiple of 5, we have 5f(3)=55 f(3)=5, that is, f(3)=1f(3)=1. Note that 2106=234132106=2 \cdot 3^{4} \cdot 13. Thus, by property ii),

f(2106)=f(2)+4f(3)+f(13)=f(2)+4 f(2106)=f(2)+4 f(3)+f(13)=f(2)+4

From f(2106)<11f(2106)<11, it follows that f(2)<7f(2)<7. Using ii i), we have 5<f(2)<75<f(2)<7 and thus f(2)=6f(2)=6. Therefore,

f(96)=f(325)=f(3)+5f(2)=31 f(96)=f\left(3 \cdot 2^{5}\right)=f(3)+5 f(2)=31

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.