GATE Computer ScienceHardGATE CS · ISRO
How many integers from 1 to 1000 are relatively prime to 30?
- A. 260
- B. 272
- C. 266
- D. 250
Correct answer: C. 266
Inclusion–exclusion over 2, 3 and 5: 1000 − 500 − 333 − 200 + 166 + 100 + 66 − 33 = 266.
More Discrete Mathematics questions
- How many automorphisms does the 3-dimensional hypercube graph Q₃ (8 vertices, 12 edges) have?
- A lattice path from (0, 0) to (6, 6) uses unit steps right or up and never goes above the line y = x. How many such paths are there?
- In how many ways can 10 be written as a sum of distinct positive integers, where the order of the terms does not matter?
- How many distinct Hamiltonian cycles does the complete graph K₇ contain (a cycle and its reverse are the same, and rotations are the same)?
- How many of the 32 assignments to a, b, c, d, e satisfy (a ∨ b) ∧ (¬a ∨ c) ∧ (¬b ∨ ¬c) ∧ (c ∨ d) ∧ (¬d ∨ e ∨ a)?
- How many elements of order 4 does the group Z₄ × Z₄ have?