• S
    SwaseekhGATE Preparation
General
  • Dashboard
  • Syllabus
  • Questions
  • Aptitude
  • Mock Tests
  • TCS NQT 2026
Account
  • Pricing
  • Contact
  1. GATE CS
  2. PYQs
  3. General Aptitude

Consider the set of integers {1, 2, 3, ..., 5000}. The number of integers that is divisible by neither 3 nor 4 is: A. 1668 B. 2084 C. 2500 D. 2016

GATE 2010 · General Aptitude · Factors · medium

Answer: 2500 integers in {1,...,5000} are divisible by neither 3 nor 4.

  1. Count multiples of 3, 4, and 12 up to 5000: |A| = floor(5000/3) = 1666; |B| = floor(5000/4) = 1250; |A intersect B| = floor(5000/12) = 416
  2. Apply inclusion-exclusion to get |A union B|: |A union B| = 1666 + 1250 - 416 = 2500
  3. Apply complementary counting: Neither = 5000 - 2500 = 2500