Exercise · ZW-EULER-S-TOTIENT-FUNCTION-005 · ★★☆ Intermediate

For which of these \(n\) does \(\varphi(n)=n-1\) hold?

Choose one option.

Show answer
  • A. 29

Explanation

The equality requires every integer from 1 to \(n-1\) to be coprime to \(n\), which happens only when \(n\) is prime; 29 is prime, while \(\varphi(15)=8\), \(\varphi(21)=12\) and \(\varphi(25)=20\).

Study Elementary number theory in ZWMath →

Review the concept: Euler's totient function

Euler's totient function \(\varphi\) assigns to each positive integer \(n\) the number of integers between 1 and \(n\) that are coprime to \(n\).

\[\varphi(n)=n\prod_{p\mid n}\left(1-\frac{1}{p}\right)\]

More practice problems: euler's totient function

← ZW-EULER-S-TOTIENT-FUNCTION-004 ZW-EULER-S-TOTIENT-FUNCTION-006 →