MathDB
Are the following function multiplicative?

Source: ISI(BS) 2005 #8

June 23, 2012
functionabsolute valuealgebra proposedalgebra

Problem Statement

A function f(n)f(n) is defined on the set of positive integers is said to be multiplicative if f(mn)=f(m)f(n)f(mn)=f(m)f(n) whenever mm and nn have no common factors greater than 11. Are the following functions multiplicative? Justify your answer.
(a) g(n)=5kg(n)=5^k where kk is the number of distinct primes which divide nn.
(b) h(n)={0if n is divisible by k2 for some integer k>11otherwiseh(n)=\begin{cases} 0 & \text{if} \ n \ \text{is divisible by} \ k^2 \ \text{for some integer} \ k>1 \\ 1 & \text{otherwise} \end{cases}