Maths Olympiad Prep

Library / /9 of 520

Number theory Difficulty 4.5 AIME Find the answer

The function f(n)\mathrm{f}(\mathrm{n}) is defined on the positive integers and takes non-negative integer values. It satisfies (1) f(mn)=f(m)+f(n),(2)f(n)=0f(m n)=f(m)+f(n),(2) f(n)=0 if the last digit of nn is 3, (3) f(10)=0f(10)=0. Find f(1985)\mathrm{f}(1985).

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

If f(mn)=0\mathrm{f}(\mathrm{mn})=0, then f(m)+f(n)=0\mathrm{f}(\mathrm{m})+\mathrm{f}(\mathrm{n})=0 (by (1))(1)). But f(m)\mathrm{f}(\mathrm{m}) and f(n)\mathrm{f}(\mathrm{n}) are non-negative, so f(m)=f(n)=0\mathrm{f}(\mathrm{m})=\mathrm{f}(\mathrm{n})=0. Thus f(10)=0f(10)=0 implies f(5)=0f(5)=0. Similarly f(3573)=0f(3573)=0 by (2), so f(397)=0f(397)=0. Hence f(1985)f(1985) =f(5)+f(397)=0=\mathrm{f}(5)+\mathrm{f}(397)=0.

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.