GATE Computer ScienceHardGATE CSE · UGC NET
How many solutions does x² ≡ 1 (mod 120) have among the residues 0 ≤ x < 120?
- A. 8
- B. 16
- C. 4
- D. 32
Correct answer: B. 16
By CRT, 120 = 8·3·5: mod 8 there are 4 square roots of 1, mod 3 there are 2, mod 5 there are 2, so 4·2·2 = 16.
More Discrete Mathematics questions
- How many subgroups (including the trivial group and the whole group) does Z₆ × Z₆ have?
- A Boolean function f(x, y, z) is monotone if raising any input from 0 to 1 never lowers the output, and self-dual if f(x̄, ȳ, z̄) is the…
- How many pairwise non-isomorphic (unlabelled) trees exist on exactly 8 vertices?
- How many independent sets (the empty set included) does the cycle graph C₉ have?
- What is the smallest k such that every k-element subset of {1, 2, …, 40} contains two distinct elements a and b with a dividing b?
- In the complete graph K₄ a walk may repeat vertices and edges. How many closed walks of length 6 exist in total, summing over all 4…