I was studying RSA when came across Euler totient function. The definition states that- it gives the number of positive values less than $n$ which are relatively prime to $n$.
I thought I had it, until I came across this property:-
Euler Totient function is multiplicative function, that is: $\varphi(mn) = \varphi(m)\varphi(n)$
Now, if $p$ is a prime number, $\varphi(p)=p-1$.
Putting values of $p$ as 11 and 13 one by one,
$$\varphi(11)=10$$
$$\varphi(13)=12$$
Applying above stated property,
$$\varphi(11\cdot 13)=\varphi(11)\varphi(13)$$
$$\varphi(143)=12 \cdot 10$$
$$\varphi(143)=120$$
Is it correct? Does that mean we have $23$ values between $1$ and $143$ which are not relatively prime to $143$? Sorry if its something basic I'm missing. I'm not some genius at maths and came across this during study of RSA Algo. Thanks.
You used it correctly, but left something out when stating multiplicativity: A number-theoretic function such as $\phi$ is called multiplicative if $\phi(nm)=\phi(n)\phi(m)$ holds if $n,m$ are relatively prime. For example $\phi(4)=2\ne\phi(2)\phi(2)$. Otherwise, your result is correct: Precisely the multiples of $11$ and the multiples of $13$ are not relatively prime to $143$, so thats $11,22,33,\ldots , 143$ and $13,26,39,\ldots,143$ (with $143$ occuring in both exception lists).