GATE Computer ScienceHardGATE CSE

A 5-input function F(A,B,C,D,E) is 1 exactly when the unsigned number ABCDE (A is the MSB, 0 counts as divisible) is divisible by 3 or by 5. How many minterms does F have?

  1. A. 13
  2. B. 15
  3. C. 17
  4. D. 19

Correct answer: B. 15

Multiples of 3 up to 31: 11; multiples of 5: 7; multiples of 15: 3; so 11 + 7 − 3 = 15.

More Digital Logic questions

Exams that ask this topic