GATE CSE 2017 Session 1 Q57: Integers from 1 to 500 divisible by 3 or 5 or 7
- Engineering Mathematics
- 2 marks
- NAT
- No negative marking
Syllabus topic: Combinatorics: counting, recurrence relations and generating functions
Question
The number of integers between 1 and 500 (both inclusive) that are divisible by 3 or 5 or 7 is ______.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 271 (official GATE 2017 final answer key)
Concept used: Inclusion–exclusion over three sets, with counts for each divisor d (and for products of the divisors).
First step: Compute , the pairwise counts for 15, 21, 35 and the triple count for 105, then apply inclusion–exclusion.
Full step-by-step solution
Loading…
Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.
More questions on Combinatorics: counting, recurrence relations and generating functions
Every PYQ on this topic →Share this question
Source: official GATE 2017 Session 1 CS question paper and final answer key, organised by IIT Roorkee. Question paper · Answer key
More Engineering Mathematics PYQs
- 2026 Session 1 · Q11Pólya urn: equal red and blue after two steps
- 2026 Session 1 · Q124×4 binary matrices with even parity in every row and column
- 2026 Session 1 · Q13Maximum multiplicity of an eigenvalue of an n×n real matrix
- 2026 Session 1 · Q20Matrix with e2 in its null space: determinant and rank
- 2026 Session 1 · Q32Continuity at 0 of c1·e^x − c2·ln(1/x)
- 2026 Session 1 · Q46Extrema and smoothness of (|x|/2 − x)(x − |x|/2)