Exercise · ZW-GREATEST-COMMON-DIVISOR-009 · ★★★ Advanced

How many integers \(n\) with \(1\le n\le100\) satisfy \(\gcd(n,100)=1\)?

Choose one option.

Show answer
  • C. 40

Explanation

Since \(100=2^2\cdot5^2\), we must avoid evens and multiples of 5: \(100-50-20+10=40\).

Study Discrete mathematics in ZWMath →

Review the concept: Greatest common divisor

The greatest common divisor \(\gcd(a,b)\) of two integers \(a\) and \(b\), not both zero, is the largest integer that divides both.

\[\gcd(a,b)=\max\{d\in\mathbb{Z}:\ d\mid a,\ d\mid b\}\]

More practice problems: greatest common divisor

← ZW-GREATEST-COMMON-DIVISOR-008 ZW-GREATEST-COMMON-DIVISOR-010 →