%% Multiplicative Property of Euler Phi Function
% Compute the Euler phi function \phi(n) for the integer n=35.

p = eulerPhi(35)

% The Euler phi function satisfies the multiplicative property \phi(xy) = \phi(x)\;\phi(y) if the two integers x and y are relatively prime (also known as coprime). The integer factorization of 35 is 7 and 5, which are relatively prime. Show that \phi(35) satisfies the multiplicative property.
% Calculate \phi(x) and \phi(y) for the two factors.

px = eulerPhi(7)
py = eulerPhi(5)

% Verify that px and py satisfy the multiplicative property.

p = px*py

%
% Copyright 2019 The MathWorks, Inc.