GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many of the 2¹⁶ Boolean functions of four variables A, B, C, D depend essentially on all four variables (no variable is redundant)?

  1. A. 64594
  2. B. 64512
  3. C. 64608
  4. D. 64590

Correct answer: A. 64594

Inclusion-exclusion: 65536 − 4·2⁸ + 6·2⁴ − 4·2² + 2 = 64594. Stopping after the first correction gives 64512, after the second 64608, and a sign slip on the last term 64590.

More Digital Logic questions

Exams that ask this topic