Count 4-by-4 matrices with entries 0 or 1 in which every row and every column has an even number of ones. The offered counts include 512, 1025, 1023 and 255.
Your answer
Answer & solution
Official answer: A
Our answer: 512; option A
Givens and goal
Count 4-by-4 matrices with entries 0 or 1 in which every row and every column has an even number of ones. The offered counts include 512, 1025, 1023 and 255.
Approach
Choose an independent block freely and show that parity determines every remaining entry uniquely.
Step-by-step solution
1. Select the nine entries a_ij with 1≤i,j≤3 arbitrarily. Each is a binary choice, so there are 29 possibilities at this stage. 2. For each of the first three rows, choose ai4 as the sum of its first three entries modulo 2. If that sum is odd, append 1; if even, append 0. This forces even row parity. 3. For each of the first three columns, choose a_4j similarly from its first three entries. This forces even column parity. 4. Let p be the parity of the original 3-by-3 block. The parity of the three new bottom-row entries is p, and the parity of the three new last-column entries is also p: both count the same nine original entries. Setting a44=p therefore makes both the last row and last column even simultaneously. 5. Every initial block has exactly one completion, and different initial blocks yield different matrices. Thus the required count is 29=512, option A.
Why not 28? Although eight parity conditions are written, one is redundant: the total parity obtained by summing row parities equals that obtained by summing column parities. There are seven independent constraints on sixteen bits, leaving nine free bits.
In a simple undirected graph, the minimum vertex-cover size is k and S is any minimum cover. Which condition always forces a given vertex v into S? A deg(v)≥k+1; B v lies on a path of length k+1; C v lies on a cycle of length k+1; D v belongs to a clique of size k.
Select all that apply
Answer & solution
Official answer: A
Givens and goal
In a simple undirected graph, the minimum vertex-cover size is k and S is any minimum cover. Which condition always forces a given vertex v into S? A deg(v)≥k+1; B v lies on a path of length k+1; C v lies on a cycle of length k+1; D v belongs to a clique of size k.
Approach
Use the cost of excluding v to prove A; for each weaker structural condition construct a minimum cover that omits v.
Step-by-step solution
1. Suppose v is excluded from a vertex cover. Every edge incident to v must then be covered by its other endpoint, so all distinct neighbors of v must be included. 2. The graph is simple, so deg(v) counts those distinct neighbors. If deg(v)≥k+1, excluding v forces at least k+1 vertices into the cover, contradicting |S|=k. Hence A forces v into every minimum cover. 3. B fails on the path a—b—c—d. Its minimum cover size is k=2: the disjoint edges ab and cd require at least two vertices, and {b,c} is a cover of size two. Vertex a lies on a length-3 path, which is k+1, yet that minimum cover omits a. 4. C fails on a triangle. Here k=2 because one vertex cannot cover the opposite edge, while any two cover everything. Every vertex lies on the length-3=k+1 cycle but can be excluded by choosing the other two. 5. The same triangle refutes D: each vertex lies in a clique of size k=2 (any incident edge), but is still absent from some minimum cover. 6. Only A always suffices. Being part of a path, cycle, or clique can create a lower bound on the total cover size, but does not by itself specify which particular vertices every optimum must contain.
An undirected simple graph is 2-colorable if adjacent vertices always receive different values in {0,1}. Assess A it may contain odd cycles; B it may contain even cycles; C the standard optimal adjacency-list test is Θ(|V|+|E|); D that bound is Θ(|E|log|V|).
Select all that apply
Answer & solution
Official answer: B, C
Givens and goal
An undirected simple graph is 2-colorable if adjacent vertices always receive different values in {0,1}. Assess A it may contain odd cycles; B it may contain even cycles; C the standard optimal adjacency-list test is Θ(|V|+|E|); D that bound is Θ(|E|log|V|).
Approach
Alternate colors around a cycle and describe a full BFS/DFS coloring test across all components.
Step-by-step solution
1. Along a cycle, a proper two-colouring alternates colours on each successive edge. An odd number of alternations would require the starting vertex to have both colours. Odd cycles are therefore forbidden, making A false. 2. An even cycle can alternate colours consistently. A four-cycle is a direct example, so B is true. 3. Use BFS or DFS from every not-yet-coloured vertex, assign opposite colours across each explored edge, and reject if an edge has equally coloured endpoints. If no conflict occurs, the assignment is a valid two-colouring. Processing all components is essential for disconnected graphs. 4. With adjacency lists, each vertex is visited once and each undirected edge is examined at most twice. This is the standard worst-case Θ(|V|+|E|) traversal bound used by the question, yielding C. No sorting or priority queue is required; the claimed optimal logarithmic-factor bound in D is not the standard bound.
Complexity scope: The stated bound is the conventional full-graph adjacency-list algorithm bound. Particular inputs may be rejected earlier, for example when a conflict is found before traversal finishes.
Algorithm outline: for each uncolored vertex, assign color 0 and start a queue or stack. When traversing u—v, assign an uncolored v the opposite color to u; if v is already colored the same as u, reject. Accept only after every component has been processed. The algorithm need not enumerate cycles explicitly: an inconsistent edge supplies the contradiction automatically. Even-cycle example: vertices around a square can be colored 0,1,0,1 in order.
Let G be a path on eight vertices. Count all matchings, including the empty matching, as an integer.
Answer & solution
Official answer: 34
Givens and goal
Let G be a path on eight vertices. Count all matchings, including the empty matching, as an integer.
Approach
Split matchings according to whether the first edge is selected, obtaining a Fibonacci recurrence.
Step-by-step solution
1. Let Mn count matchings of an n-vertex path, including the empty matching. If the first vertex is unmatched, the remaining choices are any matching of the last n−1 vertices, giving Mn−1. 2. If the first vertex is matched, it must use the edge to the second vertex. No other chosen edge may touch either of those vertices, leaving a path on n−2 vertices and Mn−2 choices. 3. These cases are disjoint and exhaustive, so Mn=Mn−1+Mn−2, with M0=M1=1. The values through n=8 are 1,1,2,3,5,8,13,21,34. 4. A separate count by matching size agrees: choosing k nonadjacent edges among the seven edges gives binomial(8−k,k). Summing for k=0,1,2,3,4 yields 1+7+15+10+1=34.
Common error: The empty set is a matching and contributes one. Omitting it gives an off-by-one result.
Recurrence table
Number of vertices n: 0 1 2 3 4 5 6 7 8
Number of matchings: 1 1 2 3 5 8 13 21 34
For the separate binomial count, label the seven edges 1,…,7. A matching of size k selects indices i₁<…<ik with ij+1≥ij+2. Compress the mandatory gaps by setting jr=ir−(r−1). This becomes an ordinary k-subset of {1,…,8−k}, explaining binomial(8−k,k), rather than merely quoting that count.
M(x,y) means x knows y for distinct people. Express: one person knows nobody else but is known by everybody else. All choices use [(x≠y)→(M(x,y)∧¬M(y,x))], preceded by A ∃y∀x; B ∀y∃x; C ∃y∃x; D ∀y∀x.
Your answer
Answer & solution
Official answer: A
Givens and goal
M(x,y) means x knows y for distinct people. Express: one person knows nobody else but is known by everybody else. All choices use [(x≠y)→(M(x,y)∧¬M(y,x))], preceded by A ∃y∀x; B ∀y∃x; C ∃y∃x; D ∀y∀x.
Approach
Choose the exceptional person before ranging over all other people.
Step-by-step solution
1. Let y name the person whose existence is claimed. The phrase there is requires ∃y. Once this y is fixed, every other person x must satisfy the two knowledge conditions, requiring ∀x. 2. For x≠y, everyone else knowing y is M(x,y). The same y knowing nobody else is ¬M(y,x). Both are needed, so join them with ∧. 3. Use an implication with antecedent x≠y to exclude self-knowledge from the requirement. When x=y the antecedent is false and imposes no restriction. 4. The complete expression is ∃y∀x[(x≠y)→(M(x,y)∧¬M(y,x))], A. B and C can choose x=y and satisfy the implication vacuously; they do not require all other people to know y. D incorrectly asserts the special property of every y, rather than at least one.
On {1,…,10}, define xRy when xy is an integer square. Select all valid properties: A reflexive; B symmetric; C transitive; D antisymmetric.
Select all that apply
Answer & solution
Official answer: A, B, C
Givens and goal
On {1,…,10}, define xRy when xy is an integer square. Select all valid properties: A reflexive; B symmetric; C transitive; D antisymmetric.
Approach
Characterize each integer by the parity of its prime exponents.
Step-by-step solution
1. For every x, x·x=x² is a square; hence xRx and the relation is reflexive. If xy is a square, yx is the same product, proving symmetry. 2. For a prime p, let ep(x) be its exponent in x. The product xy is a square precisely when ep(x)+ep(y) is even for every p, equivalently when the two exponent parities agree for every p. 3. If xRy and yRz, the parity vector of x equals that of y and that of y equals that of z. Consequently x and z have equal parity vectors, so xz is square. This proves transitivity without assuming that a quotient of squares is automatically an integer square. 4. Antisymmetry would require x=y whenever both xRy and yRx. But 1 and 4 are distinct elements and 1×4=4 is square in both directions. 5. Thus A,B,C hold and D does not. The equivalence classes are {1,4,9}, {2,8}, {3}, {5}, {6}, {7}, {10}, providing a direct finite check.
Edge-disjoint spanning trees and Jaccard similarity
Trees & Connectivity
Tap to enlarge
For the complete graph K_n with n>4, represent spanning trees by their edge sets. Jaccard similarity is |T1∩T2|/|T1∪T2|. Find the minimum possible value: A 1/n; B 1/(2n−3); C 0; D 1/(n−1).
Your answer
Answer & solution
Official answer: C
Givens and goal
For the complete graph Kn with n>4, represent spanning trees by their edge sets. Jaccard similarity is |T1∩T2|/|T1∪T2|. Find the minimum possible value: A 1/n; B 1/(2n−3); C 0; D 1/(n−1).
Approach
Prove a lower bound and construct two trees attaining it.
Step-by-step solution
1. Cardinalities are nonnegative and the union of spanning trees is nonempty, so Jaccard similarity cannot be below 0. To attain 0 we need trees sharing no edge. 2. Label vertices 1,…,n. Choose T1 as the path 1−2−3−…−n, with edge set {(i,i+1):1≤i<n}. It is connected and has n−1 edges. 3. Choose T2 with edges {(1,j):3≤j≤n} together with (2,4). Vertices 1,3,…,n are connected through vertex 1, and vertex 2 joins through 4. There are (n−2)+1=n−1 edges; a connected graph on n vertices with n−1 edges is a tree. 4. No edge (1,j) for j≥3 is a consecutive-vertex edge of T1, and (2,4) is not consecutive either. Thus the two edge sets are disjoint, although they have the same vertex set. 5. The intersection has size 0 and the union size 2n−2, giving 0/(2n−2)=0. This attains the lower bound, so C. The completeness of Kn guarantees all constructed edges exist.
Let g:A→B and f:B→C. Both f and f∘g are surjective. Which property must g have? A surjective; B injective; C bijective; D neither injectivity nor surjectivity is required.
Your answer
Answer & solution
Official answer: D
Approach: Determine whether hitting every point of C requires hitting every point of B. Different points of B can share the same image under f, so it need not. Construct a counterexample: A={1,2}, B={u,v}, C={w}. Define g(1)=g(2)=u and f(u)=f(v)=w. The function f is onto C because w has a preimage. The composition sends both elements of A to w, so it is also onto C. However g is not injective, because its two inputs share the output u, and is not onto B, because v is missed. This single example refutes the necessary-property claims in A, B and C and establishes D. Conceptually, g only needs to hit enough points of B to cover all f-fibres over C. The conclusion would differ if extra assumptions, such as injectivity of f, were supplied; none is supplied here.
Over alphabet {a,b,c}, count the length-five strings containing at least one adjacent equal pair aa, bb or cc.
Answer & solution
Official answer: 195
Approach: Count the complement, because counting each repeated-pair position directly would count some strings multiple times. There are three choices independently at each of five positions, so there are 35=243 strings in total. A string with no equal adjacent symbols has 3 choices for its first symbol. At each of its remaining four positions, the immediately previous symbol is forbidden and the other two are allowed. This gives 3×24=48 strings without adjacent repeats. Every string either has an adjacent equal pair or has none, and these categories are disjoint. Subtracting the latter from the total gives 243−48=195. For example aaaaa has four repeated-adjacency positions, but it must count as just one string. Complement counting handles such overlaps automatically. The condition is “at least one”, so strings with two, three or four equal adjacent pairs all remain included in 195.
mother(y,x) means y is x’s mother; noteq(x,y) means x≠y. Which formulae express that everyone has exactly one mother? A ∀x∃y∃z(mother(y,x) ∧ ¬mother(z,x)); B ∀x∃y[mother(y,x) ∧ ∀z(noteq(z,y)→¬mother(z,x))]; C ∀x∀y[mother(y,x)→∃z(mother(z,x)∧¬noteq(z,y))]; D ∀x∃y[mother(y,x) ∧ ¬∃z(noteq(z,y)∧mother(z,x))].
Select all that apply
Answer & solution
Official answer: B, D
Approach: “Exactly one” requires both existence and uniqueness for each x. B first supplies a witness y with mother(y,x). Its universal clause says every z different from y is not a mother of x, which excludes all second mothers. Hence B expresses both requirements. D has the same existence clause and says there is no different z that is also a mother. By negating an existential conjunction, that uniqueness clause is equivalent to B’s universal implication. Thus D is also correct. A only supplies one mother and one nonmother. It allows two or more mothers as long as somebody is not a mother, so it does not enforce uniqueness. C says that if y is a mother, an equal mother z exists; choosing z=y always satisfies it. It imposes no uniqueness and, when no mothers exist, is vacuously true, so it does not even enforce existence. Therefore choose B,D. The location of the quantifiers and the difference between a universal exclusion and one existential nonexample are decisive.
Let A={0,1,2,…} and F be all functions A→A. Define (f1⊙f2)(n)=f1(n)+f2(n) for every n. Classify (F,⊙): A Abelian group; B Abelian monoid; C non-Abelian group; D non-Abelian monoid.
Select all that apply
Answer & solution
Official answer: B
Approach: Check closure, associativity, identity, commutativity and inverses separately. The operation is pointwise addition, not function composition. For any n, the sum of two non-negative integers is non-negative, so f1⊙f2 is again a function A→A: closure holds. Ordinary addition is associative, so evaluating either (f1⊙f2)⊙f3 or f1⊙(f2⊙f3) at n gives the same sum of three values. The identically zero function e(n)=0 acts as a two-sided identity. Addition is commutative at every n, so the function operation is commutative. These facts make an Abelian monoid. To be a group every function would need an inverse in F. The constant function f(n)=1 would require an inverse g(n)=−1 for all n to obtain zero. Such a g does not map A to A. Therefore inverses do not exist for all elements and the structure is not a group. Select B; A and C fail the inverse requirement, and D fails commutativity.
P(x) is any predicate on the natural numbers, with 0 included. Which implication is valid for every P? A. [P(0) and ∀x(P(x)⇒P(x+1))] ⇒ ∀x P(x). B. [P(0) and ∀x(P(x)⇒P(x−1))] ⇒ ∀x P(x). C. [P(1000) and ∀x(P(x)⇒P(x−1))] ⇒ ∀x P(x). D. [P(1000) and ∀x(P(x)⇒P(x+1))] ⇒ ∀x P(x). For downward steps, interpret the implication only where x−1 is in the domain.
Your answer
Answer & solution
Official answer: A
A is the induction principle. P(0) supplies the first case. The upward step gives P(1) from P(0), then P(2) from P(1), and so on. Every nonnegative integer is reached after finitely many upward steps, proving ∀x P(x).
The direction of the step must match the base and the target domain. B starts at the smallest element and moves downward, so it cannot establish any positive case. For example, P(x) meaning “x=0” satisfies the meaningful downward condition and P(0), but not all natural numbers satisfy P. C can cover 0 through 1000, not larger numbers; P(x) meaning “x≤1000” is a counterexample. D can cover 1000 upward, but not smaller numbers; use P(x) meaning “x≥1000.” Thus A alone is valid. Literally writing P(−1) for a predicate only defined on natural numbers is a domain issue in B/C; it does not supply the missing coverage.
Let F be all functions {1,…,n}→{0,1}, for positive n. Define f≼g exactly when f(x)≤g(x) for every x, using 0≤1. Select true statements. Options: A. ≼ is symmetric; B. (F,≼) is a partial order; C. (F,≼) is a lattice; D. ≼ is an equivalence relation.
Select all that apply
Answer & solution
Official answer: B, C
Verify the partial-order axioms coordinate by coordinate. Reflexivity holds because f(x)≤f(x). If f≼g and g≼f, then both inequalities force f(x)=g(x) at each x, so f=g; this is antisymmetry. If f≼g and g≼h, transitivity of ≤ gives f≼h. Thus B is true.
For any two functions define m(x)=min(f(x),g(x)) and j(x)=max(f(x),g(x)). Both are still {0,1}-valued functions. The function m is below both f and g; any other common lower bound is below m at every coordinate. Hence m is their greatest lower bound. Similarly, j is their least upper bound. Every pair therefore has a meet and join, establishing the lattice claim C. This is the same ordering as subset inclusion under the identification f↔{x:f(x)=1}.
A is false: the all-zero function is below the all-one function, but the reverse comparison fails for positive n. An equivalence relation must be symmetric, so D is false too. Select B,C. The positive-domain convention matters: if n=0, only the empty function exists and the relation also becomes symmetric.
Nonempty finite sets A and B admit bijections A→B and A×A→A∪B. How many different values of |A| are possible?
Answer & solution
Official answer: 2
Approach: Turn the bijections into cardinality equations, use the range of the intersection size, and then prove that every remaining candidate is achievable. 1. The first bijection gives |A|=|B|=n for an integer n≥1. Put t=|A∩B|, so 0≤t≤n. 2. The second bijection gives |A×A|=|A∪B|. Therefore n²=2n−t. 3. Since t≥0, n²≤2n. Dividing by positive n yields n≤2. Thus only n=1 and n=2 can work. 4. For n=1, choose A=B={a}. Then n²=1=|A∪B| and both bijections exist. For n=2, choose disjoint sets A={a,b} and B={c,d}; both A×A and A∪B have four elements, so a bijection exists between them. Answer: 2 possible values. The question asks for the number of possible cardinalities, not the number of choices of the sets themselves.
How many spanning trees does the complete graph on four labelled vertices A, B, C and D have?
Answer & solution
Official answer: 16
Approach: A spanning tree uses all vertices, is connected and has no cycle. Since the graph is complete, every labelled tree on these vertices is available. 1. Cayley's formula states that the complete graph Kn has nn−2 labelled spanning trees. Substituting n=4 gives 4²=16. 2. We can verify this without the formula by classifying four-vertex tree shapes. A tree has three edges. It is either a star with one vertex of degree 3 or a path with degrees 1,2,2,1. 3. There are four stars, one for each choice of centre. For a path, arrange all four labels in an order. Reversing the order describes the same undirected path, so there are 4!/2=12 paths. 4. These shapes are disjoint and exhaustive, giving 4+12=16. Answer: 16. Counting arbitrary three-edge subsets would also include disconnected or cyclic selections, so not every such subset is a spanning tree.
A graph G has n vertices and chromatic number k, the minimum number of colors in a proper coloring. Which always hold? A G contains K_k as a subgraph. B G has an independent set of size at least n/k. C G has at least k(k−1)/2 edges. D G has a vertex of degree at least k.
Select all that apply
Answer & solution
Official answer: B, C
Approach: A proper coloring partitions vertices into independent color classes. Use a coloring with exactly k colors to prove B and C, and small graphs to test A and D. 1. The k color classes together contain n vertices. By the pigeonhole principle, some class has at least n/k vertices (in fact at least ceil(n/k)). No two in that class are adjacent, proving B. 2. Every pair of color classes must have at least one edge between them. Otherwise those two classes could use the same color, producing a (k−1)-coloring and contradicting minimality. 3. There are choose(k,2)=k(k−1)/2 pairs of classes. An edge belongs to only one such pair, so at least that many edges are necessary. C is true. 4. A fails for the five-cycle: its chromatic number is 3, but it contains no triangle K3. D fails for Kk itself, where every vertex has degree k−1 rather than at least k. Answer: B and C. A clique of size k forces at least k colors, but needing k colors does not force a k-clique.
For positive integers, define a◇b=a+2b and a□b=ab. Which claims are true? A ◇ is associative. B □ is associative. C ◇ distributes over □. D □ distributes over ◇.
Select all that apply
Answer & solution
Official answer: B, D
Approach: Write both sides of each proposed identity using the definitions. An operation's symbol does not give it familiar arithmetic properties automatically. 1. For associativity of ◇, (a◇b)◇c=a+2b+2c, whereas a◇(b◇c)=a+2b+4c. Because c>0, they differ, so A is false. 2. □ is ordinary multiplication: (a□b)□c=(ab)c=a(bc)=a□(b□c). B is true. 3. For ◇ distributing over □, a◇(b□c)=a+2bc, but (a◇b)□(a◇c)=(a+2b)(a+2c). Taking a=b=c=1 yields 3 versus 9, disproving C. 4. Multiplication distributes over ◇ on both sides: a□(b◇c)=a(b+2c)=ab+2ac=(a□b)◇(a□c), and (a◇b)□c=(a+2b)c=ac+2bc=(a□c)◇(b□c). Answer: B and D. Checking both sides is useful because ◇ is not commutative, so left and right distributive identities should not be silently identified.
Let p mean “a fail grade can be given” and q mean “the student scores more than 50%”. Represent “a fail grade cannot be given when the student scores more than 50%”. A q→¬p; B q→p; C p→q; D ¬p→q.
Your answer
Answer & solution
Official answer: A
Approach: Identify the condition and then negate the correct proposition.
1. Derivation. The phrase when q makes q the sufficient condition. Its consequence is that fail grade cannot be given, namely NOT p. Therefore the statement is q→NOT p, option A; the converse is not asserted.
2. Explanation and checks. The only prohibited case is q true together with p true: a student exceeds the threshold yet a fail grade can be given. The implication q→¬p excludes exactly that case. When q is false, the sentence says nothing about whether a fail grade can be given. Option D incorrectly turns sufficient marks into a necessary condition for not giving a fail grade; it asserts the converse.
Interpret the diagonal of the squared adjacency matrix
Graph Theory
Tap to enlarge
A is the adjacency matrix of a simple undirected graph and A=A^−1. What must the graph be? A a cycle; B a perfect matching; C a complete graph; D no such graph exists.
Your answer
Answer & solution
Official answer: B
Approach: Convert the inverse equation to A²=I and count length-two walks.
1. Derivation. A=A⁻¹ implies A²=I. For a simple undirected graph, diagonal entry(A²)ᵥᵥ counts the neighbors of v, so every vertex has degree 1. Thus the graph is a disjoint union of edges covering all vertices, a perfect matching. Conversely each two-vertex edge adjacency block squares to identity. Answer B.
2. Explanation and checks. Because A is symmetric with entries 0 or 1, (A²)vv=sum_u A_vu A_uv=sum_u A_vu=degree(v). The identity matrix has diagonal 1, forcing every degree to be exactly one. Following the sole edge from any vertex reaches a partner whose sole edge comes back, so components are isolated two-vertex edges. Such graphs exist whenever the number of vertices is even; they need not form one cycle or a complete graph.
On {1,2,3,4}, a partial order contains every reflexive pair and (1,2),(3,2),(3,4). How many total orders extend it?
Answer & solution
Official answer: 5
Approach: Choose only minimal elements first and branch on those choices.
1. Derivation. The restrictions are 1 before 2, 3 before 2, and 3 before 4. If1 is first, 3 must be second and 2, 4 may be ordered either way, giving 1324 and 1342. If3 is first, the remaining order only requires 1 before 2, giving 3124, 3142, 3412. These exhaust the choices, so there are 5 linear extensions.
2. Explanation and checks. Initially 1 and 3 are eligible: 2 requires both to precede it, while 4 requires 3. In the branch starting with 1, only 3 is eligible next, leaving two orders of 2 and 4. In the branch starting with 3, the remaining three elements need only respect 1 before 2, which holds in half of their 3!=6 permutations. The reflexive pairs impose no extra restriction on the sequence of distinct elements.
A connected undirected graph has positive integer edge weights and every spanning tree has even total weight. What must hold? A all edges even; B all edges share one parity; C every cycle has only even edges; D within each cycle all its edges share one parity.
Select all that apply
Answer & solution
Official answer: D
Approach: Exchange one cycle edge in a spanning tree and compare the two total weights modulo two.
1. Derivation. Fix a cycle C and an edge e on it. The path C minus e is acyclic and can be extended to a spanning tree T. For any other cycle edge f, T−f+e is another spanning tree. Both tree weights are even, so w(e)−w(f) is even. Thus every pair of cycle edges has the same parity, proving D. A and B fail for a graph that is itself a tree with edge weights 1, 1, 2: its only spanning tree has even total 4 but mixed parity. C fails for a triangle with all three weights 1, whose spanning trees all weigh2 although its cycle edges are odd.
2. Explanation and checks. The extension step is justified because any acyclic edge set in a connected graph can be extended to a spanning tree by repeatedly joining components. Adding e to the tree containing C−e creates exactly the cycle C, so removing any f in that cycle returns a tree. Equal parity of tree sums forces equal parity of e and f. Bridges do not belong to cycles, explaining why D places no restriction on their individual parity and why global uniform parity need not follow.
The diagram has eight marked vertices numbered clockwise from the upper-left corner of its top horizontal edge: 1 top-left,2 top-right,3 upper-right,4 lower-right,5 bottom-right,6 bottom-left,7 lower-left,8 upper-left. Edges are the boundary cycle 12,23,34,45,56,67,78,81 plus 14,16,25,27,36,38,47,58. Unmarked crossings are not vertices. Find the chromatic number.
Answer & solution
Official answer: 2
Approach: Produce a valid coloring and separately show that fewer colors cannot suffice.
1. Derivation. Number the eight marked boundary vertices cyclically. Every drawn edge joins an odd-numbered vertex to an even-numbered one, so alternating two colours is a valid colouring. There is at least one edge, ruling out one colour. Thus the chromatic number is 2.
2. Explanation and checks. The two classes are {1,3,5,7} and {2,4,6,8}. Inspection of the full edge list shows every edge crosses between classes, so no two adjacent vertices share a color under this assignment. In fact the listed graph is K4,4, with all sixteen cross-class edges present. It has edges such as 12, so assigning just one color is impossible. Geometric crossings in a drawing do not imply graph adjacency without marked vertices.
Zn is the additive group modulo n. How many elements of Z2×Z3×Z4 are their own inverse?
Answer & solution
Official answer: 4
Approach: Solve 2x=0 modulo the corresponding modulus independently in each coordinate.
1. Derivation. An element is its own inverse exactly when twice it is 0 in each coordinate. Z2 contributes 0, 1 (two choices); Z3 contributes only 0; Z4 contributes 0, 2 (two choices). The product group therefore has 2×1×2=4 such elements.
2. Explanation and checks. The identity element counts: it is always its own inverse. In Z2 both residues satisfy 2x≡0; in Z3 only zero does, because two is invertible modulo three; in Z4 the solutions are zero and two. Explicitly the four product elements are (0,0,0), (0,0,2), (1,0,0), (1,0,2). The coordinate choices multiply because the group operation is coordinatewise, so there is no additional compatibility condition between them.
The Lucas sequence has L1=1,L2=3 and Ln=L(n−1)+L(n−2). Put α=(1+√5)/2, β=(1−√5)/2, γ=(1−√5)/3. Which is Ln? A αⁿ+βⁿ; B αⁿ−γⁿ; C αⁿ+γⁿ; D αⁿ−βⁿ.
Your answer
Answer & solution
Official answer: A
The characteristic roots of r²=r+1 are α=(1+√5)/2 and β=(1−√5)/2. The sequence αⁿ+βⁿ satisfies the recurrence; at n=1 it is 1, and at n=2 it is(α+β)²−2αβ=1+2=3. These initial values uniquely specify the sequence, so A.
Teaching detail. For a recurrence Ln=L(n−1)+L(n−2), trying a solution rⁿ gives r²−r−1=0. Each root therefore yields a valid exponential sequence, and linear combinations remain solutions. Here α+β=1 and αβ=−1 establish the initial values without numerical square-root calculations. Uniqueness follows inductively: if two sequences agree at positions 1 and 2, their recurrence makes them agree at 3 and then at every later position. Checking only one initial value would not establish the result.
Over integers, the target conjecture is ∀x(P(x)⇒∃y Q(x,y)). Which imply it? A ∃x(P(x)∧∀y Q(x,y)); B ∀x∀y Q(x,y); C ∃y∀x(P(x)⇒Q(x,y)); D ∃x(P(x)∧∃y Q(x,y)).
Select all that apply
Answer & solution
Official answer: B, C
B states Q(x, y) for every pair, so each x satisfying P certainly has a witness y (the integer domain is nonempty). C provides one y working for every qualifying x, a stronger condition than allowing the witness to depend on x. A, D only give information for some x. For a common counterexample take P true at 0 and 1 and Q(x, y) true exactly when x=0: A, D hold, but the conjecture fails at 1.
Teaching detail. To prove the target, start with an arbitrary integer x satisfying P(x) and find a witness y. Under B, every integer y works. Under C, the single promised y works for this x and all other qualifying x. A and D describe only one favorable x, leaving other integers uncontrolled. In the counterexample where P holds at 0 and 1 but Q holds only for first coordinate 0, choosing x=0 makes both existential options true while x=1 defeats the target conjecture.
An undirected graph on {1,2,3,4,5} has edges {1,2},{2,3},{2,4},{3,5},{4,5}, and self-loops at 3 and 4. Find the sum of the five eigenvalues of its adjacency matrix. Account for the two officially accepted self-loop conventions.
Answer & solution
Official answer: 2 OR 4
Our answer: 2 or 4, according to the self-loop adjacency convention
The sum of eigenvalues equals trace(A). Only the self-loops at vertices 3 and 4 contribute diagonal entries; the other edges do not. If each loop contributes 1 to its adjacency diagonal, the trace is 2. If the undirected-loop convention records 2 on the diagonal to count incidences, the trace is 4. Both exact alternatives are officially accepted: 2 to 2 OR 4 to 4. This is a union of two singleton answers, not the interval from 2 to 4.
Teaching detail. The characteristic polynomial coefficient for the sum of eigenvalues gives trace(A), counting algebraic multiplicity, even without computing individual eigenvalues. Every edge joining two different vertices contributes off-diagonal entries and cannot affect this trace. The only contributions are therefore the two loops. Some adjacency conventions count each loop once, others twice to preserve row-sum degree identities. The official key accepts exactly 2 or exactly 4; 3 is not accepted, despite lying numerically between them. This is why the key must retain separate singleton ranges.
Let U={1,...,n}, n>1000, and disjoint A,B⊆U each have size k>0. Count permutations in which every A-element precedes every B-element or every B-element precedes every A-element; other elements may appear anywhere.
Your answer
Answer & solution
Official answer: D
Choose the 2k positions occupied by A∪B in binomial(n, 2k) ways. For A before B, the first k chosen positions receive A in k! orders and the last k receive B in k! orders. The remaining elements occupy other positions in(n−2k)! orders. The reversed block order contributes an equal, disjoint count because k>0. Total 2 binomial(n, 2k)(k!)²(n−2k)!, option D. Existence of the disjoint sets implicitly guarantees 2k≤n.
Teaching detail. A and B need not occupy consecutive positions in the full permutation: unrelated U-elements may be interspersed. After choosing their 2k positions, requiring A before B completely determines which k positions are reserved for each set but leaves internal order free. As an alternative check, all binomial(2k,k) patterns of A/B labels among those positions are equally likely, and exactly two are favorable. Multiplying n! by 2/binomial(2k,k) gives the same expression. When k=1 every permutation qualifies, and the formula correctly reduces to n!.
For surjection f:A→B on nonempty sets, define x~y iff f(x)=f(y), and let E be its equivalence classes. Define F:E→B by F([x])=f(x). Select true claims: A not well-defined; B surjective; C injective; D bijective.
Select all that apply
Answer & solution
Official answer: B, C, D
F is well-defined because all representatives of one class have the same f-value. It is onto because every b∈B has an f-preimage x and hence class[x]. If F([x])=F([y]), then f(x)=f(y), so x~y and[x]=[y], proving injectivity. Therefore F is bijective as well. Answer B, C, D.
Teaching detail. The equivalence classes are exactly the nonempty fibers f−1({b}). Replacing x with another representative of its class cannot change f(x), which proves the mapping is legitimate before discussing injectivity. Surjectivity of the original f ensures that no element of B lacks a fiber. Distinct classes cannot map to the same b, because that would make their representatives equivalent and hence put them in the same class. The construction collapses the only source of noninjectivity of f, turning the induced mapping into a bijection.
On the powerset 2^X, define A Δ B=(A−B)∪(B−A). Select true general statements: A (2^X,Δ) is a group; B inverses exist but it is not a group; C the inverse of A is its complement in X; D the inverse of A is A.
Select all that apply
Answer & solution
Official answer: A, D
Membership in a symmetric difference is exclusive-or of the two membership bits. Thus the operation is closed and associative, the identity is the empty set, and A Δ A is empty for every A. This proves the group property and makes every element its own inverse: A and D. B incorrectly denies the group property. A complement is not generally an inverse: A Δ (X minus A)=X, not the empty identity (except in the degenerate case X empty).
Teaching detail. For each element x∈X, membership in A Δ B is 1 exactly when the two membership bits differ. XOR is associative and commutative, so applying this pointwise establishes those properties for sets, not merely for a sample. The empty set contributes a zero bit everywhere and is the identity. A set XOR itself gives zero everywhere, proving the inverse claim and the group axioms. For nonempty X, taking A=∅ immediately refutes the complement-as-inverse claim: ∅ Δ X=X, not ∅.
For a simple finite undirected graph, process vertices in a fixed order and assign each the smallest positive color absent from already colored neighbors. With maximum degree Δ, select valid guarantees: A proper coloring; B at most Δ+1 colors; C at most Δ colors; D exactly the chromatic number of colors.
Select all that apply
Answer & solution
Official answer: A, B
When a vertex is colored, its chosen color differs from every already-colored neighbor. Each edge therefore has distinct colors at its endpoints after its later endpoint is processed, proving A. At most degree(v) colors are forbidden, so one of the first degree(v)+1 colors is available, proving B. C fails on any complete graph, which needs Delta+1 colors. D fails for a path a-b-c-d processed in the order a, d, b, c: the colors are respectively 1, 1, 2, 3, although the graph is bipartite and has chromatic number 2.
Teaching detail. The proper-coloring invariant can be proved edge by edge: for every edge uv, whichever endpoint is processed later explicitly avoids the earlier endpoint's color. For the degree bound, a vertex with d neighbors sees at most d distinct forbidden colors, so among colors 1 through d+1 at least one remains. On a complete graph with r vertices, Δ=r−1 but r colors are necessary, refuting C. The four-vertex path example refutes optimality without compromising correctness: greedy remains proper while using an avoidable third color.
For group G with identity 1, select true statements: A (xy)²=x²y² for all x,y implies commutativity; B x²=1 for all x implies commutativity; C order 2 implies commutativity; D a subgroup of a commutative group need not be commutative.
Select all that apply
Answer & solution
Official answer: A,B,C
A gives xyxy=xxyy; multiplying on the left by x−1 and on the right by y−1 gives yx=xy. In B each element is its own inverse, so xy=(xy)−1=y−1x−1=yx. Every group of order 2 is cyclic and hence abelian, proving C. Every subgroup of an abelian group inherits commutativity, so D is false. Thus A, B, C.
For A, x−1(xyxy)y−1=x−1(xxyy)y−1 simplifies to yx=xy; cancellation does not assume the very commutativity being proved. For C, writing G={1,g} forces g²=1 by closure and cancellation, and every product is among these commuting elements.
What is the maximum possible edge count of a disconnected simple undirected graph on 10 vertices?
Answer & solution
Official answer: 36
For a disconnected simple graph with 10 vertices, maximize edges by making each component complete. Moving vertices into the largest component increases the sum of binomial(component size, 2), so the maximum uses sizes 9 and 1. This gives binomial(9, 2)=36 edges.
If two nonempty components have a and b vertices, merging them would add ab edges. To keep at least two components while maximizing edges, use one largest possible component and one isolated vertex. Equivalently for a split k and 10−k the complete-component bound is C(10,2)−k(10−k), largest at k=1 or 9.
How many distributions of six identical balls into three identical bins exist, allowing empty bins?
Answer & solution
Official answer: 7
Because both balls and bins are identical, count unordered partitions of 6 into at most three parts. In nonincreasing order they are (6, 0, 0),(5, 1, 0),(4, 2, 0),(4, 1, 1),(3, 3, 0),(3, 2, 1),(2, 2, 2). Therefore 7 distributions, allowing empty bins as stated by the ordinary distribution model.
Sort occupancies a≥b≥c≥0 so each distribution is counted once. For c=0, b ranges 0…3 giving four cases; for c=1, b=1 or 2 gives two; for c=2, only a=b=c=2 gives one. Hence 4+2+1=7. Stars-and-bars would count labeled bins and overcount here.
For n≥0, a_n=n+1 if n is odd, and 1 otherwise. Find the ordinary generating function. Options all include +1/(1−x): A x(1+x²)/(1−x²)²; B x(3−x²)/(1−x²)²; C 2x/(1−x²)²; D x/(1−x²)².
Your answer
Answer & solution
Official answer: A
Write an=1+n for odd n and 1 for even n. The baseline generating function is 1/(1−x). Also Σ_(odd n≥1) n xn=x d/dx[x/(1−x²)]=x(1+x²)/(1−x²)². Adding gives 1/(1−x)+x(1+x²)/(1−x²)², option A.
The first coefficients are 1,2,1,4,1,6,… . Begin with the all-ones series, then add x+3x³+5x⁵+… . Differentiating x+x³+x⁵+…=x/(1−x²) and multiplying by x produces exactly that odd-index correction. This also checks that the constant coefficient remains 1.
For a simple undirected unweighted graph on at least three vertices with adjacency matrix A, the triangle count is the trace of which matrix? A A³; B A³/2; C A³/3; D A³/6.
Your answer
Answer & solution
Official answer: D
The ith diagonal entry of A³ counts length-three closed walks starting at vertex i. In a simple undirected graph each such walk traverses a triangle. Each triangle contributes three starting vertices and two directions, hence six walks. Therefore the number of triangles is trace(A³)/6, D.
A length-three closed walk i→j→k→i cannot repeat an adjacent vertex because there are no loops, so i,j,k are distinct. Every triangle is counted starting at i,j,k and in each of two orientations: 3×2=6. Dividing by 3 alone would still count both orientations.
For the Petersen graph define vertices v0…v4,u0…u4, with edges vi–v(i+1), vi–ui, ui–u(i+2), subscripts modulo 5. Select true claims: A chromatic number 3; B Hamiltonian path exists; C isomorphic to the alternate source drawing; D maximum independent-set size 3. Reconstruct the alternate drawing by a 9-cycle h0…h8 plus center h9, with extra edges h0–h9,h3–h9,h6–h9,h1–h5,h2–h7,h4–h8.
Select all that apply
Answer & solution
Official answer: A,B,C
Label the outer pentagon v0,…, v4 clockwise from the top, and corresponding inner vertices u0,…, u4. Edges are vi-v(i+1), vi-ui, ui-u(i+2), indices modulo 5. A proper three-coloring is v=(0, 1, 0, 1, 2), u=(1, 0, 2, 2, 1); the outer odd cycle rules out two colors. A Hamiltonian path is v0, v1, v2, v3, v4, u4, u1, u3, u0, u2. For the second drawing label its nine perimeter vertices h0,…, h8 clockwise from the top and its central vertex h9. Its extra edges are h0-h9, h3-h9, h6-h9, h1-h5, h2-h7, h4-h8. An edge-preserving bijection maps (v0, v1, v2, v3, v4, u0, u1, u2, u3, u4) to (h0, h1, h2, h3, h9, h8, h5, h7, h4, h6), proving isomorphism. Finally {v0, v2, u3, u4} is independent, disproving the claimed maximum 3. In fact an independent set of 5 in this cubic 10-vertex 15-edge graph would force every edge across that partition, contradicting its odd cycle, so the maximum is 4. Thus A, B, C.
The explicit coloring is a verifiable upper bound, and the outer 5-cycle supplies the matching lower bound of three. A Hamiltonian path need not close back to its start, so the Petersen graph’s lack of a Hamiltonian cycle is irrelevant. The bijection in the solution preserves all fifteen edges, providing a stronger isomorphism witness than matching degrees alone.
Given f(1)=1, f(2n)=2f(n)−1, f(2n+1)=2f(n)+1 for n≥1, select identities for positive n: A f(2^n−1)=2^n−1; B f(2^n)=1; C f(5·2^n)=2^(n+1)+1; D f(2^n+1)=2^n+1.
Select all that apply
Answer & solution
Official answer: A,B,C
For positive integer n, prove A by induction: f(1)=1, and applying the odd recurrence to 2n+1-1=2(2n-1)+1 preserves f(2n-1)=2n-1. For B, repeated use of f(2m)=2f(m)-1 starting with f(1)=1 yields f(2n)=1. Also f(5)=2f(2)+1=3. Repeated doubling gives f(5*2n)-1=2n(f(5)-1)=2n+1, proving C. D is false: at n=2, f(5)=3 whereas 22+1=5.
A useful closed form is f(m)=2(m−2^⌊log2(m)⌋)+1. It follows by induction on the binary length: the leading 1 determines the power of two, and the even/odd recurrence appends a bit while updating the residual. Substituting m=2n−1,2n,5·2n confirms the three identities and also shows f(2n+1)=3, not 2n+1 for n≥2.
For the adjacency matrix A of an n-vertex simple undirected unweighted graph, select true statements: A diagonal of A² equals degrees; B connectivity implies A^(n−1)+I has no zero entry; C sum of A's entries ≤2(n−1) implies acyclic; D a 1 in every row/column implies connectivity.
Select all that apply
Answer & solution
Official answer: A
The ith diagonal of A squared is sum_j A_ij A_ji=sum_j A_ij, since the matrix is symmetric with binary entries. It therefore equals degree(i), proving A. B fails for the three-vertex path: no length-two walk connects adjacent vertices, so that off-diagonal entry of A2+I is zero. C fails for a triangle plus an isolated vertex: n=4 and the entry sum is 6=2(n-1), yet there is a cycle. D fails for two disjoint edges, which give no zero row or column but are disconnected.
The distinction in B is walks of exactly n−1 edges versus paths of at most n−1 edges. Connectivity guarantees the latter, not the former. Adding I supplies only length-zero diagonal walks; it does not add all smaller powers needed to test reachability. In D, absence of isolated vertices still permits several nontrivial components.
Directed graph on {1,2,3,4,5} has edge i→j exactly when 1≤j≤i≤5. Count directed spanning trees rooted at 5 with directed paths from 5 to every vertex and an undirected underlying tree.
Answer & solution
Official answer: 24
An edge goes only from a larger label to a smaller label, apart from irrelevant self-loops. Every nonroot vertex j in an outward tree must choose exactly one incoming edge from a parent in {j+1,..., 5}. There are respectively 4, 3, 2, 1 choices for j=1, 2, 3, 4. Any such choices form a tree rooted at 5: following parents strictly increases the label and must end at 5, so there are no cycles and every vertex is reached. The total is 4*3*2*1=24.
Self-loops cannot be in a spanning tree. Each nonroot has indegree exactly one in an outward arborescence, so choosing its parent is necessary, not merely sufficient. Exactly four nonloop edges are selected; increasing parent labels ensure all parent chains terminate at the sole root 5 rather than another component.
For propositions p,q, let S1=(¬p∧(p∨q))→q and S2=q→(¬p∧(p∨q)). Which are tautologies? A both; B S1 only; C S2 only; D neither.
Your answer
Answer & solution
Official answer: B
The antecedent ¬p∧(p∨q) simplifies to ¬p∧q. Therefore S1 is (¬p∧q)→q, a tautology. S2 is q→(¬p∧q), which is false when p=q=true. Hence only S1 is a tautology, B.
Distributivity gives ¬p∧(p∨q)=(¬p∧p)∨(¬p∧q)=¬p∧q. Any valuation making S1's antecedent true already makes q true, so it cannot be a false implication. To refute S2 it suffices to exhibit one valuation: p=true,q=true makes antecedent true but consequent false. Tautology requires all valuations, not just some.
A connected undirected planar graph has eight vertices and five faces. How many edges does it have? Count the unbounded face among the five.
Answer & solution
Official answer: 11
For a connected planar embedding, Euler’s formula is V−E+F=2, including the unbounded face. Hence E=8+5−2=11.
Rearrange Euler's formula as E=V+F−2 and substitute the given values. A tree would have E=V−1 and F=1, illustrating that the exterior region is a face. Here five faces imply four independent cycles, also checked by E−V+1=11−8+1=4. Omitting the exterior face would shift the answer by one.
Assign six distinct jobs of distinct difficulty to three distinct computers of distinct speeds. The fastest must get the toughest job, the slowest the easiest, and each computer must receive at least one job. How many assignments are possible?
Answer & solution
Official answer: 65
Fix the toughest job on the fastest computer and the easiest on the slowest. Each of the four remaining distinct jobs has 3 destination choices, giving 3⁴. Subtract assignments that leave the middle-speed computer empty: all four then go to the other two computers, giving 2⁴. Thus3⁴−2⁴=81−16=65.
The extreme jobs are fixed, leaving four labeled jobs, not four indistinguishable units. The fastest and slowest computers are already nonempty, so only the middle computer requires an inclusion-exclusion correction. For a second count, assign exactly k of the four remaining jobs to the middle computer: Σ_(k=1)4 binom(4,k)24−k=32+24+8+1=65.
G is a group of order 6 and H is a subgroup with 1<|H|<6. Which is correct? A both always cyclic; B G may not be cyclic but H always is; C G always cyclic but H may not be; D neither need be cyclic.
Your answer
Answer & solution
Official answer: B
Lagrange’s theorem makes the nontrivial proper subgroup order either 2 or 3. A group of prime order is cyclic, so H is always cyclic. G need not be cyclic: the permutation group S3 has order 6 and is nonabelian. Thus B.
Lagrange's theorem says |H| divides |G|=6, so the proper nontrivial choices are exactly 2 and 3. In a group of prime order p, any nonidentity element has order dividing p and greater than 1, hence order p; its powers generate the whole group. To disprove cyclicity of G it is enough to give one counterexample, S3. A cyclic group of order 6 also exists, so 'may not' is the appropriate wording rather than 'never'.
G is an undirected unweighted connected graph with adjacency matrix M and diameter equal to its largest shortest-path distance. Let P=M² and define G2 on the same vertices by N_ij=1 if M_ij>0 or P_ij>0, otherwise 0. Which holds universally? A diam(G2)≤⌈diam(G)/2⌉; B ⌈diam(G)/2⌉<diam(G2)<diam(G); C diam(G2)=diam(G); D diam(G)<diam(G2)≤2 diam(G).
Your answer
Answer & solution
Official answer: A
G2 connects vertices whose original distance is at most 2. A shortest G path of lengthd can be compressed into ceil(d/2) G2 edges. Conversely each G2 edge expands into at most 2 G edges, so no shorter G2 path than ceil(d/2) is possible. Thus d_G2(u, v)=ceil(d_G(u, v)/2), and diam(G2)=ceil(diam(G)/2), which in particular satisfies A’s ≤ bound. Self-loops from M² do not shorten distances.
Each positive entry of M² represents a two-edge walk, so a G2 edge can cover at most two original edges. A d-edge shortest path can be grouped into pairs, with one singleton if d is odd, giving an upper bound ⌈d/2⌉. Expanding any k-edge G2 path yields a G walk of at most 2k edges, proving k≥⌈d/2⌉. Taking the maximum over all vertex pairs establishes equality, which is stronger than the selected non-strict bound.
A relation R is circular when aRb and bRc imply cRa. Select the sufficient conditions for a relation S to be an equivalence relation: A reflexive and symmetric; B circular and symmetric; C reflexive and circular; D transitive and circular.
Select all that apply
Answer & solution
Official answer: C
If S is reflexive and circular, aSb together with bSb implies bSa, establishing symmetry. If aSb and bSc, circularity gives cSa, and symmetry then gives aSc; hence S is transitive as well, proving C. Reflexive and symmetric need not imply transitive: take all loops on {1, 2, 3}, pairs (1, 2),(2, 1),(2, 3),(3, 2), but omit (1, 3). This refutes A. The empty relation on a nonempty set is circular, symmetric and transitive but not reflexive, refuting B and D.
An equivalence relation must satisfy three independent obligations: reflexivity, symmetry, transitivity. Under C, reflexivity supplies bSb to combine with aSb and derive bSa by circularity. Once symmetry is established, aSb and bSc give cSa by circularity and then aSc by symmetry. The empty relation on any nonempty set satisfies every implication whose premise requires an existing pair, so it is circular, symmetric and transitive vacuously, yet it fails all reflexive loops. This explains both B and D counterexamples.
For n≥2, S1 is all n×n matrices over {a,b,c}; S2 is all functions {0,1,…,n²−1}→{0,1,2}. Select: A no bijection S1→S2; B a surjection exists; C a bijection exists; D no injection exists.
Select all that apply
Answer & solution
Official answer: B; C
There are 3n² matrices because each of n² entries has 3 choices. There are also 3n² functions from an n²-element domain to a 3-element codomain. A direct bijection reads matrix entries in a fixed order and maps a, b, c to 0, 1, 2. A bijection is also a surjection and an injection, so B, C.
Explicitly index matrix position (i,j), for zero-based i,j, by i*n+j. Map its symbol a,b,c to the function value 0,1,2. The inverse reconstructs each entry from that value, proving both injectivity and surjectivity without relying only on equal counts. A and D negate properties that this construction supplies.
S=((P∧Q)→R)→((P∧Q)→(Q→R)). Select A neither tautology nor contradiction; B tautology; C contradiction; D antecedent and consequent are equivalent.
Select all that apply
Answer & solution
Official answer: B; D
The antecedent simplifies to ¬P∨¬Q∨R. The consequent simplifies to ¬P∨¬Q∨(¬Q∨R), which is identical. Therefore S has the form E→E and is a tautology. Both B and D hold.
Using A→B≡¬A∨B, let E=¬P∨¬Q∨R. The outer statement is E→E=¬E∨E, true for all eight assignments of P,Q,R. Equivalence of antecedent and consequent establishes D separately from the overall tautology B; those are two selectable propositions, not competing single-choice answers.
S has ten elements. Count ordered pairs (A,B) with A⊆B⊆S. Equality is permitted.
Answer & solution
Official answer: 59049
For each of the 10 elements choose exactly one of three states: outside B, in B but not A, or in A (and therefore in B). Choices are independent, giving 310=59049 ordered pairs. The source symbol is subset-or-equal, so A=B is included.
A second derivation sums by |B|: for each k choose B in binomial(10,k) ways, then any of its 2k subsets A. Thus Σ binomial(10,k)2k=(1+2)10. Counting 410 would allow the forbidden state “in A but outside B”; subtracting equality would answer the strict-subset variant rather than this question.
Choose uniformly from all binary relations on {1,2,3}. What is the probability the relation is reflexive, to three decimal places?
Answer & solution
Official answer: 0.125
Worked explanation
A binary relation is any subset of A×A. With |A|=3 there are nine ordered pairs, not three unordered pairs. Every pair can be included or omitted independently, yielding 512 subsets. Reflexivity requires (1,1),(2,2),(3,3) to be present; the other six bits remain free, yielding 64 favorable relations. The ratio is 64/512=0.125. Equivalently the three required diagonal bits each have probability 1/2, so their conjunction has probability (1/2)³. Symmetry and transitivity are not required.
Derivation and answer
There are 2⁹ binary relations on a three-element set. Reflexivity fixes the three diagonal pairs as present, leaving six arbitrary choices and 2⁶ relations. Under uniform random selection the probability is 2⁶/2⁹=1/8=0.125.
Similar questions2 more → · asked again: GATE 2018, Q19
Algebraic Structures
Tap to enlarge
G is a group of 35 elements. What is the largest possible order of a subgroup other than G itself?
Answer & solution
Official answer: 7
Worked explanation
Lagrange’s theorem gives an upper-bound filter: subgroup order must divide the group order. The divisors of 35 are 1,5,7,35, and the last is excluded because a subgroup of full finite order is G. Divisibility alone would not guarantee existence of every divisor-sized subgroup in arbitrary finite groups. Here the largest remaining divisor is prime, so Cauchy’s theorem supplies an element of order 7, and its generated cyclic subgroup has exactly 7 elements. Hence the upper bound is attained for every group of order 35, not just for one cyclic example.
Derivation and answer
By Lagrange’s theorem a proper subgroup order divides 35 and is smaller than 35, so it is 1, 5, or 7. Cauchy’s theorem guarantees an element of order 7, whose cyclic subgroup has 7 elements. Thus the largest possible proper subgroup size is 7.
W has no free x. Which equivalence is NOT valid (usual nonempty domain)? A ∀x(p(x)∨W) ≡ (∀x p(x))∨W; B ∃x(p(x)∧W) ≡ (∃x p(x))∧W; C ∀x(p(x)→W) ≡ (∀x p(x))→W; D ∃x(p(x)→W) ≡ (∀x p(x))→W.
Your answer
Answer & solution
Official answer: C
Worked explanation
Rewrite implication first: p→W is ¬p∨W. Universal quantification then gives ∀x(¬p(x)∨W)≡(∀x¬p(x))∨W≡¬∃x p(x)∨W, which is (∃x p(x))→W, not the universal antecedent printed in C. A countermodel makes the failure tangible: p(u)=true,p(v)=false,W=false. C’s left side fails at u; its right side is true because ∀x p(x) is false. For D, existential quantification instead yields (∃x¬p(x))∨W≡¬∀x p(x)∨W, exactly the printed right side. The side condition that W has no free x is essential when moving W outside a quantifier.
Derivation and answer
Let the domain have two elements, let p be true at one and false at the other, and let W be false. Then ∀x(p(x)→W) is false, while(∀x p(x))→W is true because its antecedent is false. Thus C is not valid. A andB pull an x-independent formula across the corresponding quantifier. D follows from ∃x(¬p(x)∨W)≡¬∀x p(x)∨W in the standard nonempty-domain semantics.
How many distinct permutations of LILAC place no character in any of its original positions, treating the two Ls as indistinguishable?
Answer & solution
Official answer: 12
Worked explanation
Number positions 1…5 with original symbols L,I,L,A,C. Neither L may occupy 1 or 3, so choose their two positions from {2,4,5} in C(3,2)=3 ways. After that, remaining positions are 1,3 and one r in {2,4,5}. At positions 1 and 3 any of I,A,C is allowed because the original symbol there was L. The only forbidden placement is the symbol originally at r returning to r. There are 3!=6 arrangements of I,A,C, and fixing that forbidden symbol leaves 2!=2 bad arrangements. Therefore each L choice yields 4 valid arrangements, total 12. Treating the Ls as labeled would double-count; using !5 blindly also misses their shared exclusion from both original L slots.
Derivation and answer
The two indistinguishable Ls must occupy two of positions 2, 4, 5, giving three choices. The one unoccupied position among those three is the original location of one of I, A, C. Place I, A, C in that position and positions 1, 3: of the 6 permutations, exactly 2 put that particular character back in its original position. Thus each L placement permits 4 arrangements, totaling 3*4=12. Direct enumeration of the 60 distinct permutations also yields 12.
For n>2, a is a fixed nonzero vector in {0,1}^n and x is uniform in {0,1}^n. What is the probability that Σ a_i x_i is odd?
Answer & solution
Official answer: 0.5
Worked explanation
View the sum modulo 2. Since a is nonzero, at least one coordinate j has coefficient 1. Fix every random bit except xj; those fixed bits determine some parity c. The remaining sum parity is c⊕xj. A uniform xj makes that result equally likely to be 0 or 1, regardless of c. Averaging over all choices of the other bits preserves probability 1/2. The pairing proof below is the equivalent combinatorial version. The nonzero hypothesis matters: if a were the zero vector, the sum would always be 0 and the probability would be 0.
Derivation and answer
Because a is nonzero, choose an index j with aj=1. Pair each vector x with the vector obtained by flipping only xj. This is a fixed-point-free bijection on all 2n equally likely inputs, and it reverses the parity of the dot product. Exactly half of the inputs yield an odd sum, so the probability is 1/2. The argument in fact works for any n≥1 with nonzero a.
Start with complete bipartite K3,4, add a vertex s adjacent to all seven original vertices, and keep all original edges. What is the minimum number of edge colors? Edges sharing an endpoint must differ.
Answer & solution
Official answer: 7
Worked explanation
A degree-d vertex forces d distinct colors on its incident edges. Vertex s has degree 7, while original vertices have degree 5 or 4, so Δ=7 supplies the lower bound. Do not apply the bipartite edge-coloring theorem directly: adding s creates triangles. Instead verify the constructive coloring below. Its ai-bj matrix rows are [2,3,4,5], [1,4,3,6], [5,1,2,4]. Row colors are distinct and omit the corresponding s-ai color 1,2,3. Columns are [2,1,5],[3,4,1],[4,3,2],[5,6,4]; each is distinct and omits its s-bj color 4,5,6,7 respectively. At s all seven incident colors differ. Every pair of adjacent edges is therefore checked, proving seven colors suffice.
Derivation and answer
The new vertex s has degree 7, so at least 7 edge colors are needed. A concrete 7-coloring proves sufficiency. Call the parts a 0, a 1, a 2 and b0, b1, b2, b3. Give edges s-a 0, s-a 1, s-a 2 colors 1, 2, 3, and s-b0,..., s-b3 colors 4, 5, 6, 7. For the three rows of edges ai-bj, use colors (2, 3, 4, 5), (1, 4, 3, 6), and (5, 1, 2, 4), respectively. Each row and column has distinct colors and avoids its endpoint edge to s. Thus this is a proper edge-coloring with 7 colors, proving the minimum 7.
Let U = {1,…,n} and A contain pairs (x,X) with X a subset of U and x a member of X. Statement I claims |A| = n·2^(n−1). Statement II claims |A| = sum from k=1 to n of k·C(n,k). Decide whether only I, only II, both, or neither is true; these are choices A, B, C, D respectively.
Your answer
Answer & solution
Official answer: C
Method: count the same objects in two different orders.
1. First choose the marked member x. There are n choices. Its membership in X is then compulsory, but each of the other n − 1 elements may independently be included or excluded. 2. Consequently there are 2n−1 subsets X for each chosen x, and n·2n−1 pairs overall. Statement I is true. 3. Alternatively, fix the subset size k. There are C(n,k) ways to choose X, and then k choices for its marked member x. This contributes k·C(n,k) pairs. 4. Sum over k = 1,…,n. The empty subset contributes no pair because it has no member to mark. This gives the expression in II, so II is also true.
Result: C, both statements. This is a double-counting proof of the identity sum k·C(n,k) = n·2n−1; it also explains why merely counting all 2n subsets would miss the possible choices of x.
In an arbitrary group G, relation R1 is a R1 b iff a = g^−1bg for some g∈G. Relation R2 is a R2 b iff a = b^−1. Which are necessarily equivalence relations? Choices: A both; B R1 only; C R2 only; D neither.
Your answer
Answer & solution
Official answer: B
Method: verify reflexivity, symmetry, and transitivity for conjugacy, then seek a counterexample for the inverse relation.
1. R1 is reflexive: taking g to be the identity e gives a = e−1ae. 2. R1 is symmetric: if a = g−1bg, rearrange to b = gag−1. This has the required form h−1ah with h = g−1. 3. R1 is transitive: if a = g−1bg and b = h−1ch, substitute to obtain a = g−1h−1chg = (hg)−1c(hg). Thus a R1 c. 4. R2 need not even be reflexive. In the cyclic group of order three, let u be a nonidentity generator. Then u−1 = u² ≠ u, so u is not related to itself by R2. One failure of reflexivity is enough to disprove that R2 is necessarily an equivalence relation.
Result: B, R1 only. R2 can be an equivalence relation in special groups where every element equals its inverse, but “arbitrary group” requires the claim to hold for every group.
Hamiltonian cycles in an undirected complete graph
Graph Theory
Tap to enlarge
For an undirected complete graph on n vertices with n>2, count distinct Hamiltonian cycles. Choices: A n!; B (n−1)!; C 1; D (n−1)!/2. Rotations and reversal describe the same undirected cycle.
Your answer
Answer & solution
Official answer: C OR D
Our answer: D generally; official accepts C OR D
Method: count vertex orders while removing the two sources of duplicate descriptions.
1. A Hamiltonian cycle visits every vertex once and returns to its start. Because the graph is complete, any ordering of the vertices produces the required edges. 2. Fix one named vertex as the start. The other n − 1 vertices can be arranged in (n−1)! orders. Fixing the start removes the n equivalent rotations that would appear in an unrestricted n! count. 3. Every undirected cycle is still counted twice: once for each traversal direction. For example, v1,v2,…,vn,v1 and v1,vn,…,v2,v1 use exactly the same undirected edges. Since n>2, these are two distinct orders, so divide by 2. 4. Hence the general count is (n−1)!/2. For n=3 this gives 1; for n=4 it gives 3, showing why the constant answer 1 does not hold for every allowed n.
Result: D is the general formula. The official key also accepts C, the value 1; that is true only for n=3, not for general n>2. Preserve both official scoring alternatives without presenting C as the general formula.
Compute 3^51 modulo 5. The exponent in the original is 51.
Answer & solution
Official answer: 2
Method: find the repeating cycle of powers modulo 5, rather than form the large integer.
1. Compute successive residues: 3¹≡3, 3²=9≡4, 3³≡4×3=12≡2, and 3⁴≡2×3=6≡1 (mod 5). 2. Once the residue is 1, the next powers repeat this four-step pattern. Write 51=4×12+3. 3. Therefore 351=(3⁴)12·3³≡112·2≡2 (mod 5). 4. The residue 2 already lies in the standard range 0 through 4, so no further reduction is needed.
Let P(x) mean that every domain element z dividing x satisfies z=x or z=1. The formula says ∀x[P(x)⇒∃w(w>x and P(w))]. Which domains satisfy it: S1={1,...,100}, S2=positive integers, S3=all integers? Choices A S1/S2, B S1/S3, C S2/S3, D all three. Divisibility and quantifiers must be interpreted in the stated domain.
Your answer
Answer & solution
Official answer: C
Our answer: Only S2 under literal integer divisibility; official C
1. Read the formula as: each number whose divisors are restricted to itself and 1 has a larger number with the same property. Do not replace P(x) by an informal definition of prime before checking its domain. 2. In the positive integers, P(x) holds for 1 and all primes. For every such x there is a larger prime, since primes are unbounded. Thus S2 satisfies the formula. 3. In S1, x=97 has P(x), since its only positive divisors are 1 and 97. The larger available values 98, 99, and 100 are composite and have divisors in S1 other than themselves and 1. No valid w exists, so S1 fails. 4. In S3, the integer −1 divides every integer. If P(x) holds, taking z=−1 forces −1=x or −1=1, hence x=−1. Conversely, −1 has exactly divisors −1 and 1, so P(−1) really is true. 5. There is no larger integer w with P(w), because step 4 shows −1 is the only qualifying integer. The implication consequently fails at x=−1, and S3 fails under literal integer divisibility. 6. The literal result is only S2, which none of the choices lists. The official key selects C, S2 and S3.
For a_n=2n+3, n≥0, find the ordinary generating function Σa_n x^n. Choices: A 3/(1−x)²; B 3x/(1−x)²; C (2−x)/(1−x)²; D (3−x)/(1−x)².
Your answer
Answer & solution
Official answer: D
Method
Start from Σxn=1/(1−x). Differentiate to obtain Σn xn−1=1/(1−x)² and multiply by x. Linearity now separates the 2n part from the constant 3 part. Combining over one denominator gives numerator 2x+3(1−x)=3−x. A quick constant-term check requires value a0=3 at x=0, already ruling out B and C.
Solution
The ordinary generating function is sum(2n+3)xn=2x/(1−x)²+3/(1−x)=(3−x)/(1−x)², D, as a formal power series or for |x|<1.
The undirected graph has vertices a,b,c,d,e,f and edges ab, ac, ae, bc, bd, bf, cd, ce, df, ef. Find its chromatic number.
Answer & solution
Official answer: 3
Method
A coloring result needs both a lower bound and a construction meeting it. The cycle a–b–c–a is a triangle, whose mutually adjacent vertices demand three different colors. Assign color 1 to a,d; color 2 to b,e; color 3 to c,f. Each of the ten listed edges connects different colors, so three suffice. Merely finding a triangle would not alone exclude a need for four or more colors elsewhere.
Solution
Vertices a, b, c form a triangle, so at least 3 colors are necessary. Thus the chromatic number is 3.
Similar questions2 more → · asked again: GATE 2020, Q18
Largest possible proper subgroup
Algebraic Structures
Tap to enlarge
A finite group has 84 elements. What is the largest possible order of a proper subgroup?
Answer & solution
Official answer: 42
Our answer: 42 as the largest possible order
Method
For H≤G, cosets partition G into equally sized sets, so |G|=[G:H]|H|. Properness means index [G:H]≥2, hence |H|≤42. To show that the upper bound is possible rather than just necessary, use the cyclic group of order 84: its subgroup generated by the square of a generator has order 84/gcd(84,2)=42. The word “possible” matters because Lagrange’s divisibility condition does not generally guarantee a subgroup for every divisor in every group.
Solution
Lagrange’s theorem requires a subgroup order to divide 84. The greatest proper divisor is 42, and this is achievable in the cyclic group C84. Thus the largest possible order is 42. This is an attainable bound over groups of order 84, not a guarantee that every such group has a subgroup of order 42.
Let P be the rationals; Q the functions {0,1}→N; R the functions N→{0,1}; S the finite subsets of N. Which are countable? A Q,S; B P,S; C P,R; D P,Q,S.
Your answer
Answer & solution
Official answer: D
Method
A function on two inputs is completely specified by the pair (f(0),f(1)), so Q is in bijection with N² and can be enumerated diagonally. A finite subset can be written as an increasing finite tuple; for each length these tuples are countable, and there are countably many lengths. In contrast a function in R specifies an infinite binary sequence. Cantor diagonalization constructs a sequence differing from the nth listed sequence at position n, defeating any proposed enumeration.
Solution
Rationals are countable. Functions from{0, 1} to N correspond to ordered pairs of naturals, a countable set. Finite subsets of N are a countable union over subset size of countable collections. Functions N→{0, 1} correspond to arbitrary subsets of N and are uncountable by Cantor’s theorem. Thus P, Q, S, D.
A sentence ∃s∃t∃u∀v∀w∀x∀y ψ uses only predicate symbols and possibly equality, no functions; ψ is quantifier-free. It has a seven-element model. Which follows? A a model of size at most 3 exists; B no such small model exists; C no model larger than 7 exists; D every model has size 7.
Your answer
Answer & solution
Official answer: A
Method
Choose the actual elements witnessing s,t,u in the given model; they need not be distinct. Use their set as a new nonempty universe and restrict each relation to tuples in that set. Atomic relations and equality on those elements retain exactly the same truth values. Boolean combinations, including negations, therefore retain their values too. Every assignment of universal variables in the smaller universe was already allowed in the original model, so the universal condition remains true.
Solution
Take witnesses s, t, u in the supplied 7-element model, and restrict the relational structure to those witnesses, at most 3 distinct elements. With no functions or constants to require closure, atomic predicate and equality truth on retained tuples is unchanged, hence so is every quantifier-free combination ψ. Its universal assertions still hold for the restricted domain. The same witnesses therefore yield a model of size≤3, A.
Vertices are all 100! permutations of 1…100. Two vertices are adjacent exactly when one swaps two adjacent positions of the other. If degree is y and connected-component count z, find y+10z.
Answer & solution
Official answer: 109
Method
There are 99 boundaries between consecutive positions, and swapping at distinct boundaries gives distinct neighboring permutations. To prove connectedness construct a path: repeatedly swap an adjacent inverted pair, as in bubble sort. Each move is an edge and reduces inversion count by one, so every permutation reaches the sorted permutation after finitely many steps. Connecting every vertex to a common vertex proves exactly one component. Parity alternates on each move, but bipartiteness does not imply disconnectedness.
Solution
There are 99 adjacent positions available for a swap. Each gives a different permutation, so every vertex has degree 99. Adjacent swaps can sort any permutation to the identity, proving that the graph is connected and z=1. Thus y+10z=99+10=109.
Guwahati H,M,L probabilities are .2,.5,.3. Delhi conditional H,M,L probabilities by Guwahati row are H:(.40,.48,.12), M:(.10,.65,.25), L:(.01,.50,.49). Find P(Guwahati H | Delhi H), to two decimals.
Answer & solution
Official answer: 0.60 to 0.62
Our answer: 0.60
Method
The table conditions on Guwahati, whereas the question conditions on Delhi, so reading .40 directly reverses the conditioning incorrectly. The denominator must include all three ways Delhi can be hot: Guwahati hot, medium or low. Their joint probabilities are .08,.05,.003. The desired event is just the first contribution divided by their sum .133. Columns of a conditional table need not sum to one before weighting by the row probabilities.
Solution
By total probability, P(H_D)=0.40*0.2+0.10*0.5+0.01*0.3=0.133. The joint probability P(H_G and H_D)=0.40*0.2=0.08. Bayes gives 0.08/0.133=80/133≈0.601504, which rounds to 0.60. The full accepted interval 0.60–0.62 is preserved.
For a nonempty domain, F=∀x∃y R(x,y). Which are implied? I ∃y∃x R(x,y); II ∃y∀x R(x,y); III ∀y∃x R(x,y); IV ¬∃x∀y¬R(x,y). A IV only; B I and IV; C II only; D II and III.
Your answer
Answer & solution
Official answer: B
1. The premise gives a witness y for every x, but the witness may depend on x. Because the domain is nonempty, select one x; its witness proves ∃x∃yR, equivalently I.
2. Simplify the negations in IV stepwise: ¬∃x∀y¬R ≡ ∀x¬∀y¬R ≡ ∀x∃yR. Thus IV is precisely the premise.
3. II wrongly demands one common witness. On {0,1}, R(x,y) iff x=y satisfies F but not II. III wrongly demands every y be used: R(x,y) iff y=0 satisfies F but fails III at y=1. Therefore B.
The source says (p→q)→r is “a contradiction.” Classify (r→p)→q: A tautology; B contradiction; C always true when p is false; D always true when q is true. Distinguish the source’s literal logical terminology from its intended false-valuation reading.
Your answer
Answer & solution
Official answer: D
Our answer: D with false-valuation interpretation
1. Under the intended interpretation, an implication A→r is false exactly when A is true and r is false. Therefore p→q is true and r=false.
2. With r=false, r→p is true regardless of p. Hence (r→p)→q reduces to true→q, namely q. It is true whenever q is true, D.
3. The allowed valuation p=false,q=false,r=false makes the target false, ruling out both tautology and C. Taking q=true makes it true, ruling out contradiction. Literally, the first expression is not a contradiction over independent atoms: setting r=true satisfies it.
How many integers from 1 through 500 inclusive are divisible by 3 or 5 or 7?
Answer & solution
Official answer: 271.0
Our answer: 271
1. Count multiples separately: floor(500/3)=166, floor(500/5)=100, floor(500/7)=71. Their sum double-counts integers divisible by more than one divisor.
2. Subtract pairwise intersections using least common multiples 15,21,35: 33,23,14 respectively. Triple multiples of 105 were counted three times then subtracted three times, so restore floor(500/105)=4.
3. The union size is 166+100+71−33−23−14+4=271. Inclusive endpoints are handled by the floor counts.
Let p="It is raining", q="It is cold", r="It is pleasant". Translate "It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold." A:(¬p∧r)∧(¬r→(p∧q)). B:(¬p∧r)∧((p∧q)→¬r). C:(¬p∧r)∨((p∧q)→¬r). D:(¬p∧r)∨(r→(p∧q)).
Your answer
Answer & solution
Official answer: A
Our answer: A structurally; B logically equivalent
1. The first clause is ¬p∧r. The phrase A only if B translates as A→B, since B is a necessary condition for A. Thus the second clause is ¬r→(p∧q). Joining clauses with and gives option A directly.
2. There is a semantic nonuniqueness in the printed alternatives. In either A or B, a true first conjunct forces p=false and r=true. Then A's implication has false antecedent ¬r, while B's implication has false antecedent p∧q. Both are true regardless of q.
3. If the first conjunct is false, both full conjunctions are false. Consequently both A and B are logically equivalent to ¬p∧r for every valuation. Preserve official answer A as the direct structural translation, but do not claim that B has a different truth table. C and D incorrectly use a disjunction between the clauses.
Let X={a,b,c,d,e}. The partial order includes reflexive pairs and (a,b),(a,c),(a,d),(a,e),(b,c),(b,e),(c,e),(d,e). Its Hasse diagram has two upward chains a<b<c<e and a<d<e. What minimum number of ordered pairs must be added to make it a lattice?
Answer & solution
Official answer: -0.01
Our answer: 0
1. A lattice requires a unique greatest lower bound (meet) and least upper bound (join) for every pair of elements. A pair of comparable elements already has these: the smaller is their meet and the larger their join.
2. In this diagram the only incomparable unordered pairs are {b,d} and {c,d}. For either pair, the only common lower bound is a and the only common upper bound is e. Hence their meet is a and their join is e.
3. All pairs therefore already have the required bounds, so no ordered pair needs adding: answer 0. This is the pentagon lattice, which need not be distributive; being nondistributive does not prevent it from being a lattice.
An undirected graph G has n vertices and 25 edges, and every vertex has degree at least 3. What is the maximum possible n?
Answer & solution
Official answer: 16.0
Our answer: 16
1. By the handshaking lemma, the sum of all vertex degrees is twice the edge count, 50. Since each of n vertices contributes at least 3, we have 3n≤50. Therefore n≤floor(50/3)=16.
2. A numerical upper bound is not enough; show that 16 is attainable. Start with a cycle on 16 vertices, providing 16 edges and degree 2 at each vertex. Add the 8 edges joining opposite vertices around the cycle. This gives a simple 3-regular graph with 24 edges.
3. Add any further edge not already present. It raises two degrees to 4 and leaves all others at 3, with exactly 25 edges and 16 vertices. Thus the maximum is indeed 16.
The ordinary generating function of sequence (a_n) for n≥0 is (1+z)/(1−z)³. Find a3−a0.
Answer & solution
Official answer: 15.0
Our answer: 15
1. Use the binomial-series identity (1-z)-3=Σ(n≥0)C(n+2,2)zn. Its first coefficients are 1,3,6,10,… .
2. Multiplication by 1+z adds each coefficient to the preceding one. Thus a0=1 and a3=C(5,2)+C(4,2)=10+6=16. Directly, (1+z)(1+3z+6z²+10z³+…)=1+4z+9z²+16z³+… .
3. Therefore a3-a0=16-1=15. More generally an=C(n+2,2)+C(n+1,2)=(n+1)² for n≥1. The numerator shifts coefficients; it cannot simply be ignored when reading a3.
X has a Poisson distribution with mean 5. Find E[(X+2)²].
Answer & solution
Official answer: 54.0
Our answer: 54
1. A Poisson variable has variance equal to its mean, so E[X]=5 and Var(X)=5. The second-moment identity Var(X)=E[X²]-(E[X])² gives E[X²]=5+25=30.
2. Expand before taking expectations: (X+2)²=X²+4X+4. Linearity of expectation therefore gives E[(X+2)²]=30+4·5+4=54.
3. A useful check is Var(X+2)+(E[X+2])²=5+7²=54, since adding a constant does not change variance. Squaring the mean alone would give 49 and omit the variance contribution.
For an integer x≥2, define p: x belongs to {8,9,10,11,12}; q: x is composite; r: x is a perfect square; s: x is prime. Find x satisfying NOT((p implies q) AND (NOT r OR NOT s)).
Answer & solution
Official answer: 11.0 : 11.0
Our answer: 11
De Morgan gives ¬(p→q)∨(r∧s)=(p∧¬q)∨(r∧s). No integer≥2 is both a perfect square and prime, so the second term is false. Among 8, 9, 10, 11, 12 only 11 is not composite. Therefore x=11.
First replace the implication p⇒q by ¬p∨q. Negating the outside conjunction produces (p∧¬q)∨(r∧s), so only two kinds of integer could qualify. A square x=k2 with x≥2 has k≥2 and a proper divisor k; it cannot also be prime. Consequently x must lie in the listed set while failing compositeness. Checking that set leaves exactly 11, and substituting 11 makes the original inner conjunction false as required.
Similar questions2 more → · asked again: GATE 2008, Q78
Recurrences & Generating Functions
Tap to enlarge
Let a_n count length-n binary strings with no consecutive 1s. Which recurrence holds? A: a_n=a_(n−1)+2a_(n−2). B: a_n=a_(n−1)+a_(n−2). C: a_n=2a_(n−1)+a_(n−2). D: a_n=2a_(n−1)+2a_(n−2).
Your answer
Answer & solution
Official answer: B
Partition valid n-bit strings by their last symbol. Those ending 0 append 0 to any valid (n−1)-bit string. Those ending 1 must end 01 and append 01 to a valid (n−2)-bit string. Hence an=an−1+an−2, B, with a0=1, a1=2.
The two cases must be disjoint and exhaustive. For n≥2, a valid string ends either in 0, or in 01; the latter is forced because a final 1 cannot follow another 1. Removing those suffixes gives arbitrary valid shorter strings and is reversible, so there is neither overcounting nor omission. For example a2=3 corresponds to 00,01,10, matching a1+a0=2+1. Initial values accompany the recurrence even though only the recurrence is requested.
Find the coefficient of x^12 in (x^3+x^4+x^5+x^6+...)^3.
Answer & solution
Official answer: 10.0 : 10.0
Our answer: 10
Factor the series as x³/(1−x). Its cube is x⁹(1−x)−3, so the coefficient of x¹² equals that of x³ in(1−x)−3, namely C(5, 2)=10. Equivalently distribute three excess units across three exponents, each originally at least 3.
Each of the three factors contributes one exponent at least 3. Write those exponents as 3+i,3+j,3+k with i,j,k≥0. To total 12, their excesses must satisfy i+j+k=3. Stars-and-bars counts C(3+3−1,3−1)=10 solutions. The three factors are distinguishable, so choices such as(3,4,5) and(4,3,5) contribute separately; counting unordered partitions would undercount the coefficient.
The sequence satisfies a_1=8 and a_n=6n^2+2n+a_(n−1). If a_99=K×10^4, find K.
Answer & solution
Official answer: 197.9 : 198.1
Our answer: 198
The initial a 1=8 equals 6·1²+2·1, so a 99=sum(n=1..99)(6n²+2n). Using sum n²=N(N+1)(2N+1)/6 and sum n=N(N+1)/2 gives N(N+1)(2N+2)=2N(N+1)². At 99 this is 1,980,000=198·10⁴, hence K=198.
Unrolling adds the increments 6n2+2n for n=2 through 99 to the base 8. Because 8 is exactly the same expression at n=1, one uniform sum covers all terms. Simplifying before substituting avoids large arithmetic:6Σn2+2Σn=N(N+1)(2N+1)+N(N+1)=2N(N+1)2. A quick check at N=1 gives 8 and at N=2 gives 36, agreeing with the recurrence. Divide the final value by 10000, not multiply, to recover K.
A function f from positive integers to positive integers satisfies f(n)=f(n/2) for even n and f(n)=f(n+5) for odd n. If R is its set of attained values, what is the maximum possible size of R?
Answer & solution
Official answer: 2.0 : 2.0
Our answer: 2
For even n halve n. For odd n>5, applying the odd rule and then halving sends n to(n+5)/2<n. Thus every value eventually reaches 1..5. The numbers 1, 2, 3, 4 are connected by the cycle 1→6→3→8→4→2→1, while 5→10→5 forms another component. Divisibility by 5 is invariant under both rule equalities, so these components never merge. A function constant 1 on nonmultiples of 5 and constant 2 on multiples satisfies both rules and realizes two values. Therefore the maximum range size is 2.
The equations force f to be constant on connected components generated by the permitted transformations. Descent shows there are at most two components, while the divisibility-by 5 invariant proves that they cannot merge. For an odd n,5 divides n+5 exactly when it divides n; for an even n, halving preserves divisibility by 5 because 2 is invertible modulo 5. Assigning two different positive values to these two classes supplies an explicit function attaining the upper bound, so this is a maximum rather than just an estimate.
Repeatedly toss a fair coin twice. TH outputs Y and stops; HH or HT outputs N and stops; TT restarts the experiment. Find the probability of eventually outputting Y, to two decimal places.
Answer & solution
Official answer: 0.33 : 0.34
Our answer: 1/3 ≈0.33
Let p be the probability of eventual Y. A first-round TH gives Y with probability 1/4, while TT with probability 1/4 restarts independently. Thus p=1/4+p/4, so p=1/3. Infinite restart has probability lim(1/4)n=0. Two-decimal answer 0.33.
Another derivation conditions on the first round that does not restart. Of the equally likely terminal outcomes TH,HH,HT, exactly one produces Y, giving 1/3. Or sum the disjoint cases: Y after k restarts has probability(1/4)k(1/4), and their geometric series is(1/4)/(1−1/4). The single-round probability 1/4 is not the final answer because TT does not end the experiment in failure.
How many of (i) false, (ii) Q, (iii) true, (iv) P∨Q, (v) ¬Q∨P are logically implied by P∧(P⇒Q)?
Answer & solution
Official answer: 4.0 : 4.0
Our answer: 4
P∧(P→Q) simplifies to P∧Q. It implies Q, true, P∨Q, and ¬Q∨P, but not false because the premise is satisfiable. Thus four listed expressions are implied.
Implication can be rewritten as ¬P∨Q. Combining with P forces P=true and hence Q=true. Evaluate all five candidates at this sole satisfying assignment: item (i) is false, while (ii), (iii), (iv) and (v) are true. A satisfiable premise does not imply a contradiction.
Find the minimum number of colors sufficient to properly vertex-color every planar graph.
Answer & solution
Official answer: 4.0 : 4.0
Our answer: 4
The four-color theorem guarantees four colors suffice for every planar graph. The planar graph K4 requires four distinct colors, so fewer cannot cover every case. Answer 4.
A proper coloring requires different colors only at adjacent vertices. The answer is a universal worst-case guarantee, not the color count for each planar graph: trees often need two and triangles three. K4 can be drawn with one vertex inside a triangle joined to its corners, showing that the four-color lower bound is itself planar.
A shop stocks equal numbers of Type 1 and Type 2 LED bulbs. Their respective probabilities of lasting over 100 hours are 0.7 and 0.4. Find the probability for a uniformly chosen bulb.
Answer & solution
Official answer: 0.55 : 0.55
Our answer: 0.55
Equal populations give prior probabilities 1/2 for each type. The law of total probability gives(0.7+0.4)/2=0.55.
The two bulb types partition the sample space, so add their joint survival probabilities: P(survive,type1)=0.5×0.7=0.35 and P(survive,type2)=0.5×0.4=0.20. Their sum is 0.55. Multiplying 0.7 by 0.4 would describe a different event involving both types rather than one randomly selected bulb.
On N×N define (a,b)R(c,d) iff a≤c or b≤d. P: reflexive; Q: transitive. A both; B P only; C Q only; D neither.
Your answer
Answer & solution
Official answer: B
Reflexivity holds because a≤a. For nontransitivity choose x=(2, 2), y=(3, 1), z=(1, 1). xRy holds via 2≤3, yRz via 1≤1, but xRz fails both 2≤1 comparisons. Thus P true, Q false, B.
Transitivity requires one implication to hold for every triple; a single failed triple suffices to refute it. The OR permits one pair to be justified by its first coordinate and the next by its second coordinate. Those mixed justifications cannot be chained into either required inequality for the endpoints, unlike coordinatewise AND order.
Which predicate formula is not valid? A (∀x p(x)⇒∀x q(x))⇒(∃x ¬p(x)∨∀x q(x)); B (∃x p(x)∨∃x q(x))⇒∃x(p(x)∨q(x)); C ∃x(p(x)∧q(x))⇒(∃x p(x)∧∃x q(x)); D ∀x(p(x)∨q(x))⇒(∀x p(x)∨∀x q(x)).
Your answer
Answer & solution
Official answer: D
On domain{0, 1}, let p hold only at 0 and q only at 1. Then every element satisfies p∨q but neither predicate holds universally, refuting D. A is implication elimination/quantifier negation; B distributes existential over disjunction; C reuses the common witness for each existential. Thus D alone is invalid.
For D, let p(0)=true,p(1)=false,q(0)=false,q(1)=true. The antecedent is true at each point using different predicates, while both universal disjuncts are false. Existential witnesses can be chosen separately in B, and a common witness suffices in C; universal disjunction cannot generally be split this way.
U contains 23 distinct compounds; a subset S of 9 compounds has each member reacting with exactly 3 compounds of U. Treat reaction as mutual. Which is always true? I every member of U\S reacts with an odd number; II at least one does; III every member reacts with an even number. A I only; B II only; C III only; D none.
Your answer
Answer & solution
Official answer: B
Model mutual reactions as an undirected graph. The nine vertices in S have degree 3, hence are nine odd-degree vertices. The total number of odd-degree vertices must be even, so the remaining 14 vertices contain an odd, in particular nonzero, number of odd-degree vertices. At least one is necessary; all 14 being odd is impossible. Therefore only II, B.
The handshaking identity is Σdeg(v)=2|E|, an even number because every reaction contributes two endpoints. Nine degrees of three contribute 27, so the sum of remaining degrees must be odd. An odd sum contains an odd number of odd summands. This proves II without needing to know any individual reaction partner.
The powers cycle as 13,16,4,1 modulo 17. Write 99=4×24+3, then replace 134×24 by 1 and retain the third power. Working modulo after every multiplication avoids enormous integers. The intermediate −13 is a valid congruence but must be reported as 4 in the specified nonnegative range.
Which is NOT equivalent to p↔q? A (¬p∨q)∧(p∨¬q); B (¬p∨q)∧(q→p); C (¬p∧q)∨(p∧¬q); D (¬p∧¬q)∨(p∧q).
Your answer
Answer & solution
Official answer: C
A biconditional is true when both truth values agree, namely 00 and 11. A and B express both implications, and D explicitly lists these two agreeing cases. C instead lists 01 and 10. A single test p=q=true makes the biconditional true but C false, already proving nonequivalence.
Solution: The expression (¬p∧q)∨(p∧¬q) is exclusive OR, true precisely when p and q differ. It is the negation of biconditional rather than an equivalent, so C.
A={5,{6},{7}} and P(A)=2^A. Evaluate I ∅∈P(A); II ∅⊆P(A); III {5,{6}}∈P(A); IV {5,{6}}⊆P(A). A I and III; B II and III; C I,II,III; D I,II,IV.
Your answer
Answer & solution
Official answer: C
Membership in P(A) means being a subset of A. Thus I holds because the empty set is a subset of A, and III holds because both 5 and {6} are elements of A. II uses the independent fact that the empty set is a subset of every set. IV would require each of its elements, including the number 5, to be an element of P(A); this is false in the intended elementary set model. Do not interchange ∈ and ⊆.
Solution: The empty set is a subset of every set and belongs to every power set. The set{5,{6}} is a subset of A, so belongs to P(A). But it is not a subset of P(A), since its element 5 is not a subset of A. Therefore I, II, III, C.
A slotted LAN has four nodes S1–S4. Frames start only at slot boundaries; more than one transmission in a slot collides. Their frame-generation probabilities in the first slot are 0.1,0.2,0.3,0.4. Find the probability of one collision-free frame.
Answer & solution
Official answer: 0.40 to 0.46
Our answer: 0.4404
Assume independent generation at the four nodes, as required by the intended product calculation. “Any station succeeds” means exactly one transmits, not at least one. The disjoint cases S1 only through S4 only have probabilities 0.0336,0.0756,0.1296,0.2016. Their sum is 0.4404. Multiplying all nontransmission probabilities would instead count an idle slot; subtracting that from one would also include collisions.
Solution: Assuming independent transmission attempts, exactly one succeeds with probability 0.1·0.8·0.7·0.6+0.2·0.9·0.7·0.6+0.3·0.9·0.8·0.6+0.4·0.9·0.8·0.7=0.4404, within the official 0.40 to 0.46 range. Marginal attempt probabilities alone would not determine this without the independence assumption.
Partial fractions give 1/[x(x+1)]=1/x−1/(x+1). Write a few terms: (1−1/2)+(1/2−1/3)+…+(1/99−1/100). Every interior reciprocal cancels, leaving 1−1/100=99/100. The last denominator is 100 because the final x is 99; stopping at 1/99 is an off-by-one error.
Solution: Use1/[x(x+1)]=1/x−1/(x+1). Summing x=1 through 99 telescopes to 1−1/100=0.99.
L={p,q,r,s,t} has bottom p, top t, and three mutually incomparable atoms q,r,s, each covering p and covered by t. Choose (x,y,z) uniformly from L^3. For Pr[x∨(y∧z)=(x∨y)∧(x∨z)], choose A 0; B 1; C 0<Pr≤1/5; D 1/5<Pr<1.
Your answer
Answer & solution
Official answer: D
There are 5³=125 ordered triples, with repeated elements allowed. If x,y,z are three distinct atoms, y∧z=p and x∨p=x, while x∨y=x∨z=t, so the right side is t: distributivity fails. There are 3!=6 such triples. If an entry is p or t, or atom entries repeat, absorption and bound identities make the equality hold. Hence 119 triples satisfy it, giving 119/125=0.952 and D. A lattice can be nondistributive while most sampled triples still satisfy this equation.
Solution: The diagram is the five-element diamond lattice M3. Distributivity fails exactly for triples whose first entry is one atom and whose other two entries are the other two distinct atoms: six ordered triples. Other triples satisfy it. Thus the probability is 119/125=0.952, which lies strictly between 1/5 and 1, D.
A connected plane graph has 10 vertices, and each face has three boundary edges. How many edges does it have?
Answer & solution
Official answer: 24
Count edge incidences with faces: every edge borders two face sides, so 3F=2E, including the unbounded exterior face. Euler's equation V−E+F=2 becomes 10−E+2E/3=2. Solving yields E=24 and F=16. Checking 3×16=2×24 verifies the count. Ignoring the exterior face would break both equations.
Solution: Every face, including the outer face, has three boundary edges, so 3F=2E. Euler’s formula for the connected plane graph gives 10−E+F=2. Substitution yields E=3·10−6=24.
Let a_n count n-bit strings containing two consecutive 1s. Which recurrence gives a_n? A a_(n−2)+a_(n−1)+2^(n−2); B a_(n−2)+2a_(n−1)+2^(n−2); C 2a_(n−2)+a_(n−1)+2^(n−2); D 2a_(n−2)+2a_(n−1)+2^(n−2).
Your answer
Answer & solution
Official answer: A
Partition strings into mutually exclusive initial patterns 0,10,11. A leading 0 leaves a suffix of length n−1 that must contain 11. A leading 10 leaves length n−2 with the same requirement. A leading 11 already satisfies it, so all 2n−2 suffixes qualify. This gives A for n≥2 with a0=a1=0; as a check, a2=1 and a3=3.
Solution: Partition valid n-bit strings by prefixes 0, 10, 11. The first class contributes a(n−1), the second a(n−2), and the third has arbitrary remaining n−2 bits, contributing 2n−2. Hence a(n)=a(n−1)+a(n−2)+2n−2, A.
S1: if a candidate is known to be corrupt, he will not be elected. S2: if a candidate is kind, he will be elected. Which follows? A known to be corrupt implies kind; B not known to be corrupt implies not kind; C kind implies not known to be corrupt; D not kind implies not known to be corrupt.
Your answer
Answer & solution
Official answer: C
Let C mean known to be corrupt, E elected, K kind. From C→¬E obtain E→¬C by contraposition. Composing K→E gives K→¬C, option C.
Contraposition is valid: C→¬E is equivalent to E→¬C. Combine it with K→E to get K→¬C. Neither converse C←¬E nor inverse ¬C→E follows automatically. A person who is not kind may or may not be known to be corrupt; the premises only constrain kind persons through their election consequence. C therefore follows without adding an unstated converse.
Find the cardinality of the power set of{0, 1, 2, …, 10}.
Answer & solution
Official answer: 2048
The set has 11 elements, each independently included or omitted in a subset. Its power set therefore has 211=2048 members.
The set includes both endpoints 0 and 10, so its size is 11, not 10. A subset is determined by 11 independent yes/no inclusion decisions. There are 2 choices for each element, so multiplication gives 211=2048. This counts the empty subset and the full subset as well as all intermediate sizes; equivalently, sum the binomial coefficients C(11, k).
On positive integers, aRb iff a≠b and a, b share a divisor other than 1. Which properties? A symmetric/reflexive/not transitive; B reflexive/not symmetric/not transitive; C transitive/not reflexive/not symmetric; D symmetric/not reflexive/not transitive.
Your answer
Answer & solution
Official answer: D
Common-divisor sharing and distinctness are symmetric. No aRa is allowed, so the relation is not reflexive. For example 2R6 and 6R3 hold, but 2R3 fails. Thus symmetric, nonreflexive, nontransitive, D.
If a, b share a nonunit divisor, then b, a share the same divisor, and distinctness is also symmetric. Reflexivity fails for every a because the definition expressly excludes a=b. For transitivity, use 2, 6, 3:2 and 6 share 2, and 6 and 3 share 3, but 2 and 3 are coprime. A single triple disproves transitivity. Thus D lists exactly the verified properties.
Prime factorization is 2100=21×100=2²·3¹·5²·7¹. Every positive divisor uniquely selects an exponent for each prime, no larger than the original exponent. Choices are 3 for the power of 2, 2 for 3, 3 for 5, and 2 for 7. Multiply 3×2×3×2=36. This includes 1(all exponents 0)and 2100(all maximal); negative divisors are not included in the conventional count.
Similar questions2 more → · asked again: GATE 2012, Q37
Sets, Relations & Functions
Tap to enlarge
How many onto functions exist from a four-element set to a three-element set?
Answer & solution
Official answer: 36
There are 34 total functions. Exclude functions omitting at least one codomain value by inclusion-exclusion: 34−C(3, 1)24+C(3, 2)14=81−48+3=36. Equivalently choose the repeated pair of domain elements in 6 ways, its image in 3 ways and assign the other two images in 2 ways.
There are 3⁴=81 functions in total. For each of the three codomain elements, 2⁴=16 functions omit it. Subtract 3·16, then restore the three intersections where only one codomain element is used. The result is 81−48+3=36. Equivalently, an onto function must have fiber sizes 2, 1, 1: choose the repeated pair in C(4, 2)=6 ways, its image in 3 ways and assign the remaining two images in 2 ways. Both counts give 36.
Choose uniformly from all functions from a two-element set to a twenty-element set. Find the probability that the function is one-to-one.
Answer & solution
Official answer: 0.95
The first domain element has 20 possible images and the second must choose one of the remaining 19 for injectivity. Among 20² equally likely functions, 20*19 are injective, giving 19/20=0.95.
The first domain element may map to any of 20 values. Of the 20 choices for the second, exactly 19 differ from the first. Uniform independent choices among all 20² functions therefore give 20·19/20²=19/20=0.95. The number 20·19 is a count of injective functions, not the requested probability. The uniformity over all functions is essential to this simple ratio.
For which residue classes of n modulo 4 can a simple self-complementary graph have n vertices? Options: A multiple of 4; B even; C odd; D n≡0 or 1 (mod 4).
Your answer
Answer & solution
Official answer: D
A simple self-complementary graph has the same number m of edges as its complement, so 2m=C(n, 2), or m=n(n−1)/4. This must be an integer, forcing n congruent 0 or 1 modulo 4. Thus D. The statement is a necessary condition; it does not assert every graph of those orders is self-complementary.
If a graph has m edges, its complement has n(n−1)/2−m. An isomorphism between them requires equal edge counts, so m=n(n−1)/4 must be an integer. Among four consecutive residue possibilities, n(n−1) is divisible by 4 exactly when n≡0 or 1 modulo 4. This establishes the necessary arithmetic restriction; the standard existence theorem for self-complementary graphs establishes these classes are attainable, rather than claiming edge integrality alone constructs a graph.
A bridge is an edge whose removal disconnects a connected graph. Which assertion is true? A a tree has no bridges; B a bridge cannot lie on a simple cycle; C every edge of a clique of size at least 3 is a bridge; D a graph with bridges cannot contain a cycle.
Your answer
Answer & solution
Official answer: B
If an edge lies on a simple cycle, the rest of that cycle still connects its endpoints after removal, so it cannot disconnect a connected graph. Therefore a bridge cannot lie on a simple cycle, B. Every edge of a nontrivial tree is a bridge, and attaching a leaf to a triangle gives a graph with both a bridge and a cycle.
If an edge lies on a cycle, removing it leaves the rest of that cycle as an alternate path between its endpoints. It therefore cannot disconnect the graph, proving B. Every edge of a nontrivial tree is a bridge, refuting A. Clique edges with at least three vertices lie in triangles, refuting C. A triangle with a single pendant edge has both a cycle and a bridge, refuting D. These examples separate a property of one edge from a property of the entire graph.
Which displayed first-order formula is a tautology? A (∀x∃y R(x, y))↔(∃y∀x R(x, y)); B (∀x[∃y R(x, y)→S(x, y)])→∀x∃y S(x, y), with the printed quantifier scope retained; C [∀x∃y(P(x, y)→R(x, y))]↔[∀x∃y(¬P(x, y)∨R(x, y))]; D (∀x∀y P(x, y))→∀x∀y P(y, x). The published key selects C alone.
Your answer
Answer & solution
Official answer: C
Our answer: C and D are valid; official C only
C follows pointwise from P→R being equivalent to NOT P OR R, preserved under the same quantifiers. But D is also valid as literally printed: from forall x forall y P(x, y), every ordered pair satisfies P, including the pair(y, x), hence forall x forall y P(y, x). Universal quantifiers commute and bound-variable names can be renamed. Thus the single-choice question has at least two valid options, C and D, although the embedded official answer marks only C. A fails for equality on a two-element domain; B can have a false existential antecedent with S everywhere false.
Material implication P→R is equivalent pointwise to ¬P∨R. Applying identical quantifiers to equivalent predicates preserves equivalence, so C is valid. D is also valid: if P holds on every ordered pair, it holds on every swapped pair; exchanging the dummy variable names changes nothing. A fails on a two-element domain with R equality: each x has a matching y but no single y matches both. For B, take R and S both always false on a nonempty domain; the implication in its premise is true while the conclusion is false, regardless of the scope ambiguity in the displayed y. Thus the single-choice key omits another valid answer D.
Let S={1,2,3,4,5,6}, U be its power set, |T| denote cardinality, T′ denote complement relative to S, and T\R denote set difference. Which statement is true? (A) For every X∈U, |X|=|X′|. (B) There exist X,Y∈U with |X|=|Y|=5 and X∩Y=∅. (C) For every X,Y∈U, |X|=2, |Y|=3 and X\Y=∅. (D) For every X,Y∈U, X\Y=Y′\X′.
Your answer
Answer & solution
Official answer: D
1. For A, take X=∅: its size is 0 while its complement has size 6. For B, inclusion-exclusion gives |X∩Y|≥5+5−6=4, so disjointness is impossible. For C, its universal cardinality claims already fail at X=∅; even restricting to sizes 2 and 3 does not force containment, e.g. X={1,2}, Y={3,4,5}.
2. For any element t, t∈X\Y iff t∈X and t∉Y iff t∈Y′ and t∉X′, hence X\Y=Y′\X′. Thus D. Equal complement sizes need not hold, two 5-subsets of a 6-set cannot be disjoint, and arbitrary 2/3-subsets need not satisfy the proposed containment.
How many four-digit numbers can be made using only digits {1,2,3}, with digits in nondecreasing order from left to right? Repetition is permitted.
Answer & solution
Official answer: 15
1. For example, counts (2,1,1) give exactly 1123, not its other permutations, because sorting is required. Distributing four identical positions among three digit counts is the weak-composition count (4+3−1 choose 3−1).
2. A nondecreasing four-digit sequence is determined by counts c1, c2, c3≥0 summing to 4. Stars and bars gives C(6, 2)=15, with one sorted sequence for every count triple.
A room contains only Type 1 people, who always tell the truth, and Type 2 people, who always lie. You give a fair coin to someone of unknown type, ask them to toss it and hide the result, then ask the result. They reply: “The result of the toss is head if and only if I am telling the truth.” Which option is correct? (A) The result is head. (B) The result is tail. (C) If the person is Type 2, the result is tail. (D) If the person is Type 1, the result is tail.
Your answer
Answer & solution
Official answer: A
1. Let T indicate that the speaker tells the truth and H that the coin is heads.
2. The assertion is H↔T, whose truth value must equal T. If T is true, H must be true; if T is false, H↔false must be false, again requiring H true. Thus the coin is heads, A.
R is a relation on ordered pairs of positive integers, with ((p,q),(r,s))∈R iff p−s=q−r. Which description is correct? (A) reflexive and symmetric; (B) reflexive but not symmetric; (C) not reflexive but symmetric; (D) neither reflexive nor symmetric.
Your answer
Answer & solution
Official answer: C
1. The condition p−s=q−r is equivalent to p+r=q+s, unchanged by swapping the two ordered pairs; the relation is symmetric.
2. Reflexivity at(p, q) would require 2p=2q, which fails for example at(1, 2). Thus it is not reflexive but is symmetric, C.
X1,X2,X3 are independent, identically distributed bits with P(Xi=0)=P(Xi=1)=1/2. Let Y=(X1X2) XOR X3, where juxtaposition denotes ordinary multiplication of bits. Find P(Y=0 | X3=0).
Answer & solution
Official answer: 0.75
1. The four conditional equally likely (X1,X2) pairs are 00,01,10,11. With X3=0, XOR changes nothing, so the first three give Y=0 and only 11 gives Y=1.
2. Conditioning on X3=0 makes Y=X1X2. Independence leaves X1 and X2 independent fair bits. Their product is 1 only when both are 1, with probability 1/4. Therefore Pr(Y=0|X3=0)=3/4=0.75.
Let glitters(x) mean that x glitters and gold(x) mean that x is gold. Formalize “Not all that glitters is gold.” A: ∀x(glitters(x)⇒¬gold(x)). B: ∀x(gold(x)⇒glitters(x)). C: ∃x(gold(x)∧¬glitters(x)). D: ∃x(glitters(x)∧¬gold(x)).
Your answer
Answer & solution
Official answer: D
1. Method and setup. Start with the universal statement “all glittering things are gold.” Negate the universal quantifier to an existential one, and negate the implication using ¬(P⇒Q)=P∧¬Q. The counterexample must glitter while failing to be gold, not the reverse.
2. Work through the result and its assumptions. Negate ∀x(glitters(x)→gold(x)): the result is ∃x(glitters(x)∧¬gold(x)), D. Not all is existential counterexample, not none.
For directed G=(V,E), which construction preserves its strongly connected components? A: Keep V and use every ordered pair not in E. B: Keep V and reverse all edges: E₂={(u,v):(v,u)∈E}. C: Keep V and add an edge (u,v) whenever G has a path from u to v of length at most 2. D: Keep E but remove isolated vertices from V. The paper asks for one option.
Your answer
Answer & solution
Official answer: B
Our answer: B and C
1. Method and setup. An SCC is an equivalence class under mutual reachability, so compare reachability rather than individual edges. Reversing paths preserves mutual reachability. Also, shortening existing paths into edges cannot introduce reachability that was absent, while retaining all length-one edges preserves old paths.
2. Work through the result and its assumptions. Reversing every edge reverses paths and preserves mutual reachability, so B preserves every SCC. C also preserves them: it includes every original length 1 edge, and every added edge abbreviates an original path of length≤2. Thus reachability in either graph is equivalent. The official single answer B omits the equally valid C. Deleting isolated vertices loses singleton SCCs; complementing edges need not preserve SCCs.
Five bags are labeled 1 to 5. Each bag contains coins all weighing either 10 g or 11 g. Take respectively 1,2,4,8,16 coins from the five bags; their total weight is 323 g. Find the product of the labels of the bags with 11 g coins.
Answer & solution
Official answer: 12
1. Method and setup. The powers-of-two sample sizes encode the heavy bags uniquely. Subtract the weight obtained if every selected coin were light; each heavy bag contributes exactly its sampled number of extra grams. The requested product uses bag labels, not the numbers of coins taken.
2. Work through the result and its assumptions. If all selected coins weighed10g, total weight would be 31×10=310g. The extra 13g has binary decomposition 13=1+4+8. Thus bags 1, 3, 4 contain 11g coins, and the product of labels is 1×3×4=12.
Four independent fair six-sided dice are rolled. The probability of a total of 22 is X/1296. Find X.
Answer & solution
Official answer: 10
1. Method and setup. There are 6⁴ equally likely ordered outcomes. Because 22 is close to the maximum 24, work with deficits from six rather than enumerating all possible die values. A deficit sum of two can arise as one deficit of two or two deficits of one, providing a quick independent count of 4+6 outcomes.
2. Work through the result and its assumptions. Write each die result as 6−di. Sum22 means d1+d2+d3+d4=2 with nonnegative deficits. The upper bound di≤5 is automatic, so stars and bars gives C(5, 3)=10 outcomes among 64=1296. Hence X=10, assuming independent fair dice.
An n-pennant is an ordered sequence of 1s and 2s whose sum is n. For example (1,1,2) is a 4-pennant, and (1,2) differs from (2,1). There is one 1-pennant and two 2-pennants. How many 10-pennants exist?
Answer & solution
Official answer: 88.9 to 89.1
Our answer: 89
1. Method and setup. Partition all sequences by their first symbol. Removing a leading 1 leaves an (n−1)-pennant; removing a leading 2 leaves an (n−2)-pennant. These classes are disjoint and exhaustive, yielding a Fibonacci-type recurrence without double counting different orders.
2. Work through the result and its assumptions. Let a 0=1 count the empty sequence and a 1=1. Partition sequences by their first entry 1 or 2: an=a(n−1)+a(n−2). The values through n=10 are 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89. Thus there are 89 ten-pennants, inside the published interval.
Let S be the set of functions f:{0,1}⁴→{0,1}. Let N be the number of functions from S to {0,1}. Find log₂(log₂ N).
Answer & solution
Official answer: 16
1. Method and setup. For a function from an m-element domain to {0,1}, each input independently chooses one of two outputs, so there are 2ᵐ functions. Apply this rule twice: first to the sixteen four-bit inputs, then to the resulting set of Boolean functions. Keep the two exponentiation levels distinct before taking logarithms.
2. Work through the result and its assumptions. The domain{0, 1}^4 has 16 elements, so S contains 216 Boolean functions. The number of functions from S to{0, 1} is N=22^16. Therefore log2(log2 N)=16.
A simple undirected graph has vertices (i,j) with 1≤i,j≤12. Two distinct vertices (a,b),(c,d) are adjacent exactly when |a−c|≤1 and |b−d|≤1. Self-loops are excluded. How many edges exist?
Answer & solution
Official answer: 506
1. Method and setup. The adjacency condition permits horizontal, vertical and diagonal neighboring grid points, like king moves on a chessboard. Count each undirected edge in one direction only. There are eleven gaps per row or column and two diagonals per unit square; longer or wrapping moves are not allowed.
2. Work through the result and its assumptions. Count horizontal and vertical nearest-neighbor edges: 12·11 each. Each of the 11·11 unit squares contributes two diagonals. These are all permitted distinct vertex pairs, so E=132+132+242=506; self-loops are excluded.
A nonincreasing tuple is graphic if it is the degree sequence of a simple undirected graph. Which six-tuple is not graphic? A: (1,1,1,1,1,1). B: (2,2,2,2,2,2). C: (3,3,3,1,0,0). D: (3,2,1,1,1,0).
Your answer
Answer & solution
Official answer: C
1. Method and setup. An even sum of degrees is necessary but not sufficient. Zero-degree vertices cannot be used as neighbors. In C only four vertices can have edges, so a degree-three vertex must connect to all the other nonisolated vertices. This forces more incidence on the proposed degree-one vertex than allowed.
2. Work through the result and its assumptions. For C, two zero-degree vertices leave only four nonisolated vertices. Each of the three degree 3 vertices must connect to all other three, forcing the fourth vertex to have degree at least 3 rather than 1. Thus C is impossible. A is three disjoint edges, B a six-cycle, and D is realized by edges 12, 13, 14, 25 with vertex 6 isolated, giving degrees 3, 2, 1, 1, 1, 0.
Which formula expresses exactly two of p,q,r being true? A: ((p↔q)∧r)∨(p∧q∧¬r). B: (¬(p↔q)∧r)∨(p∧q∧¬r). C: ((p→q)∧r)∨(p∧q∧¬r). D: (¬(p↔q)∧r)∧(p∧q∧¬r).
Your answer
Answer & solution
Official answer: B
1. Method and setup. Split on the truth value of r. When r is true, exactly one of p,q must be true, which is exclusive-or, the negation of equivalence. When r is false, both must be true. Combine these alternative cases with OR; AND would require r and ¬r simultaneously.
2. Work through the result and its assumptions. If r is true, exactly two true variables requires exactly one of p, q, namely NOT(p↔q). If r is false, both p and q must be true. The disjoint alternatives combine as[NOT(p↔q) AND r] OR[p AND q AND NOT r], B.
An office security system has 10 computers, exactly 4 working. Four are inspected uniformly at random without replacement. The system is declared functional if at least 3 inspected computers work. If this probability is p, find 100p.
Answer & solution
Official answer: 11.85 to 11.95
Our answer: 11.9047619
1. Set up the reasoning. Use a hypergeometric count because selections are without replacement. A successful sample has either exactly three working computers and one failed computer, or four working computers.
2. Derive the result. There are C(10, 4)=210 equally likely subsets. Favorable subsets contain 3 working and 1 failed computer, C(4, 3)C(6, 1)=24, or all 4 working, one more. Thus p=25/210 and 100p≈11.9048, inside the key interval.
3. Check the interpretation. The two favorable cases are disjoint, so add their counts. Do not use four independent trials with success probability 4/10: the composition changes after each draw. The question requests the percentage-scale number 100p, not p.
Each of the nine words in “The quick brown fox jumps over the lazy dog” is written on its own slip. One of the nine slips is chosen uniformly. Find the expected word length, rounded to one decimal place.
Answer & solution
Official answer: 3.8 to 3.9
Our answer: 3.9
1. Set up the reasoning. Every slip has probability 1/9, including both occurrences of the word the. Count letters in each word and use the probability-weighted average.
2. Derive the result. The nine word lengths are 3, 5, 5, 3, 5, 4, 3, 4, 3, totaling 35. Uniform selection gives expectation 35/9≈3.8889, rounded to one decimal place 3.9.
3. Check the interpretation. The random choice is of words, not individual letters and not distinct word spellings. Therefore repeated words must retain their separate slips in the denominator and numerator.
What is the maximum number of edges in a bipartite graph with 12 vertices?
Answer & solution
Official answer: 36
1. Set up the reasoning. For a simple bipartite graph with partition sizes a and b, edges can join only opposite parts. Thus at most ab edges exist, with equality for the complete bipartite graph.
2. Derive the result. If the two parts have a and 12−a vertices, at most a(12−a)=36−(a−6)² edges are possible. K6, 6 attains 36. This is the standard simple-graph convention.
3. Check the interpretation. The total-vertex constraint a+b=12 makes the product largest when the parts are balanced. Exhibiting K6,6 is necessary to show the upper bound 36 can actually be attained; a general complete graph is not bipartite.
Choose an integer uniformly from 1 through 100 inclusive. What is the probability it is divisible by none of 2,3,5?
Answer & solution
Official answer: 0.259 to 0.261
Our answer: 0.26
1. Set up the reasoning. Count the complement using inclusion-exclusion. Multiples of two or more divisors are counted repeatedly in the initial sum and must be corrected using their least common multiples.
2. Derive the result. Among1..100, counts divisible by 2, 3, 5 are 50, 33, 20. Pair intersections contribute 16, 10, 6 and the triple contributes 3. Their union has 50+33+20−16−10−6+3=74, leaving 26 integers. Under uniform selection the probability is 26/100=0.26, inside the official interval.
3. Check the interpretation. Use floor(100/d) for each divisor d. Subtract pair intersections for 6,10,15 and add back the triple intersection for 30, then subtract the union count from 100. The integer 1 is eligible and must not be excluded.
Similar questions2 more → · asked again: GATE 2015 Set 2, Q14, GATE 1995, Q7(a)
Proof Techniques & Number Theory
Tap to enlarge
How many distinct positive integer divisors does 2014 have?
Answer & solution
Official answer: 8
1. Set up the reasoning. Factor completely: 2014=2×1007=2×19×53. The factors 2,19,53 are distinct primes, each with exponent one.
2. Derive the result. 2014=2·19·53, three distinct primes. Each positive divisor selects exponent 0 or 1 for each prime, giving 2³=8 divisors.
3. Check the interpretation. Every divisor independently chooses whether to contain each prime. The divisor-count formula is the product of exponent-plus-one values; include both 1 and 2014 among the eight divisors.
Let S={1,2,…,2014}. For distinct subsets U,V define U<V when the smallest element of their symmetric difference lies in U. Statements: S1 some subset is larger than every other subset; S2 some subset is smaller than every other subset. Which is correct? A both; B only S1; C only S2; D neither.
Your answer
Answer & solution
Official answer: A
1. Set up the reasoning. The symmetric difference consists of elements belonging to exactly one of the sets. Compare an arbitrary nonempty set with the empty set, then compare the full set with an arbitrary proper subset.
2. Derive the result. For every nonempty U, the minimum element of U symmetric-difference empty lies in U, so U<empty: the empty set is greatest. For every proper subset V of S, the minimum element of S symmetric-difference V lies in S, so S<V: the full set is least. Both extrema therefore exist, A. This ordering reverses the usual lexicographic indicator convention with 0<1.
3. Check the interpretation. The smallest differing element belongs to the set on the left in the definition, so this ordering ranks presence before absence. That direction makes the full set least and the empty set greatest, the reverse of a common indicator-vector lexicographic convention.
A simple cycle with n vertices is isomorphic to its complement. Find n.
Answer & solution
Official answer: 5
1. Set up the reasoning. Isomorphic graphs have matching vertex degrees. Every vertex of a cycle has degree 2; in its complement it is adjacent to all vertices except itself and its two cycle neighbors.
2. Derive the result. Every cycle vertex has degree 2, whereas its complement has degree n−3. Isomorphism forces 2=n−3, hence n=5. The complement of C5 is indeed another five-cycle, realized by stepping two vertices at a time around the original cycle.
3. Check the interpretation. The equation 2=n-3 is necessary. Verify sufficiency at n=5: if the original cycle visits vertices 0,1,2,3,4, its complement cycle can visit 0,2,4,1,3,0. Degree counting alone would not prove existence without this check.
Which Boolean formula is NOT a tautology? A ((a→b)∧(b→c))→(a→c); B (a↔c)→(¬b→(a∧c)); C (a∧b∧c)→(c∨a); D a→(b→a).
Your answer
Answer & solution
Official answer: B
1. Set up the reasoning. An implication fails only when its premise is true and conclusion false. To refute a proposed tautology, one such assignment is enough; proving the others can be done by their logical forms.
2. Derive the result. Set a=b=c=false. Then a↔c is true, NOT b is true, and a AND c is false, so B evaluates true→(true→false)=false. A is implication transitivity, C follows by conjunction elimination and disjunction introduction, and D is a→(b→a), all tautologies. Hence B alone is not a tautology.
3. Check the interpretation. For B, make a and c both false so their equivalence is true, and b false so ¬b is true. Then the final conjunction is false. A expresses transitivity, C weakens a conjunction, and D preserves an assumed a regardless of b.
P says good mobile phones are not cheap; Q says cheap mobile phones are not good. Let L mean P implies Q, M mean Q implies P, and N mean P is equivalent to Q. Which holds? A only L; B only M; C only N; D L,M,N all true.
Your answer
Answer & solution
Official answer: D
Step 1: For an arbitrary phone, write G for “good” and C for “cheap”. P is G→¬C. Step 2: The contrapositive of G→¬C is C→¬G, precisely Q; contraposition preserves truth in classical logic. Both statements also simplify to ¬G∨¬C. Step 3: Therefore each implies the other, and they are equivalent. L, M and N all hold, D.
For finite sets X,Y and a function f:X→Y, which statement always holds? A For A,B⊆X, |f(A∪B)|=|f(A)|+|f(B)|. B For A,B⊆X, f(A∩B)=f(A)∩f(B). C For A,B⊆X, |f(A∩B)|=min{|f(A)|,|f(B)|}. D For S,T⊆Y, f⁻¹(S∩T)=f⁻¹(S)∩f⁻¹(T). Here inverse notation denotes preimage.
Your answer
Answer & solution
Official answer: D
Step 1: Test D elementwise: x belongs to f⁻¹(S∩T) exactly when f(x) belongs to both S and T. This is equivalent to x belonging to both preimages, proving D. Step 2: A fails for equal nonempty A and B because their common image is counted twice. Step 3: For B and C, choose disjoint singleton sets A={a}, B={b} with f(a)=f(b). Their intersection has empty image, but both individual images are the same singleton. No injectivity assumption was given, so those identities need not hold.
A group G has 15 elements. A proper subgroup L≠G has at least 4 elements. Determine the order of L.
Answer & solution
Official answer: 5
Step 1: Apply Lagrange’s theorem: the order of a finite subgroup divides the order of the group. Thus |L| is one of 1, 3, 5, 15. Step 2: The lower bound of 4 removes 1 and 3. Properness removes 15, since a subgroup with all 15 elements would be G itself. Step 3: The only remaining value is 5. The question supplies the existence of such a subgroup; the task is to determine its size.
Events A and B are mutually exclusive and exhaust sample space S, so A∪B=S. What is the largest possible P(A)P(B)?
Answer & solution
Official answer: 0.25
Step 1: Mutual exclusion gives P(A∪B)=P(A)+P(B), and exhaustion makes this sum 1. Let p=P(A), so P(B)=1−p with 0≤p≤1. Step 2: Complete the square: p(1−p)=1/4−(p−1/2)². The square is nonnegative, so the product is at most 1/4. Step 3: Equality is possible when both events have probability 1/2. Thus the maximum consistent with the given constraints is 0.25; this is not a claim that every particular probability space contains such an equal partition.
Let f:{0,1,…,2014}→{0,1,…,2014} satisfy f(f(i))=i for every i. P: every such f fixes every i. Q: every such f fixes at least one i. R: every such f is onto. Which holds? A P,Q,R; B Q,R only; C P,Q only; D R only.
Your answer
Answer & solution
Official answer: B
Step 1: For any target i, the element f(i) maps to i, so f is onto. It is also injective because applying f to f(a)=f(b) gives a=b. Thus R holds. Step 2: The identity f²=id means each orbit is either a fixed point or a two-element swap. Since the domain has 2015 elements, swaps alone cannot partition it; at least one fixed point exists, proving Q. Step 3: P fails: swap 0 and 1 while fixing 2,…,2014. This still satisfies f(f(i))=i without fixing every element. Therefore Q and R only, B.
A group (G,*) is generated by x and y: every element is a finite word in them. They satisfy x*x=y*y=x*y*x*y=y*x*y*x=e. What is the maximum possible order of G?
Answer & solution
Official answer: 4
Step 1: Relations x²=y²=e imply x⁻¹=x and y⁻¹=y. Also (xy)²=e gives xy=(xy)⁻¹=y⁻¹x⁻¹=yx, so the generators commute. Step 2: Reorder any word as xᵃyᵇ and remove even powers. Only four forms remain: e,x,y,xy. Hence |G|≤4. Step 3: This bound is attainable: the Klein four-group has two distinct commuting elements of order two whose product is a third distinct nonidentity element. All supplied relations hold, so the maximum is exactly 4 rather than merely at most 4.
Similar questions1 more → · asked again: GATE 1992, Q3(iii)
Trees & Connectivity
Tap to enlarge
A forest G has n vertices and k connected components. How many edges does it contain? A floor(n/k); B ceil(n/k); C n−k; D n−k+1.
Your answer
Answer & solution
Official answer: C
Step 1: Each connected component of a forest is a tree. A tree with vi vertices contains vi−1 edges, including a one-vertex component with zero edges. Step 2: Sum across the k components: E=Σ(vi−1)=Σvi−k=n−k. Step 3: Thus C is correct. The quotient n/k concerns an average component size, not the total edge count; the extra +1 in D would already fail for a single tree.
Let δ be minimum vertex degree. For every planar graph with n vertices and δ≥3, which is true? A every planar embedding has at least n/2+2 faces; B every embedding has fewer than n/2+2 faces; C some embedding has fewer than n/2+2 faces; D some embedding has at most n/(δ+1) faces.
Your answer
Answer & solution
Official answer: A
Step 1: By the degree-sum formula, 2E=Σdeg(v)≥3n, hence E≥3n/2. Step 2: For a planar embedding with c connected components, Euler’s formula is n−E+F=1+c, counting the outer face. Thus F=E−n+1+c≥n/2+1+c. Step 3: Since c≥1, F≥n/2+2 in every embedding, proving A without needing a connectedness assumption. B and C contradict this bound; D offers a much smaller upper bound and cannot be the universal conclusion.
Choose the formula for “not all rainy days are cold”. A ∀d(Rainy(d)∧¬Cold(d)); B ∀d(¬Rainy(d)→Cold(d)); C ∃d(¬Rainy(d)→Cold(d)); D ∃d(Rainy(d)∧¬Cold(d)).
Your answer
Answer & solution
Official answer: D
Step 1: “All rainy days are cold” is ∀d(Rainy(d)→Cold(d)). Negate the entire statement, not just the cold predicate inside an unchanged universal quantifier. Step 2: Move negation through the quantifier: ∃d ¬(Rainy(d)→Cold(d)). Since ¬(p→q)=p∧¬q, this becomes ∃d(Rainy(d)∧¬Cold(d)). Step 3: Therefore D: at least one rainy day is not cold. A incorrectly says every day is rainy and not cold, a far stronger claim.
On the integers define x⊕y=x²+y². Which holds? A commutative but not associative; B both; C associative but not commutative; D neither.
Your answer
Answer & solution
Official answer: A
x⊕y=x²+y² is symmetric, so it is commutative. It is not associative: (1⊕1)⊕2=2²+2²=8, whereas 1⊕(1⊕2)=1²+5²=26. Therefore A.
Commutativity asks whether swapping the two inputs changes the output; x²+y²=y²+x² for all integers. Associativity asks whether changing parentheses changes a three-input computation. For inputs 1, 1, 2, first forming 1⊕1 gives 2 and then 2⊕2 gives 8. First forming 1⊕2 gives 5 and then 1⊕5 gives 26. One counterexample is enough to disprove associativity, whereas commutativity was established for arbitrary inputs.
Cars arriving per minute follow a Poisson distribution of mean 3. Find P(X<3): A8/(2e³), B9/(2e³), C17/(2e³), D26/(2e³).
Your answer
Answer & solution
Official answer: C
For Poisson mean 3, P(X<3)=P(0)+P(1)+P(2)=e−3(1+3+9/2)=17/(2e³), C.
For Poisson mean λ, P(X=k)=e−λλk/k!. The event fewer than 3 consists of the disjoint outcomes 0, 1, 2. Substituting λ=3 gives probabilities e−3, 3e−3, and(9/2)e−3. Their sum is(1+3+4.5)e−3=8.5e−3=17/(2e³). Do not include X=3: “fewer than” is strict.
An undirected random graph has 8 vertices, with edge probability 1/2 for each vertex pair. Find the expected number of unordered triangles. A1/8, B1, C7, D8. The standard independent-edge model is intended.
Your answer
Answer & solution
Official answer: C
Our answer: C under independent-edge model
For each of C(8, 3)=56 vertex triples, its triangle indicator has mean(1/2)3=1/8 under the standard independent-edge random-graph model. By linearity of expectation the expected count is 56/8=7, C. Equal individual edge probabilities alone would not establish independence: choosing either the complete or empty graph with probability 1/2 would instead give mean 28. The usual random-graph model is therefore a necessary convention.
Use one indicator variable for each unordered three-vertex subset, not for each ordered traversal of a triangle. There are 8·7·6/6=56 such subsets. Its three edges must all occur, with probability(1/2)³ under independence. The expected sum is the sum of expectations, so 56/8=7. Distinct triangle indicators can share edges and need not be independent; linearity of expectation does not require their independence. The independence needed is within the three edges of one triangle.
For undirected graphs, assess P:the number of odd-degree vertices is even; Q:the sum of all degrees is even. A Ponly; B Qonly; C both; D neither.
Your answer
Answer & solution
Official answer: C
The source asks about undirected graphs. Each edge contributes 2 to the sum of vertex degrees, so that sum is 2|E| and even. Reducing the sum modulo 2 shows that the number of odd-degree vertices must also be even. Thus both P and Q hold, C.
Count edge endpoints in two ways. Summing degrees counts each undirected edge once at each end, so Σdeg(v)=2|E| and Q holds. Separate even- and odd-degree vertices. Even degrees contribute 0 modulo 2; each odd degree contributes 1. Since the total is even, the count of odd contributions must be even, proving P. The result also accommodates loops if each loop contributes 2 to degree, though the ordinary simple-graph convention suffices.
The line graph has one vertex per original edge, adjacent when the corresponding edges share an endpoint. Which claims hold universally? P line graph of a cycle is a cycle; Q of a clique is a clique; R of a planar graph is planar; S of a tree is a tree. A Ponly; B P, R; C Ronly; D P, Q, S.
Your answer
Answer & solution
Official answer: A
A cycle’s edges form another cycle in the line graph, so P holds. Q fails for K4: two disjoint original edges become nonadjacent vertices. R fails for the planar star K1, 5, whose line graph is nonplanar K5. S fails for the tree K1, 3, whose line graph is the triangle K3. Therefore only P is universally true, A.
A universal assertion can be refuted with one permitted example. On a cycle each edge meets exactly its predecessor and successor, forming another cycle. In K4, edges 12 and 34 are disjoint, so their line-graph vertices are not adjacent: Q fails. A planar star with five leaves has all five edges meeting the center, so its line graph is K5 and nonplanar: R fails. A three-leaf star is a tree but has line graph K3, a cycle: S fails. Only P survives.
Translate “None of my friends are perfect,” with F(x)=friend and P(x)=perfect. A ∃x(F(x)∧¬P(x)); B ∃x(¬F(x)∧P(x)); C ∃x(¬F(x)∧¬P(x)); D ¬∃x(F(x)∧P(x)).
Your answer
Answer & solution
Official answer: D
The statement says there is no object that is both a friend and perfect: ¬∃x(F(x)∧P(x)), option D. Equivalently ∀x(F(x)→¬P(x)). A merely says at least one friend is imperfect and does not rule out another perfect friend. MuPDF rendering was used to verify the existential quantifiers and conjunctions omitted by the Poppler render.
“None” rules out the existence of a perfect friend, which is the negation of an existential conjunction. It does not assert that any friend exists at all. Therefore the statement remains true when the speaker has no friends, whereas A would be false in that case because it requires an imperfect friend to exist. B and C speak about nonfriends and do not constrain perfect friends. D is exactly the desired prohibition, equivalently ∀x(F(x)→¬P(x)).
Which option is NOT equivalent to ¬∃x[(∀y α)∧(∀z β)]? A∀x[(∃z¬β)→∀yα]; B∀x[(∀zβ)→∃y¬α]; C∀x[(∀yα)→∃z¬β]; D∀x[(∃y¬α)→∃z¬β]. The single-choice source has official Marks to All.
Your answer
Answer & solution
Official answer: Marks to All
Our answer: Both A and D are not equivalent.
For each x, write P(x)=∀y α and Q(x)=∀z β. Quantifier negation and De Morgan’s law turn the target ¬∃x(P∧Q) into ∀x(¬P∨¬Q). Option B is ∀x(Q→¬P), and option C is ∀x(P→¬Q); both simplify to that target. Option A is ∀x(¬Q→P)=∀x(Q∨P), while option D is ∀x(¬P→¬Q)=∀x(P∨¬Q). Neither is equivalent to the target. For an explicit countermodel, use a nonempty singleton domain and let α and β both be true: the target is false, but A and D are both true. Hence the single-choice request has two qualifying options, A and D. The official Code A key resolves scoring as Marks to All; it does not select one letter.
Using P=∀yα and Q=∀zβ, the target is universally ¬P∨¬Q. Implication U→V means ¬U∨V. Therefore B becomes¬Q∨¬P and C becomes¬P∨¬Q, both correct equivalents. A instead becomes Q∨P, and D becomes P∨¬Q. At P=Q=true, both AandDare true while the target is false. This is a direct two-option counterexample to a single-choice “NOT equivalent” question, explaining why MTA rather than a repaired single letter is retained.
I1: If it rains then the cricket match will not be played. The cricket match was played. Inference: There was no rain. I2: If it rains then the cricket match will not be played. It did not rain. Inference: The cricket match was played.
Which of the following is TRUE? (A) Both I1 and I2 are correct inferences (B) I1 is correct but I2 is not a correct inference (C) I1 is not correct but I2 is a correct inference (D) Both I1 and I2 are not correct inferences
Your answer
Answer & solution
Official answer: B
Let R mean rain and M mean match played. The premise is R→¬M. Its contrapositive M→¬R proves inference I1. From ¬R alone one cannot infer M: the match could be cancelled for another reason. I2 denies the antecedent and is invalid. Hence B.
Check: A truth assignment supplies a counterexample to I2: set R=false and M=false. Both R→¬M and ¬R are true, but M is false. In contrast, R=true together with M=true would violate the conditional, so I1 is forced.
What is the correct translation of the following statement into mathematical logic? “Some real numbers are rational” (A) ∃x (real(x) ∨ rational(x)) (B) ∀x (real(x) → rational(x)) (C) ∃x (real(x) ∧ rational(x)) (D) ∃x (rational(x) → real(x))
Your answer
Answer & solution
Official answer: C
Some asserts existence of an object satisfying both properties. The translation is ∃x(real(x)∧rational(x)), C. A disjunction need not satisfy both properties, a universal quantifier says all rather than some, and an implication can be true solely because its antecedent is false.
Check: The conjunction ensures that the same witness x is both real and rational. For instance, x=1/2 is such a witness. Using ∨ would allow an object satisfying just one property and would not express the stated overlap.
Let G be a simple undirected planar graph on 10 vertices with 15 edges. If G is a connected graph, then the number of bounded faces in any embedding of G on the plane is equal to (A) 3 (B) 4 (C) 5 (D) 6
Your answer
Answer & solution
Official answer: D
Euler’s formula for a connected plane graph is V−E+F=2, counting the unbounded outer face. With V=10 and E=15, F=7. Exactly one face is unbounded, so the number of bounded faces is 6, D. The count is independent of the particular embedding.
Check: F=E−V+2=15−10+2=7 is the total face count. Removing the exterior gives E−V+1=6. Using seven as the bounded count would mistakenly count the outside region as a bounded face.
Consider a random variable X that takes values +1 and −1 with probability 0.5 each. The values of the cumulative distribution function F(x) at x = −1 and +1 are (A) 0 and 0.5 (B) 0 and 1 (C) 0.5 and 1 (D) 0.25 and 0.75
Your answer
Answer & solution
Official answer: C
The cumulative distribution is F(x)=P(X≤x). At x=−1 it includes the mass at −1, giving 0.5. At x=+1 it includes both possible outcomes, giving 1. The requested pair is (0.5, 1), C.
Check: The full CDF is 0 for x<−1, 1/2 for −1≤x<1, and 1 for x≥1. CDFs include the probability mass at their argument; using P(X<x) instead would produce incorrect endpoint values.
Which candidate graph is isomorphic to the given graph? All graphs are simple and undirected. The following edge lists faithfully encode the unlabeled drawings; labels are assigned only for this transcription. Given: {01,12,23,34,40,05,06,67}, i.e. a five-cycle with one-edge and two-edge branches attached at vertex 0. (A) {01,12,20,23,04,45,06,67}. (B) {01,12,23,34,40,05,06,67}, drawn with a curved edge completing its cycle. (C) {01,12,23,34,40,15,06,67}. (D) {01,12,23,30,04,45,06,67}. Each two-digit pair denotes one undirected edge between its digits.
Your answer
Answer & solution
Official answer: B
The given graph consists of one five-vertex cycle, with a pendant edge and a two-edge pendant path attached to the same cycle vertex. That attachment vertex has degree four; two vertices have degree one and the other five have degree two. Option B has exactly this structure: its curved outer edge completes the five-cycle, and its central degree-four vertex supports the one-edge upward branch and the two-edge lower-right branch. Map the attachment vertex, then the two distinct-length branches, then the five-cycle in order to obtain an isomorphism. A has a triangle and D a four-cycle; C attaches its pendant branches at different cycle vertices. Hence B.
Check: An isomorphism preserves cycle lengths, degrees, and which cycle vertices carry branches. Degree sequence alone is not sufficient: candidate C has a different attachment pattern. In the supplied edge encoding, the identity map from the given labels to B demonstrates every edge correspondence.
Suppose a fair six-sided die is rolled once. If the value on the die is 1, 2, or 3, the die is rolled a second time. What is the probability that the sum total of values that turn up is at least 6? (A) 10/21 (B) 5/12 (C) 2/3 (D) 1/6
Your answer
Answer & solution
Official answer: B
If the first roll is 6, success occurs immediately with probability 1/6; first rolls 4 or 5 stop unsuccessfully. For first roll 1, the second must be 5 or 6 (two outcomes); for 2 it must be 4, 5, 6 (three); for 3 it must be 3, 4, 5, 6 (four). Each ordered two-roll result has probability 1/36. Total success probability is 1/6+(2+3+4)/36=15/36=5/12, B. One-roll and two-roll terminal outcomes are not equiprobable.
Check: Conditioning on the first roll gives (1/6)(2/6)+(1/6)(3/6)+(1/6)(4/6)+1/6. The second roll is not performed after 4,5,6, so treating all terminal outcomes as one uniform list gives the wrong denominator.
Similar questions2 more → · asked again: GATE 2015 Set 2, Q58
Surjections to a two-element codomain
Sets, Relations & Functions
Tap to enlarge
How many onto (surjective) functions exist from an n-element set, n≥2, to a two-element set? (A) 2^n (B) 2^n−1 (C) 2^n−2 (D) 2(2^n−2).
Your answer
Answer & solution
Official answer: C
Each of n domain elements has two choices, giving 2n functions. A function is not onto precisely when all n elements map to one fixed codomain element. There are two such constant functions. Subtract them to obtain 2n−2 surjections, C.
Check: For n=2 the four functions are the two constants and the two bijections, leaving two onto functions. The formula 2²−2=2 passes this small-case check and explains why subtracting just one constant function is insufficient.
Let G be a complete undirected graph on 6 vertices. If vertices of G are labeled, then the number of distinct cycles of length 4 in G is equal to (A) 15 (B) 30 (C) 90 (D) 360
Your answer
Answer & solution
Official answer: Marks to All
Our answer: 45 (no listed option)
Choose the four vertices in C(6, 4)=15 ways. On a chosen set, cyclic rotations and reversal represent the same undirected cycle, so there are 4!/(4×2)=3 distinct cycles. The total is 15×3=45. None of the listed 15, 30, 90, 360 equals 45. Counting opposite orientations separately would give 90, but that is not the usual convention for distinct undirected cycles. The scoring key says Marks to All. The absent standard answer is an independent diagnosis, not an attributed official reason.
Check: For four fixed labels a,b,c,d, the three undirected cycles can be represented as a-b-c-d-a, a-b-d-c-a, and a-c-b-d-a. Fixing the first vertex removes rotations, and identifying each traversal with its reverse removes the factor two.
Two fair coins are flipped. Given that at least one outcome is a head, what is the probability that both outcomes are heads?
(A) 1/3 (B) 1/4 (C) 1/2 (D) 2/3
Your answer
Answer & solution
Official answer: A
Condition on the event at least one head. For independent fair coins the remaining equally likely outcomes are HH, HT, TH. Exactly one has two heads, so the conditional probability is 1/3, A. This is event conditioning, not a different reporting protocol that selects one coin to reveal.
Before conditioning, HH, HT, TH and TT each have probability 1/4. The given event removes TT, leaving event probability 3/4. The desired intersection is simply HH, of probability 1/4. Hence P(HH given at least one H)=(1/4)/(3/4). Do not collapse HT and TH into one equally weighted case: they are two different outcomes and together have twice the probability of HH.
K4 is the complete graph on four vertices (the source draws a square with both diagonals). Q3 is the eight-vertex cube graph, with vertices the binary triples and an edge when triples differ in one bit. Which statement is TRUE?
(A) K4 is planar but Q3 is not (B) Both K4 and Q3 are planar (C) Q3 is planar while K3 is not (the source prints K3 here) (D) Neither K4 nor Q3 is planar
Your answer
Answer & solution
Official answer: B
K4 has a planar embedding as a triangle with the fourth vertex inside joined to all three corners. Q3 has an embedding as nested squares joined at corresponding corners. Crossings in one drawing do not imply nonplanarity. Both graphs are planar, B.
Planarity is the existence of some drawing without edge crossings, not a property of one particular drawing. For K4, keep three vertices on an outer triangle and place the fourth inside; its three interior spokes do not cross. For Q3, draw one square inside another and join corresponding corners without crossings. These are explicit crossing-free embeddings. The source's K3 typo in C does not alter the correct B: K3 itself is also planar.
For a random variable with finite second moment, write R=E[X²]-(E[X])². Which is always true?
(A) R=0 (B) R<0 (C) R≥0 (D) R>0
Your answer
Answer & solution
Official answer: C
R=E[X²]−(E[X])²=E[(X−E[X])²]≥0 whenever the moments exist. A constant random variable attains 0, so strict positivity is not guaranteed. Thus C.
Expand the square: E[(X-μ)²]=E[X²]-2μE[X]+μ²=E[X²]-μ², using μ=E[X]. Every squared deviation is nonnegative, and an expectation preserves nonnegativity. If X is always 5, R=25-25=0; if X is equally likely 0 or 1, R=1/2-1/4=1/4. These examples exclude both the claim that R is always zero and the claim that it is always strictly positive.
For positive integers x,y,z, let P(x)=NOT(x=1) AND ∀y((∃z(x=y*z)) ⇒ ((y=x) OR (y=1))). Which option correctly characterizes P(x)? The source says 'P(x) being true means' in A, B and D.
(A) x is prime (B) x is a number other than 1 (C) P(x) is always true regardless of x (D) x has exactly two factors other than 1 and x
Your answer
Answer & solution
Official answer: A
Our answer: A as exact characterization; B is also a necessary consequence
The predicate excludes 1 and requires every positive divisor y of x to be either 1 or x. Thus it is equivalent to x being prime, A. The wording P(x) being true means... is potentially only implication: under that reading B, x is a number other than 1, is also true because it is explicitly a conjunct. A is the exact characterization and the official choice; uniqueness requires reading means as a full characterization rather than any necessary consequence.
Read the inner existential as 'y divides x': there exists a positive integer z with x=yz. The universal implication then says that whenever y is a divisor it is either 1 or x. For x=7 only these divisors occur, whereas x=6 fails at y=2,z=3. The leading conjunct rejects x=1. D incorrectly requires additional factors, and C fails for composites. B is a necessary consequence but not a sufficient description, as 6 is not 1 yet does not satisfy P.
For X=[x1,...,xn] with mean μx and standard deviation σx, define yi=a*xi+b with positive constants a,b. Y has mean μy and standard deviation σy. Which statement is INCORRECT?
(A) The index position of the mode in X corresponds to that in Y (B) The index position of the median in X corresponds to that in Y (C) μy=aμx+b (D) σy=aσx+b
Your answer
Answer & solution
Official answer: D
For yi=ax_i+b with a>0, ordering and frequencies are preserved, so modal and median positions correspond under consistent tie conventions. Means transform as μ_y=aμ_x+b. Deviations satisfy yi−μ_y=a(xi−μ_x), so standard deviation is σ_y=aσ_x, without+b. Thus D is incorrect; the same scaling holds for either population or sample normalization.
Translation by b shifts the center but leaves every distance from the center unchanged. Scaling by a multiplies each distance by a, each squared distance by a², and therefore the standard deviation by a after taking a square root. A simple check is a constant sample: its original standard deviation is zero and remains zero after any translation, while option D would incorrectly give b>0. Mode/median statements rely on the same consistent conventions when values tie.
Shuffle five cards numbered 1 through 5, and draw two sequentially without replacement. What is the probability that the first number is exactly one greater than the second?
(A) 1/5 (B) 4/25 (C) 1/4 (D) 2/5
Your answer
Answer & solution
Official answer: A
There are 5×4=20 equally likely ordered pairs of distinct cards. The first exceeds the second by exactly 1 for(2, 1),(3, 2),(4, 3),(5, 4), four cases. Probability4/20=1/5, A.
Ordered outcomes are the right sample space because the condition distinguishes the first and second cards. There are five choices initially and only four after the first removal. The favorable pairs exclude first card 1, because 0 is unavailable; each of first cards 2 through 5 permits exactly one second card. Using 25 as the denominator would incorrectly allow replacement, and counting both orders of each adjacent pair would answer the different absolute-difference question.
For a graph G=(V,E), define ξ(G)=Σ_d i_d·d, where i_d is the number of vertices of degree d. S and T are two different trees satisfying ξ(S)=ξ(T). Which relation holds between their numbers of vertices |S| and |T|? Options: (A) |S|=2|T|; (B) |S|=|T|−1; (C) |S|=|T|; (D) |S|=|T|+1.
Your answer
Answer & solution
Answer: C (no official key was published)
The defined sum counts every vertex degree and hence equals 2|E| by the handshake lemma. A tree with v vertices has v−1 edges, so ξ=2(v−1). Equal ξ for S and T implies equal vertex counts |S|=|T|, C; the trees need not be isomorphic.
Why the degree sum works: each edge has two endpoints, so contributes exactly two to Σ_d id d. Writing s=|S| and t=|T| gives 2(s−1)=2(t−1), hence s=t. “Different” need not mean different sizes: two nonisomorphic trees can have the same vertex count and therefore the same degree sum.
How many reflexive relations exist on a set with five elements? Options: (A) 2^10; (B) 2^15; (C) 2^20; (D) 2^25.
Your answer
Answer & solution
Answer: C (no official key was published)
A relation on five elements is a subset of 25 ordered pairs. Reflexivity forces the five diagonal pairs to be present. Each of the other 20 pairs can independently be present or absent, giving 2²⁰ relations, C.
Label the elements 1,…,5 and draw a 5×5 Boolean relation matrix. All diagonal entries must be 1; the 20 off-diagonal entries are free binary choices. The answer is not 225 because that counts all relations, including nonreflexive ones. Reflexivity does not impose symmetry, so (i,j) and (j,i) remain independent choices.
Let S={1,ω,ω²}, where ω and ω² are the nonreal cube roots of unity. With * denoting multiplication, which algebraic structure does (S,*) form? Options: (A) A group; (B) A ring; (C) An integral domain; (D) A field.
Your answer
Answer & solution
Answer: A (no official key was published)
The set {1,ω,ω²} is closed under multiplication because exponents reduce modulo 3. Multiplication is associative, 1 is the identity, and ω and ω² are inverses of each other. Hence it forms a cyclic group of order 3, A. A ring, integral domain or field additionally requires an additive operation and its associated axioms, not just this multiplicative structure.
A generator is ω: its powers are 1,ω,ω²,ω³=1. The multiplication table therefore cycles through these three elements. In particular, ω·ω²=1 and (ω²)²=ω. A field would require closure under an addition making an abelian group, including an additive identity; the specified single operation supplies no such structure.
A computer assembly is faulty with probability p. A test gives the correct result for any computer with probability q. What is the probability that a computer is declared faulty? Options: (A) pq+(1−p)(1−q); (B) (1−q)p; (C) (1−p)q; (D) pq.
Your answer
Answer & solution
Answer: A (no official key was published)
Partition computers into faulty with probability p and nonfaulty with probability 1−p. The test declares a faulty computer faulty with conditional probability q, while it incorrectly declares a nonfaulty computer faulty with probability 1−q. Total probability gives pq+(1−p)(1−q), option A. The phrase correct result for any computer supplies the same conditional accuracy q in each class.
A probability tree has two paths ending in “declared faulty”: truly faulty then correctly identified, probability pq; or truly sound then incorrectly classified, probability (1−p)(1−q). These events are disjoint, so add them. Checks: if q=1 the result is p; if q=0 the result is 1−p; if q=1/2 it is 1/2 regardless of p.
A positive divisor of 10^99 is selected uniformly at random. What is the probability that it is a multiple of 10^96? Options: (A) 1/625; (B) 4/625; (C) 12/625; (D) 16/625.
Your answer
Answer & solution
Answer: A (no official key was published)
Since 10⁹⁹=2⁹⁹5⁹⁹, every positive divisor is uniquely 2a5b with 0≤a,b≤99, giving 100² equally likely divisors. Being a multiple of 10⁹⁶ requires a,b≥96, leaving four choices for each exponent. Probability=16/10000=1/625, option A. Uniform choice is over divisors, not over integers up to 10⁹⁹.
The admissible exponents for each prime are 96,97,98,99, so the favorable divisors number 4×4=16. Divisibility requires both prime exponents to be large enough; satisfying only the exponent of 2 or only the exponent of 5 is insufficient. Reducing 16/10000 gives the offered 1/625.
Which sequences cannot be degree sequences of any simple graph? I: (7,6,5,4,4,3,2,1); II: (6,6,6,6,3,3,2,2); III: (7,6,6,4,4,3,2,2); IV: (8,7,7,6,4,2,1,1). Options: (A) I and II; (B) III and IV; (C) IV only; (D) II and IV.
Your answer
Answer & solution
Answer: D (no official key was published)
IV has eight vertices but a degree of 8, impossible in a simple graph. For II, the four highest degrees sum to 24; their vertices can contribute at most 4·3=12 internally and at most 3+3+2+2=10 from the other vertices, totaling only 22. Thus II also fails. Havel–Hakimi reduces I via (5,4,3,3,2,1,0) to (3,2,2,1,0,0), then (1,1,0,0,0), then zeros. III reduces via (5,5,3,3,2,1,1) to (4,2,2,1,1,0), then (1,1,0,0,0), then zeros. Hence I and III are graphical and exactly II and IV fail: D.
The even degree-sum condition alone cannot settle this question: all four sums are even. Sequence II fails an Erdős–Gallai bound on its four degree-six vertices: a vertex inside that set has only three possible neighbors inside it, while vertices outside cannot supply more incidences than their own degrees. Sequence IV already violates the individual maximum n−1=7.
F(x,y,t) means person x can fool person y at time t. Which sentence best expresses ∀x∃y∃t ¬F(x,y,t)? Options: (A) Everyone can fool some person at some time; (B) No one can fool everyone all the time; (C) Everyone cannot fool some person all the time; (D) No one can fool some person at some time.
Your answer
Answer & solution
Answer: B (no official key was published)
The formula ∀x∃y∃t ¬F(x,y,t) says that for each person x there is at least one person y and time t when x cannot fool y. Equivalently, ∀x ¬∀y∀t F(x,y,t): no one can fool everyone all the time. That is B. It does not prohibit fooling some people at some times.
Negating “x can fool everyone all the time” moves the negation across two universal quantifiers: ¬∀y∀t F becomes ∃y∃t ¬F. The outer ∀x then says this failure occurs for every would-be deceiver. The witnesses y and t may depend on x; the formula does not assert a single universally unfoolable person or a single common time.
Which property is not required of a group? A commutativity; B associativity; C an inverse for each element; D an identity element.
Your answer
Answer & solution
Answer: A (no official key was published)
Associativity, an identity and inverses are group axioms. Commutativity is an additional property of abelian groups, not all groups; for example permutations of three objects need not commute. Thus A.
A group requires closure, associativity, an identity and an inverse for every element. Commutativity is an extra condition defining an abelian group. For a counterexample to its necessity, permutations of three objects form a group under composition, but swapping 1/2 then 2/3 differs from doing those swaps in reverse order. Thus A is not a required axiom; B, C, D are.
A simple connected graph on n≥2 vertices has no odd cycle. Find its chromatic number: A 2; B 3; C n−1; D n.
Your answer
Answer & solution
Answer: A (no official key was published)
An undirected graph with no odd cycle is bipartite, so two colors suffice. Connectedness and n≥2 ensure at least one edge, so one color cannot suffice. The chromatic number is exactly 2, A.
A graph has a two-colouring exactly when it has no odd cycle. One construction assigns colours by even or odd distance from a chosen root. If an edge joined equal-parity vertices, the corresponding paths would create an odd closed walk and hence an odd cycle. The given connected graph with at least two vertices has an edge, so one colour is insufficient. Therefore its chromatic number is exactly 2, not merely at most 2.
Which statement holds for every simple connected undirected graph with more than two vertices? A all degrees distinct; B at least two equal degrees; C at least three equal degrees; D all degrees equal.
Your answer
Answer & solution
Answer: B (no official key was published)
For n vertices in a simple connected graph with n>2, each degree lies in{1, ..., n−1}. There are n vertices but only n−1 possible degrees. By the pigeonhole principle at least two share a degree, B. Three equal degrees are not necessary, as a path on four vertices shows.
Connectivity excludes degree 0, and simplicity excludes degree above n−1. Thus n vertices must be assigned one of only n−1 possible degree values. The pigeonhole principle forces a repeated degree, proving B. A three-vertex path has degrees 1, 2, 1, so neither three equal degrees nor all equal degrees is necessary. This example also makes clear why the claim is about at least two, not a particular pair.
On {x, y, z}, R={(x, y), (x, z), (z, x), (z, y)}. Classify R: A symmetric but not antisymmetric; B antisymmetric but not symmetric; C both; D neither.
Your answer
Answer & solution
Answer: D (no official key was published)
The pair(x, y) is present but(y, x) is absent, so the relation is not symmetric. Both(x, z) and(z, x) are present with x≠z, so it is not antisymmetric either. Therefore D.
Symmetry would require (y, x) whenever (x, y) belongs, but (y, x) is missing. Antisymmetry would forbid distinct elements relating both ways; here (x, z) and (z, x) are both present with x≠z. Hence each property fails by a concrete witness, giving D. Antisymmetry does not mean the logical negation of symmetry; it is a separate condition.
For a biased six-faced die, P(odd)=0.9P(even), the three even faces are equally likely, and P(even | value>3)=0.75. Which is closest to P(value>3)? A 0.453; B 0.468; C 0.485; D 0.492.
Your answer
Answer & solution
Answer: B (no official key was published)
Let E=P(even). Since P(odd)=.9E and probabilities sum to 1, E=10/19. Each even face has probability 10/57. Therefore P(even and >3)=P(4)+P(6)=20/57. Dividing by the given conditional probability 3/4 gives P(>3)=80/171≈.46784, closest to.468, B.
Let total even probability be e. Then 1=e+0.9e=1.9e, so e=10/19. Equal even faces each have probability e/3=10/57. Event even and greater than 3 consists precisely of 4 and 6, giving 20/57. Conditional probability equals intersection divided by P(value>3); hence 0.75=(20/57)/p and p=80/171≈0.46784. Choose the nearest offered value 0.468. No equality assumption for the three odd faces was needed.
A cyclic group has rows/columns a, b, c, d and multiplication rows [a, b, c, d], [b, a, d, c], [c, d, b, a], [d, c, a, b]. Which pair generates the group? A a, b; B b, c; C c, d; D d, a.
Your answer
Answer & solution
Answer: C (no official key was published)
The identity is a. The powers of c are c, b, d, a, and those of d are d, b, c, a, so each generates all four elements. The element b has order 2 and a order 1. Thus the generators are c, d, option C.
The first row/column shows a acts as identity. The element b squares to a, so it generates only{a, b}. From the table c²=b, c³=d, c⁴=a, which visits all elements. Similarly d²=b, d³=c, d⁴=a. Therefore exactly c and d have order 4 and generate the cyclic group, option C. Being nonidentity alone does not guarantee being a generator.
G(x), S(x), P(x) mean x is a gold ornament, silver ornament, precious. Formalize “Gold and silver ornaments are precious.” A ∀x(P→(G∧S)); B ∀x((G∧S)→P); C ∃x((G∧S)→P); D ∀x((G∨S)→P).
Your answer
Answer & solution
Answer: D (no official key was published)
The sentence applies to both categories separately: every object that is a gold ornament or a silver ornament is precious. Its formula is∀x((G(x)∨S(x))→P(x)), D. Using conjunction would restrict the statement to ornaments simultaneously in both categories.
The intended universal statement covers either kind of ornament: if an object is gold OR silver, it is precious. Thus the antecedent must use disjunction and the quantifier must be universal, giving D. B says only objects simultaneously gold and silver are precious, which misses gold-only objects. A reverses the implication and requires both materials for every precious object. C makes only an existential assertion and can hold vacuously for an unrelated object.
Operation P□Q outputs T, T, F, T on inputs TT, TF, FT, FF respectively. Which equals P∨Q? A ¬Q□¬P; B P□¬Q; C ¬P□Q; D ¬P□¬Q.
Your answer
Answer & solution
Answer: B (no official key was published)
The given operation is false only when its first argument is false and its second true, so P□Q=P∨¬Q. Substituting¬Q for the second argument yields P□¬Q=P∨Q, option B.
Inspect the sole false row: P is false while Q is true. This is exactly the false case of Q→P, equivalently P∨¬Q. To remove the negation on the second variable, supply ¬Q as that argument: P□¬Q=P∨¬¬Q=P∨Q. This is option B. A quick countercheck with P=Q=false rejects substitutions that incorrectly produce true in that case.
Which pair is equivalent? I ¬∀xP(x); II ¬∃xP(x); III ¬∃x¬P(x); IV ∃x¬P(x). A I, III; B I, IV; C II, III; D II, IV.
Your answer
Answer & solution
Answer: B (no official key was published)
By quantifier negation, ¬∀xP(x) is equivalent to∃x¬P(x). These are I and IV, option B. II means every object fails P, while III means every object satisfies P; neither is generally equivalent to I.
Negating “every object satisfies P” means “some object does not satisfy P.” Thus I and IV express precisely the same proposition. In contrast, II says no object satisfies P, while III says no object fails P. On a domain with one P-object and one non-P-object, I/IV are true but II/III are false; this separates the alternatives directly. Answer B.
For subsets P,Q,R of universe U, simplify (P∩Q∩R)∪(Pᶜ∩Q∩R)∪Qᶜ∪Rᶜ.
(A) Qᶜ∪Rᶜ (B) P∪Qᶜ∪Rᶜ (C) Pᶜ∪Qᶜ∪Rᶜ (D) U
Your answer
Answer & solution
Answer: D (no official key was published)
1. Distribute the common intersection: (P∩Q∩R)∪(Pᶜ∩Q∩R)=(P∪Pᶜ)∩Q∩R=Q∩R. 2. De Morgan gives Qᶜ∪Rᶜ=(Q∩R)ᶜ. 3. A set union its complement is U, giving D. The result is independent of P.
Which is true for every planar graph on n vertices?
(A) It is connected (B) It is Eulerian (C) It has a vertex cover of size at most 3n/4 (D) It has an independent set of size at least n/3
Your answer
Answer & solution
Answer: C (no official key was published)
1. By the four-color theorem, a simple loopless planar graph has an independent color class of size at least n/4. Its complement covers every edge and has size at most 3n/4, proving C. 2. A planar graph need not be connected or Eulerian. K4 is planar but has maximum independent-set size 1<4/3, refuting D. 3. The standard loopless graph convention is needed for the coloring argument.
For positive integer k, P is the sum of odd i with 1≤i≤2k, and Q is the sum of even i in the same range. Which relation holds?
(A) P=Q−k (B) P=Q+k (C) P=Q (D) P=Q+2k
Your answer
Answer & solution
Answer: A (no official key was published)
1. Write the odd terms as 2j−1 and their paired even terms as 2j, for j=1,…,k. 2. Each even term exceeds its odd partner by exactly one, so Q−P=Σ1=k. 3. Rearrange to P=Q−k, A. Equivalently P=k² and Q=k(k+1).
Aishwarya studies either CS or mathematics each day. After a CS day, the probability of mathematics next day is 0.6; after a mathematics day, the probability of CS next day is 0.4. Given CS on Monday, what is the probability of CS on Wednesday?
(A) 0.24 (B) 0.36 (C) 0.4 (D) 0.6
Your answer
Answer & solution
Answer: C under the Markov interpretation (no official key was published)
1. Interpret the given next-day probabilities as the transition probabilities of a two-state Markov chain. After CS, the chance of CS is 1−0.6=0.4. 2. Wednesday CS can arise through CS→CS→CS with probability 0.4×0.4=0.16 or CS→Math→CS with probability 0.6×0.4=0.24. 3. These cases are disjoint; add them to get 0.40, C. Without the usual Markov interpretation, unconditional pairwise information alone would not justify the two-step conditional calculation.
Predicates fsa(x), pda(y), equivalent(a,b) mean finite-state automaton, pushdown automaton and language equivalence respectively. Which printed formula represents “Each finite-state automaton has an equivalent pushdown automaton”? Quantifier scopes below retain the printed parentheses.
Answer: No exact displayed formula under ordinary first-order scope (no official key was published)
1. The intended formula is∀x(fsa(x)→∃y(pda(y)∧equivalent(x,y))). As printed, A puts ∀x only inside its antecedent, leaving the x in equivalent(x,y) free; it also fails to express a separate witness for each FSA. B has the wrong negation and quantifier structure. 2. C asserts that every object is an FSA rather than restricting the implication to FSAs. D likewise asserts every object is a PDA and existentially chooses an FSA, reversing the intended roles. The high-resolution source confirms these displayed forms. 3. A would become the intended answer only after repairing its quantifier scope; no unavailable official key is inferred.
Which propositions are equivalent? I: P∨¬Q. II: ¬(¬P∧Q). III: (P∧Q)∨(P∧¬Q)∨(¬P∧¬Q). IV: (P∧Q)∨(P∧¬Q)∨(¬P∧Q).
(A) I and II only (B) I,II,III only (C) I,II,IV only (D) I,II,III,IV
Your answer
Answer & solution
Answer: B (no official key was published)
1. De Morgan converts II to P∨¬Q, exactly I. 2. In III, the first two terms combine to P. Then P∨(¬P∧¬Q)=P∨¬Q by distribution/absorption. 3. In IV, the first two terms again combine to P, but P∨(¬P∧Q)=P∨Q. At P=false,Q=true, this differs from I. Thus exactly I,II,III agree, B.
A graph G has n vertices and 2n−2 edges partitionable into two edge-disjoint spanning trees. Which statement is NOT true?
(A) Every induced subgraph on k vertices has at most 2k−2 edges (B) The minimum cut has at least two edges (C) Every pair of vertices has two edge-disjoint paths (D) Every pair of vertices has two internally vertex-disjoint paths
Your answer
Answer & solution
Answer: D (no official key was published)
1. The claim about two internally vertex-disjoint paths is not guaranteed. Take two copies of K4 sharing exactly one vertex: n=7 and m=12=2n−2. Each K4 decomposes into two spanning trees (for example a path on its four vertices and its complementary path); joining corresponding trees at the shared vertex gives two edge-disjoint spanning trees of the whole graph. 2. The common vertex is nevertheless an articulation vertex, so paths between the two sides must share it. A is true because each tree induces a forest with at most k−1 edges on a nonempty k-vertex set. B is true since each spanning tree contributes a distinct edge across every nontrivial cut. 3. C follows by taking the unique path in each of the two edge-disjoint trees.
1. Divide valid strings of length n≥2 by their first bit. A leading 1 can be followed by any valid length-(n−1) string. 2. A leading 0 must be followed by 1, leaving any valid length-(n−2) suffix. These two groups cannot overlap and cover every valid string. 3. Add their counts: xₙ=xₙ₋₁+xₙ₋₂, D. Initial values are x₀=1 and x₁=2, which are essential for numerical evaluation.
Let xₙ count binary strings of length n containing no consecutive zeros. What is x₅?
(A) 5 (B) 7 (C) 8 (D) 16
Your answer
Answer & solution
Answer: 13; no listed option (no official key was published)
1. The initial counts are x0=1 for the empty string and x1=2 for 0 and 1. The recurrence from Q78 gives x2=3, x3=5, x4=8 and x5=13. 2. Independently, count by the number of nonadjacent zeros: binomial(6,0)+binomial(5,1)+binomial(4,2)+binomial(3,3)=1+5+6+1=13. The scan lists 5,7,8,16; none is correct. 3. Do not use Fibonacci seeds 1,1, which count the wrong objects.
A set S has n elements. How many ordered pairs belong to the largest and smallest equivalence relations on S, respectively? Options: (A) n and n (B) n² and n (C) n² and 0 (D) n and 1
Your answer
Answer & solution
Answer: B (no official key was published)
1. Approach. An equivalence relation must be reflexive, symmetric and transitive. Test the two extremes: all possible pairs, and only the n self-pairs.
2. Derivation and interpretation. The universal relation S×S is an equivalence relation with n² pairs. Reflexivity requires every diagonal pair (s,s), and those n pairs alone form the identity equivalence relation. Hence the largest and smallest counts are n² and n, B.
Let G be a nonplanar graph with the minimum possible number of edges. Which size is intended for G? Options: (A) 9 edges, 5 vertices (B) 9 edges, 6 vertices (C) 10 edges, 5 vertices (D) 10 edges, 6 vertices
Your answer
Answer & solution
Answer: B for the minimal nonplanar core (no official key was published)
1. Approach. Compare the two minimal nonplanar cores K5 and K3,3. Subdividing edges cannot reduce their edge counts. Be careful that isolated vertices do not affect planarity or edge count.
2. Derivation and interpretation. By Kuratowski’s theorem a nonplanar graph contains a subdivision of K5 or K3,3. Such a subgraph needs at least 10 or 9 edges respectively. K3,3 attains the 9-edge minimum with 6 vertices, giving B. The vertex count is not forced by edge minimality alone: isolated vertices can be added without changing the 9 edges or nonplanarity. Thus 6 is the minimum/core vertex count, not a universal claim for every graph minimizing only edges.
How many pairwise nonisomorphic Abelian groups of order 4 exist? Options: (A) 2 (B) 3 (C) 4 (D) 5
Your answer
Answer & solution
Answer: A (no official key was published)
1. Approach. Lagrange’s theorem permits element orders 1, 2 or 4. Divide the classification into whether an element of order 4 exists; the remaining case forces all three nonidentity elements to square to the identity.
2. Derivation and interpretation. An element of order 4 generates cyclic C4. If none exists, every nonidentity element has order 2, giving C2×C2, the Klein four-group. These are nonisomorphic because their element orders differ and exhaust the possibilities. Thus 2, A.
Statement not equivalent to a disconnected graph existing
Propositional & Predicate Logic
Tap to enlarge
Graph(x) means x is a graph and Connected(x) means x is connected. Which formula does NOT express “Not every graph is connected”? Options: (A) ¬∀x(Graph(x)⇒Connected(x)) (B) ∃x(Graph(x)∧¬Connected(x)) (C) ¬∀x(¬Graph(x)∨Connected(x)) (D) ∀x(Graph(x)⇒¬Connected(x))
Your answer
Answer & solution
Answer: D (no official key was published)
1. Approach. Negate “every graph is connected” by moving the negation through the universal quantifier, then through the implication. The result asserts at least one disconnected graph, not that all graphs are disconnected.
2. Derivation and interpretation. Not every graph is connected means ∃x(Graph(x)∧¬Connected(x)), B. Negating the universal implication gives A, and rewriting implication as ¬Graph∨Connected gives C. D instead says every graph is disconnected, a stronger and different claim. Hence D.
Which graph is guaranteed to have an Eulerian circuit? Options: (A) Any k-regular graph with even k (B) The complete graph on 90 vertices (C) The complement of a cycle on 25 vertices (D) None of these
Your answer
Answer & solution
Answer: C (no official key was published)
1. Approach. For a nontrivial undirected graph, all nonisolated vertices must be connected and have even degrees. Check connectedness as well as parity; even degrees alone do not suffice.
2. Derivation and interpretation. The complement of C25 has degree 24−2=22 at each vertex and is connected, so it has an Euler circuit, C. An even-regular graph need not be connected, so A is not guaranteed. K90 has odd degree 89 and is not Eulerian. The connectedness of the complement follows because any two nonadjacent vertices were neighbors in the cycle and share a vertex nonadjacent to both on that cycle.
Choose uniformly from all 20! permutations of 1,2,…,20. What is the probability that 2 appears before every other even number? Options: (A) 1/2 (B) 1/10 (C) 9!/20! (D) None of these
Your answer
Answer & solution
Answer: B (no official key was published)
1. Approach. Ignore the odd numbers and examine only the relative order of the ten even numbers. Symmetry gives each even number the same chance of occupying the first even position.
2. Derivation and interpretation. There are ten even numbers among 1,...,20. Their relative order is uniformly random, and each is equally likely to be first among them. Therefore the chance that 2 is earliest is 1/10, B.
Similar questions1 more → · asked again: GATE 1998, Q11(c)
Partition-refinement partial order
Partial Orders & Lattices
Tap to enlarge
Let S={a,b,c,d}. The partitions are π1={{a,b,c,d}}, π2={{a,b},{c,d}}, π3={{a,b,c},{d}}, π4={{a},{b},{c},{d}}. Define πi≺πj when πi refines πj. Which Hasse diagram represents these four partitions? Options are described by bottom-to-top cover relations. Options: (A) Chain π4<π3<π2<π1 (B) Diamond with bottom π3, middle π2 and π4, top π1 (C) Diamond with bottom π4, middle π2 and π3, top π1 (D) π4 below each of π1,π2,π3, which are pairwise incomparable
Your answer
Answer & solution
Answer: C (no official key was published)
1. Approach. A refinement splits blocks but never joins elements from different old blocks. Check whether every block of one partition is contained in a block of the other.
2. Derivation and interpretation. The all-singleton partition π4 refines both π2={ab,cd} and π3={abc,d}; both refine the one-block π1={abcd}. π2 and π3 are incomparable: cd crosses π3’s blocks, while abc crosses π2’s blocks. The Hasse diagram is the diamond with π4 at bottom and π1 at top, C.
Satisfying at least half the clauses of a CNF formula
Propositional & Predicate Logic
Tap to enlarge
Which claim is true for formulas in conjunctive normal form under the usual nonempty-clause convention? Options: (A) Every formula has an assignment satisfying at least half its clauses (B) Every formula has an assignment satisfying all its clauses (C) Some formula has at most one quarter of its clauses satisfied under every assignment (D) None of these
Your answer
Answer & solution
Answer: A (no official key was published)
1. Approach. Pair any truth assignment with its complement. Each nonempty disjunctive clause has some literal, and that literal is true in exactly one of the two assignments.
2. Derivation and interpretation. For the conventional setting in which each clause contains at least one literal, consider any assignment and its bitwise complement. Every clause is satisfied by at least one of the two: choose any literal in it, which is true in one assignment. Hence the two assignments together satisfy at least m clause occurrences, and one satisfies at least m/2. This proves A. B fails for (x)∧(¬x), and the same half-clause guarantee rules out C. If empty clauses are permitted, the unstated nonempty-clause assumption matters: a formula consisting only of empty clauses is never satisfied at all, so A would fail and C could hold. The intended CNF convention excludes this degenerate case.
A robot starts at (0,0). Each move increases either its x-coordinate or y-coordinate by one, so from (i,j) it can move to (i+1,j) or (i,j+1). How many paths reach (10,10)? C(n,k) denotes a binomial coefficient. Options: (A) C(20,10) (B) 2^20 (C) 2^10 (D) None of these
Your answer
Answer & solution
Answer: A (no official key was published)
1. Approach. Every valid path contains exactly ten right moves and ten up moves. Specify which ten of the twenty move positions are right moves; the rest are then fixed.
2. Derivation and interpretation. A path from (0,0) to (10,10) requires exactly ten right and ten up moves. Choose the positions of the ten right moves among the twenty total moves. The count is C(20,10)=184756, option A.
A robot moves one unit right or up at each step, starting at (0,0) and ending at (10,10). It may not traverse the edge (4,4)→(5,4). How many paths remain? C(n,k) denotes a binomial coefficient. Options: (A) 2^9 (B) 2^19 (C) C(8,4)×C(11,5) (D) C(20,10)−C(8,4)×C(11,5)
Your answer
Answer & solution
Answer: D (no official key was published)
1. Approach. Count forbidden paths by splitting at the forbidden edge. Choose a path to (4,4), traverse the single forbidden step, then choose a path from (5,4) to the destination. Subtract this product from all paths.
2. Derivation and interpretation. Subtract paths using the forbidden edge (4,4)->(5,4) from all C(20,10) paths. A path using that edge has C(8,4) choices to reach (4,4), then the fixed forbidden step, then C(11,5) choices for five right and six up moves from (5,4) to (10,10). Thus the permitted count is C(20,10)-C(8,4)*C(11,5)=184756-70*462=152416, option D.
Sets X,Y,Z have cardinalities x,y,z. Let W=X×Y and E be the power set of W. How many functions Z→E exist? The reproduced options use uppercase Z where the cardinality z is intended. Options: (A) z^(2^(xy)) (B) z·2^(xy) (C) z^(2^(x+y)) (D) 2^(xyz)
Your answer
Answer & solution
Answer: D (no official key was published)
1. The Cartesian product has xy elements, so its power set has 2xy elements. For each of the z domain elements, independently choose one image.
2. This gives(2xy)z=2xyz, option D, with the usual empty-domain convention.
3. Teaching check: For one argument in Z there are 2xy possible output subsets, including the empty subset. Choosing images for different arguments does not impose injectivity or surjectivity. This is the general counting rule |codomain|^|domain|, not |domain|^|codomain|.
The set {1,2,3,5,7,8,9} with multiplication modulo 10 is not a group. Which proposed reason is false? Options: (A) The set is not closed (B) 2 has no inverse (C) 3 has no inverse (D) 8 has no inverse
Your answer
Answer & solution
Answer: C (no official key was published)
1. The claim that 3 has no inverse is false:3×7≡1 modulo 10 and 7 belongs to the set. The set is not closed, since 2×2≡4 is absent.
2. Neither2 nor 8 is a unit modulo 10 because each shares a factor 2 with 10. Thus C is the false reason.
3. Teaching check: A multiplicative inverse of k modulo 10 must solve kt≡1. Such a t exists exactly when gcd(k,10)=1. In particular 3·7=21 has remainder 1, whereas every product involving 2 or 8 is even and cannot have remainder 1.
On ordered pairs of integers define (x,y)R(u,v) iff x<u and y>v. Classify R, with partial order understood in the usual reflexive sense. Options: (A) Neither a partial order nor an equivalence relation (B) A partial order but not a total order (C) A total order (D) An equivalence relation
Your answer
Answer & solution
Answer: A under the reflexive partial-order convention (no official key was published)
1. For every pair(x,y), x<x is false, so the relation is not reflexive. It is therefore neither an equivalence relation nor a reflexive partial order, A.
2. It is transitive and irreflexive, hence a strict partial order in terminology that explicitly distinguishes strict orders; it is not total because pairs with equal first coordinate are incomparable.
3. Teaching check: To test reflexivity, substitute the very same pair on both sides. The required inequalities become x<x and y>y, both false. Although transitivity holds by chaining strict inequalities, transitivity alone does not meet the definition of a reflexive partial order.
Let X={2¹,2²,…,2ⁿ}. Form S⊆X by independently selecting each element with probability 1/2. What is the expected smallest element of S? The reproduced question does not specify what to do when S is empty. Options: (A) 1/n (B) 2 (C) √n (D) n
Your answer
Answer & solution
Answer: D only if the empty sample is assigned value 0 (no official key was published)
1. The event that 2i is the minimum requires excluding the i−1 smaller values and including 2i, with probability 2-i. Summing2i×2-i over i=1,...,n gives n.
2. But the empty sample occurs with probability 2-n and has no smallest element. Thus the expectation as literally stated is undefined.
3. Setting the empty-sample value to 0 gives n, D; conditioning on a nonempty sample instead gives n/(1−2-n). No official answer is inferred.
4. Teaching check: There are n disjoint events “2i is the minimum,” each contributing exactly one to the unconditioned sum when the empty case is assigned zero. Their probabilities sum to 1−2−n, not one. Dividing by that nonempty probability produces the conditional expectation.
Independently toss a fair coin for each of 2n elements and select the element on heads. What is the probability that exactly n elements are selected? Options: (A) C(2n,n)/4^n (B) C(2n,n)/2^n (C) 1/C(2n,n) (D) 1/2
Your answer
Answer & solution
Answer: A (no official key was published)
1. Each subset of the 2n elements has probability 2-2n. There are binomial(2n,n) subsets with exactly n elements, so the desired probability is binomial(2n,n)/4n, A.
2. Teaching check: Every particular size-n subset corresponds to one pattern of n heads and n tails, with probability (1/2)2n. The number of such patterns is C(2n,n). Multiplying count by per-pattern probability gives the result; the expected subset size n does not imply probability 1/2 of exactly that size.
For finite sets E,F,G, put X=(E∩F)−(F∩G) and Y=(E−(E∩G))−(E−F). Which relation holds? Strict containment is intended in A and B. Options: (A) X⊂Y (B) X⊃Y (C) X=Y (D) Both X−Y and Y−X are nonempty
Your answer
Answer & solution
Answer: C (no official key was published)
1. X=(E∩F)∖(F∩G)=E∩F∩Gᶜ. Also E∖(E∩G)=E∩Gᶜ; subtracting E∖F then retains exactly its elements in F.
2. Thus Y=E∩F∩Gᶜ=X, C. The strict-containment alternatives do not apply.
3. Teaching check: An element belongs to X precisely when it is in E and F but not G. For Y, first discard from E everything in G, then discard everything outside F. Both constructions retain the same three simultaneous membership conditions.
Let N={1,…,n} and A,B⊆N. How many permutations π of N satisfy min(π(A))=min(π(B)), where π(S)={π(s):s∈S}? The minimum requires nonempty A and B, although the reproduction says arbitrary subsets. Options: (A) (n−|A∪B|)|A||B| (B) (|A|²+|B|²)n² (C) n!·|A∩B|/|A∪B| (D) |A∩B|²/C(n,|A∪B|)
Your answer
Answer & solution
Answer: C for nonempty A and B (no official key was published)
1. The minima of π(A) and π(B) agree exactly when the smallest image among A∪B belongs to A∩B. By symmetry every member of A∪B is equally likely to have that image, so the fraction is |A∩B|/|A∪B|.
2. Multiply by n! to get C. The statement allows arbitrary subsets, but min of an empty set is undefined; nonempty A,B are required for this calculation.
3. If they are disjoint and nonempty the answer is 0.
4. Teaching check: Only the relative order of images of A∪B matters. If its earliest image comes from an element outside the intersection, one subset has a strictly earlier minimum than the other. Uniform permutations make each union element equally likely to be earliest, giving the intersection-to-union ratio.
Let S={1,…,m}, m>3. Let X₁,…,Xₙ be subsets of S, each containing exactly three elements. Define f(i)=|{j:i∈Xⱼ}|. Evaluate Σᵢ₌₁ᵐ f(i). Options: (A) 3m (B) 3n (C) 2m+1 (D) 2n+1
Your answer
Answer & solution
Answer: B (no official key was published)
1. Sum f(i) over all elements i. Each of the n three-element subsets contributes exactly 3 incidences, so the total is 3n, B.
2. This remains true if some of the listed subsets coincide.
3. Teaching check: Count the same incidence pairs (i,j) with i∈Xⱼ in two ways. Counting by elements gives Σf(i); counting by subsets gives three incidences per Xⱼ. The parameter m controls the universe, but the total depends on n, the number of triples.
Which first-order formula expresses “Tigers and lions attack if they are hungry or threatened”? Abbreviate tiger(x), lion(x), hungry(x), threatened(x), attacks(x) as T,L,H,R,A; all formulas are universally quantified over x. Options: (A) (T∧L)→((H∨R)→A) (B) (T∨L)→((H∨R)∧A) (C) (T∨L)→(A→(H∨R)) (D) (T∨L)→((H∨R)→A)
Your answer
Answer & solution
Answer: D (no official key was published)
1. The statement applies to an animal that is either a tiger or a lion, and hunger or threat is sufficient for attacking. Its form is ∀x[(tiger(x)∨lion(x))→((hungry(x)∨threatened(x))→attacks(x))], D.
2. It neither requires both species simultaneously nor reverses the sufficient-condition implication.
3. Teaching check: “Tigers and lions” names the union of two categories, not animals belonging to both species. The word “if” makes hunger or threat a sufficient condition for attack, not a necessary one. Both logical distinctions are needed to choose D.
Consider equivalences P1: ((A∧B)→C)≡((A→C)∧(B→C)); P2: ((A∨B)→C)≡((A→C)∨(B→C)). Which are tautologies? Options: (A) P1 only (B) P2 only (C) Both (D) Neither
Your answer
Answer & solution
Answer: D (no official key was published)
1. Take A=true,B=false,C=false. In P1, (A∧B)→C is true, while(A→C)∧(B→C) is false.
2. In P2, (A∨B)→C is false, while(A→C)∨(B→C) is true. Thus neither equivalence is a tautology, D.
3. Teaching check: For A=true,B=false,C=false, P1 has true on its left and false on its right. P2 has false on its left and true on its right. One counterexample per formula is enough to refute tautology; neither formula needs to be false on every assignment.
Expressing conjunction using a truth-table operator
Propositional & Predicate Logic
Tap to enlarge
Define A⊙B by truth table (A,B,result): (T,T,T),(T,F,T),(F,T,F),(F,F,T). Negation has higher precedence than ⊙. Which expression equals A∧B? Options: (A) (¬A)⊙B (B) ¬(A⊙(¬B)) (C) ¬((¬A)⊙(¬B)) (D) ¬((¬A)⊙B)
Your answer
Answer & solution
Answer: D (no official key was published)
1. The table gives A⊙B=A∨¬B. Therefore ¬(¬A⊙B)=¬(¬A∨¬B)=A∧B, option D.
2. The negation applies to the whole inner expression.
3. Teaching check: The only false table row is A=false,B=true, exactly the falsifying row of B→A. Hence ⊙ implements A∨¬B. Replacing A by ¬A and negating the whole result yields De Morgan’s formula ¬(¬A∨¬B)=A∧B.
Represent X,Y⊆{0,…,n−1} with Boolean membership arrays x,y. For each i set z[i]=(x[i]∧¬y[i])∨(¬x[i]∧y[i]). Which set does z represent? Options: (A) X∪Y (B) X∩Y (C) (X−Y)∩(Y−X) (D) (X−Y)∪(Y−X)
Your answer
Answer & solution
Answer: D (no official key was published)
1. The assignment is z[i]=(x[i] AND NOT y[i]) OR (NOT x[i] AND y[i]). It is true exactly when i belongs to one of X and Y but not both.
2. Hence Z=(X−Y)∪(Y−X), option D.
3. Teaching check: The two terms are disjoint: one means membership in X only, the other membership in Y only. If both input bits are zero or both are one, z is zero. This is Boolean exclusive-or and set symmetric difference, not ordinary union.
A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. How many vertices have degree zero? Options: (A) 1 (B) n (C) n+1 (D) 2^n
Your answer
Answer & solution
Answer: C (no official key was published)
1. The empty set and all n singleton subsets cannot intersect any subset in exactly two elements, so all n+1 are isolated. Every set S of size at least 3 is adjacent to any two-element subset of S.
2. Every two-element S is adjacent to a proper superset S∪{x}, available because n≥6. No other isolated vertices exist.
3. Answer n+1, C.
4. Teaching check: A set with fewer than two elements cannot share two elements with any other set. Conversely, every larger set has a two-element intersection partner: use a contained pair when its size exceeds two, or a proper superset when its size is exactly two.
A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. What is the maximum vertex degree? Options: (A) C(n/2,2)·2^(n/2) (B) 2^(n−2) (C) 3·2^(n−3) (D) 2^(n−1)
Your answer
Answer & solution
Answer: C (no official key was published)
1. For a vertex S with |S|=k, choose the two intersection elements from S and any subset outside S, giving C(k,2)·2n−k candidate neighbors. When k=2 subtract one to exclude S itself; for k=0,1 degree is zero.
2. For k≥3, the ratio of successive degrees is (k+1)/(2(k−1)), equal to 1 at k=3 and less than 1 for k>3. The maximum is therefore attained at k=3 and k=4, with degree 3·2n−3.
3. This exceeds the k=2 degree 2n−2−1. Thus C.
4. Teaching check: For a size-k set, choose which two of its k elements are in the neighbor; no other element of the set may be in that neighbor. Every outside element is freely included or excluded. Exclude a self-neighbor only when k=2, then compare successive k values rather than assuming k=n/2 maximizes the degree.
A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. How many connected components are there? Options: (A) n (B) n+2 (C) 2^(n/2) (D) 2^n/n
Your answer
Answer & solution
Answer: B (no official key was published)
1. There are n+1 isolated vertices from Q71. All vertices of size at least two are in one additional component.
2. Any larger set S is adjacent to a two-element subset T⊂S. Any two distinct two-element subsets T,U are both adjacent to their union T∪U, since its intersection with each is that two-element subset.
3. Hence all nonisolated vertices are connected. Total components=n+1+1=n+2, B.
4. Teaching check: Connectivity does not require every two nonisolated vertices to be directly adjacent. Any two pairs connect through their union; every larger set attaches to one of its own pairs. These short paths prove there is exactly one component besides the n+1 isolated vertices.
An undirected n-vertex graph has adjacency matrix with zero diagonal and all other entries 1. Which MST claim? A none; B unique with cost n−1; C multiple distinct MSTs each cost n−1; D multiple spanning trees with differing costs. The n≥3 assumption for C is not explicitly printed.
Your answer
Answer & solution
Answer: C for n≥3 (no official key was published)
The adjacency matrix describes Kn with unit edge weights. Every spanning tree has n−1 edges and therefore cost n−1. For n≥3 there are multiple spanning trees (indeed nn−2), giving C. The prompt does not restrict n: K1 and K2 each have a unique spanning tree, so the multiple-tree assertion requires the nontrivial n≥3 convention.
The matrix describes a complete graph Kn. Interpreting all edges with unit weight, any spanning tree has n−1 edges and thus equal cost n−1. When n≥3, different trees exist, so C is intended. But n=1 or 2 gives a unique tree, which is why the unprinted size restriction must stay explicit. Neither a different tree shape nor a different traversal order changes total cost here.
For nonempty sets A, B, C, let X=(A−B)−C and Y=(A−C)−(B−C). Choose A X=Y; B X is a proper subset of Y; C Y is a proper subset of X; D none.
Your answer
Answer & solution
Answer: A (no official key was published)
X=(A∖B)∖C=A∩Bᶜ∩Cᶜ. In Y=(A∖C)∖(B∖C), an element already outside C is removed exactly when it belongs to B. Hence Y=A∩Bᶜ∩Cᶜ=X, A.
Membership in X means being in A but neither B nor C. For Y, first exclude C from A. On those remaining elements, membership in B−C is exactly membership in B because C has already been excluded. Removing B−C therefore removes precisely the B-members, leaving the same A∩Bᶜ∩Cᶜ as X. Hence A, even though the original sets need not be disjoint.
Hasse diagram has top a, bottom e, and three mutually incomparable middle elements b, c, d. Cover edges e<b, e<c, e<d and b<a, c<a, d<a. Classify: A not a lattice; B lattice but nondistributive; C distributive but not Boolean; D Boolean algebra.
Your answer
Answer & solution
Answer: B (no official key was published)
The diagram has bottom e, top a, and three incomparable middle elements b, c, d. Every pair has a meet and join, so it is a lattice. But b∧(c∨d)=b∧a=b, whereas(b∧c)∨(b∧d)=e∨e=e. Thus it is not distributive, B.
Every pair of distinct middle elements has meet e and join a, so joins/meets exist and this is a lattice. Test distributivity using b, c, d: b∧(c∨d)=b∧a=b, but (b∧c)∨(b∧d)=e∨e=e. Since b≠e, distributivity fails. Thus B; the existence of a top and bottom alone does not make a lattice distributive or Boolean.
A simple connected planar graph has 13 vertices and 19 edges. Number of faces including outer face? A6; B8; C9; D13.
Your answer
Answer & solution
Answer: B (no official key was published)
Euler’s formula V−E+F=2 includes the unbounded face. With V=13 and E=19, F=2−13+19=8, B.
Euler’s formula for a connected planar embedding is V−E+F=2, where F includes the unbounded outside region. Substituting 13 and 19 gives F=2−13+19=8. Seven would count only bounded regions; forgetting the outside face causes that common off-by-one error. Answer B.
A simple graph with 20 vertices and 100 edges has minimum vertex cover size 8. Maximum independent-set size? A12; B8; C below 8; D above 12.
Your answer
Answer & solution
Answer: A (no official key was published)
A vertex set is a cover exactly when its complement is independent. Consequently the minimum-cover size plus maximum-independent-set size equals the number of vertices. Here α=20−8=12, A; the 100-edge count is not needed.
A vertex set is a cover exactly when its complement is independent: an uncovered edge would have both endpoints in that complement. Taking a smallest cover therefore gives a largest independent set, so α(G)+τ(G)=|V|. The answer is 20−8=12. The edge count is not needed once the minimum cover size is given.
The units {1, 2, 4, 7, 8, 11, 13, 14} form a group under multiplication modulo 15. Inverses of 4 and 7? A3, 13; B2, 11; C4, 13; D8, 14.
Your answer
Answer & solution
Answer: C (no official key was published)
4×4=16≡1 modulo 15 and 7×13=91≡1 modulo 15. Thus the inverses are 4 and 13, respectively, C. Both belong to the displayed unit group.
An inverse x of a satisfies ax≡1 modulo 15. For 4, 4·4=16≡1. For 7, 7·13=91≡1. Both proposed inverses belong to the given unit group. Therefore C. These are modular inverses, not ordinary real-number reciprocals.
Let X=((P∨Q)→R), Y=((P→R)∨(Q→R)). Which is a tautology? A X↔Y; B X→Y; C Y→X; D ¬Y→X.
Your answer
Answer & solution
Answer: B (no official key was published)
Let U=P→R and V=Q→R. Then X=(P∨Q)→R equals U∧V, while Y=U∨V. Therefore X→Y is a tautology, B. Taking P=true, Q=false, R=false makes X=false, Y=true, disproving equivalence and Y→X. Taking P=Q=true, R=false makes both false and disproves ¬Y→X.
Distribute implication over the disjunctive antecedent: X=(¬P∨R)∧(¬Q∨R). Y is the OR of those same two factors. If both factors hold, at least one holds, proving X→Y. Conversely one factor may be true while the other false, so Y→X and equivalence fail. A counterexample with P=Q=true, R=false makes Y false and X false, refuting ¬Y→X.
Formalize “Every teacher is liked by some student.” A ∀x(teacher(x)→∃y(student(y)→likes(y, x))); B ∀x(teacher(x)→∃y(student(y)∧likes(y, x))); C ∃y∀x(teacher(x)→(student(y)∧likes(y, x))); D ∀x(teacher(x)∧∃y(student(y)→likes(y, x))).
Your answer
Answer & solution
Answer: B (no official key was published)
For each individual x, if x is a teacher, there must exist a y such that y is a student AND likes x: ∀x(teacher(x) → ∃y(student(y) ∧ likes(y, x))). The student may depend on the teacher. Option B has exactly this form; implication within the existential would admit a non-student witness.
The universal quantifier ranges over possible teachers. Conditional on teacher(x), require a witness y satisfying both student(y) and likes(y, x), which is B. A’s inner implication could be satisfied by a non-student who likes nobody. C demands one common student for every teacher, stronger than the original. D asserts every domain object is a teacher instead of restricting the obligation to teachers.
Similar questions1 more → · asked again: GATE 1998, Q1.7
Intersection of equivalence relations
Sets, Relations & Functions
Tap to enlarge
R, S are equivalence relations on nonempty A. Which is guaranteed? A both union/intersection equivalent; B union; C intersection; D neither.
Your answer
Answer & solution
Answer: C (no official key was published)
R∩S is reflexive and symmetric because both relations are; if x(R∩S)y and y(R∩S)z, both transitivity rules give x(R∩S)z. Union need not be transitive: partitions {1, 2}|{3} and {1}|{2, 3} yield 1 related to 2 and 2 to 3 in the union but not 1 to 3. Thus only intersection is guaranteed, C.
Intersection preserves each defining property because a related pair must belong to both relations. Reflexivity and symmetry pass through immediately; chaining two intersection pairs permits transitivity in both R and S, hence in their intersection. Union can chain one edge from R and another from S without containing the resulting third edge. The three-element partition counterexample above shows why B/A are not guaranteed.
Functions f:B→C, g:A→B have onto composite f∘g. Choose A both must be onto; B f must but g need not; C g must but f need not; D neither must.
Your answer
Answer & solution
Answer: B (no official key was published)
Since f(g(A))=C and g(A)⊆B, f(B)=C, so f is onto. But g need not cover all of B: take A={a}, B={b1, b2}, C={c}, g(a)=b1 and f(b1)=f(b2)=c. Hence B.
For every c in C, surjectivity of the composite provides an a with f(g(a))=c. Since g(a) is some element of B, this proves f is onto C. It does not require reaching all elements of B; unused B-elements may map to already-covered outputs. The one-element A and two-element B counterexample above proves g need not be onto, selecting B.
Minimum ordered pairs of nonnegative “numbers” guaranteeing two(a, b),(c, d) with a≡c mod 3 and b≡d mod 5? A4; B6; C16; D24. Explain necessary integer-domain convention.
Your answer
Answer & solution
Answer: C (no official key was published)
Under the intended nonnegative-INTEGER interpretation, (a mod 3, b mod 5) has 3×5=15 classes. Sixteen pairs force a repeated class, while the fifteen representatives (i, j), 0≤i<3 and 0≤j<5, do not. Thus 16 (C). The paper say numbers rather than integers; arbitrary real numbers do not give fifteen residue classes, so the integer domain assumption is necessary.
Integer residues split the first coordinate into 3 classes and the second into 5, yielding 15 joint classes. Choosing 16 pairs forces a repeated class by pigeonhole; taking one representative from each class shows 15 is insufficient. This establishes exact minimality, not merely a sufficient bound. For arbitrary real numbers, residues are not limited to those 15 possibilities, so the source’s loose word “numbers” must be interpreted as integers.
H consists of all real upper-triangular matrices [[a, f, e],[0, b, d],[0, 0, c]] with abc≠0. Under matrix multiplication is H: A a group; B a monoid but not a group; C a semigroup but not a monoid; D none of these?
Your answer
Answer & solution
Answer: A (no official key was published)
These are all invertible upper-triangular real 3×3 matrices, since determinant abc≠0. Products remain upper triangular with nonzero diagonal, multiplication is associative, the identity belongs to H, and the inverse of each invertible upper-triangular matrix is upper triangular with diagonal 1/a, 1/b, 1/c. Hence H is a group (A). Matrix continues on physical page 6.
Verify all group axioms rather than just invertibility. Multiplication of upper-triangular matrices is upper triangular, and its diagonal is the pairwise product of the two diagonals, hence nonzero. Associativity comes from ordinary matrix multiplication. The identity matrix satisfies the constraints. Back substitution constructs an upper-triangular inverse with reciprocal diagonal entries. Thus closure, associativity, identity and inverses all hold. Commutativity is not required for a group.
Choose the nonplanar graph among four drawings. G1 is a six-cycle with all three opposite-vertex chords. G2 is a triangular prism (GFG additionally draws a diagonal in each of two distinct rectangular faces). G3 is K4 with an extra vertex joined to the endpoints of one edge. G4 is K5 with one edge removed. A G1; B G2; C G3; D G4. These adjacency descriptions replace drawing layout, not graph structure.
Your answer
Answer & solution
Answer: A (no official key was published)
Label G1 cyclically around its six outer vertices. Its hexagon plus the three opposite-vertex chords is K3, 3, with bipartition the alternating vertices; it is nonplanar. The paper adds two diagonals across two distinct rectangular faces of that prism; those edges can each be embedded within its face, so it remains planar. G3 is K4 with a fifth vertex joined to endpoints of one edge; it is planar. G4 is K5 minus the edge between the two upper side vertices; it is planar (a triangular bipyramid). Thus G1, A, in the paper despite the G2 drawing difference.
Planarity is invariant under redrawing. The alternating vertices of G1 form two sets of three, and each vertex meets all three vertices across the partition, giving exactly K3, 3. Its bipartite planar bound m≤2v−4 would require 9≤8, impossible. For each remaining graph the indicated construction gives a planar embedding: prism faces accommodate the added diagonals separately; an extra vertex can be placed next to an edge of a planar K4 embedding; K5 minus one edge is a triangular bipyramid. Therefore only G1 fails.
The ordinary generating function of g(i), i≥0, is 1/(1−x)². Find g(i). GateForum options: A i; B i+1; C 2i; D 2^i. GFG inserts a constant-1 line before these and labels the five entries A 1; B i; C i+1; D 2i; E 2^i. Explain the coefficient rather than relying on a universal letter.
Your answer
Answer & solution
Answer: C: i+1 (no official key was published)
Differentiate ∑(j≥0)xj=1/(1−x) for |x|<1: 1/(1−x)²=∑(j≥1)j xj−1=∑(i≥0)(i+1)xi. Thus g(i)=i+1. Preserve the mathematical answer, not a purported universal letter.
The geometric-series identity is valid as a formal power series, so differentiate coefficient by coefficient. The derivative of xj is jxj−1, and relabeling i=j−1 gives coefficient i+1. Alternatively multiplying two copies of Σxj shows that xi can be formed in i+1 ways, from pairs(0, i),(1, i−1),…,(i, 0). Both arguments yield the same coefficient and avoid the inconsistent option lettering.
Bag P has two red and three blue balls; bag Q has three red and one blue. Select P with probability 1/3 and Q with probability 2/3, then draw uniformly from that bag. Given a red ball, probability bag P was selected? A4/19; B5/19; C2/9; D19/30. The alternate omits the color of Q’s three balls; use the explicit GFG wording.
Your answer
Answer & solution
Answer: A (no official key was published)
Using the the paper statement that Q has 3 RED and 1 blue ball, P(P∩red)=(1/3)(2/5)=2/15 and P(Q∩red)=(2/3)(3/4)=1/2. Bayes gives (2/15)/(2/15+1/2)=4/19, A.
Bayes reverses the conditioning: the question asks P(P|red), not P(red|P). First weight each red probability by how often that bag is selected. P contributes 2/15 and Q contributes 1/2, so total red probability is 19/30. Divide 2/15 by 19/30 to get 4/19. The larger posterior weight of Q is consistent with its being chosen more often and containing a larger red fraction.
Construct each of two n-bit binary strings using fair coin tosses. Assuming independent tosses for both strings, probability the strings differ? A2^(−n); B1−1/n; C1/n!; D1−2^(−n).
Your answer
Answer & solution
Answer: D (no official key was published)
Assuming the two constructions use independent fair tosses, each bit of the second string matches the corresponding first bit with probability 1/2. The full strings match with probability 2−n, so they differ with probability 1−2−n, option D.
Condition on any fixed first string. Each independent second-string bit matches with probability 1/2, and all n positions match with probability(1/2)n. The event “different strings” means at least one mismatch, the complement of matching in every position, not mismatching in every position. Therefore the requested probability is 1−2−n. Correlation between the two constructions would invalidate this calculation, hence independence is explicit.
Translate “Some boys in the class are taller than all the girls.” The domain is the class and taller(x,y) means x is taller than y. Options below follow GFG; GateForum prints ∧ instead of → inside option D, making its B and D identical and neither a correct translation. Options: (A) ∃x[boy(x)→∀y(girl(y)∧taller(x,y))] (B) ∃x[boy(x)∧∀y(girl(y)∧taller(x,y))] (C) ∃x[boy(x)→∀y(girl(y)→taller(x,y))] (D) ∃x[boy(x)∧∀y(girl(y)→taller(x,y))]
Your answer
Answer & solution
Answer: D (no official key was published)
1. The required structure is ∃x[boy(x)∧∀y(girl(y)→taller(x,y))], option D, with the domain understood as members of the class. Conjunction ensures the witness is a boy; implication restricts the universal comparison to girls rather than asserting that every person is a girl.
2. Teaching check: An existential implication could be satisfied merely by choosing a person who is not a boy. A universal conjunction would require everyone in the domain to be a girl. The outer conjunction and inner implication prevent these two distinct logical errors. The answer D is source-qualified to the paper’s correctly printed option.
On the nonnegative integers, S={(x,y):y=x+1}. Find its reflexive transitive closure. GFG prints the domain {0,1,2,…}; GateForum omits the ellipsis and prints {0,1,2}, for which the same order condition applies restricted to that finite domain. Options: (A) {(x,y):y>x} (B) {(x,y):y≥x} (C) {(x,y):y<x} (D) {(x,y):y≤x}
Your answer
Answer & solution
Answer: B (no official key was published)
1. A path of k successor steps takes x to x+k, for any integer k≥0. Zero steps supply reflexivity.
2. Thus the closure is{(x,y):y≥x, x,y nonnegative integers}, B.
3. Teaching check: Reflexive closure adds (x,x); transitivity adds (x,x+2),(x,x+3), and all later successors. No operation can create a pair with y<x because every original step increases the value.
A fair coin is independently tossed four times. What is the probability of exactly two heads and two tails? Options: (A) 3/8 (B) 1/2 (C) 5/8 (D) 3/4
Your answer
Answer & solution
Answer: A (no official key was published)
1. Among24=16 equally likely independent outcomes, binomial(4,2)=6 have exactly two heads and therefore two tails. Probability6/16=3/8, A.
2. Teaching check: Choose which two of the four positions contain heads: there are six choices. Each complete sequence has probability (1/2)4. Counting one arrangement such as HHTT gives only 1/16 and misses the other five arrangements.
How many n×n symmetric matrices have every entry either 0 or 1? Option C follows GFG; GateForum has malformed parentheses around its exponent. Options: (A) 2^n (B) 2^(n²) (C) 2^((n²+n)/2) (D) 2^((n²−n)/2)
Your answer
Answer & solution
Answer: C (no official key was published)
1. Choose the n diagonal bits and the n(n−1)/2 bits above the diagonal freely; symmetry then determines the lower triangle. There are n(n+1)/2 independent bits and therefore 2^((n²+n)/2) matrices, C.
2. This is a finite counting problem.
3. Teaching check: For n=2, the matrix is [[a,b],[b,c]], with three independent bits and eight possibilities. This small case distinguishes 2^((n²+n)/2) from formulas that omit diagonal freedom or count the mirrored off-diagonal bits twice.
Classify (P→(Q∨R))→((P∨Q)→R). GFG uses ∨ in the second antecedent; GateForum prints ∧ there. Classify the stated GFG formula, and retain the alternate reading. Options: (A) Satisfiable but not valid (B) Valid (C) A contradiction (D) None of the above
Your answer
Answer & solution
Answer: A (no official key was published)
1. Formula (P→(Q∨R))→((P∨Q)→R), setting R=true makes the whole formula true, so it is satisfiable. Setting P=true,Q=true,R=false makes the premise true and the consequent false, so it is not valid.
2. Hence A.
3. Teaching check: To show satisfiable but not valid, one true assignment and one false assignment suffice. With R=true, the consequent is true. With P=Q=true,R=false, the antecedent is true and the consequent false.
A group has elements e,a,b,c. Its operation table has columns e,a,b,c. Known row e is e,a,b,c; known row a is a,b,c,e; rows b,c are otherwise blank. What is row c in that column order? Options: (A) c,a,e,b (B) c,b,a,e (C) c,b,e,a (D) c,e,a,b
Your answer
Answer & solution
Answer: D (no official key was published)
1. The given row for a says a·a=b, a·b=c, and a·c=e. Therefore b=a², c=a³, a⁴=e, so the group is cyclic of order four.
2. The c row under columns e,a,b,c is a³,a⁴,a⁵,a⁶, namely c,e,a,b. This is D.
3. Teaching check: Associativity lets powers of a determine the entire subgroup generated by a. Since e,a,a²=b,a³=c are four distinct elements, this is the whole group. Multiplying c=a³ by e,a,a²,a³ reduces exponents modulo four and yields c,e,a,b.
Let S={{1,2},{1,2,3},{1,3,5},{1,2,4},{1,2,3,4,5}}, ordered by containment. Which listed minimal collection of sets must be adjoined to make a complete lattice? “Necessary” is interpreted as the minimal sufficient offered augmentation, not a claim excluding every other possible bottom element. Options: (A) {1} (B) {1} and {2,3} (C) {1} and {1,3} (D) {1}, {1,3}, {1,2,3,4}, {1,2,3,5}
Your answer
Answer & solution
Answer: A (no official key was published)
1. Write U={1,2}, V={1,2,3}, W={1,3,5}, X={1,2,4}, and T={1,2,3,4,5}. Adjoin B={1}.
2. Comparable pairs already have their meet and join. The incomparable pairs (U,W), (V,W), and (X,W) have meet B and join T; (V,X) has meet U and join T.
3. Thus every pair has meet/join, and the finite nonempty poset with bottom B and top T is complete. Adding only {1}, option A, is sufficient and is the minimal augmentation among the offered choices.
4. Teaching check: A lattice’s join must be the least upper bound within the displayed poset, not necessarily the ordinary union set if that set is absent. Similarly the meet is the greatest available lower bound. After adding {1}, a finite bounded lattice is complete, including empty-family meet and join.
An exam has 150 one-mark multiple-choice questions, each with four choices. Correct answers earn 1; incorrect answers earn −0.25. If 1000 students choose all answers uniformly at random, what is the sum of their expected marks? Options: (A) 0 (B) 2550 (C) 7525 (D) 9375
Your answer
Answer & solution
Answer: D (no official key was published)
1. Each answer earns +1 with probability 1/4 and −1/4 with probability 3/4. Its expected mark is 1/4−3/16=1/16.
2. Linearity of expectation gives 1000×150×(1/16)=9375 total expected marks, D. Independence between different answers is not needed for summing expectations.
3. Teaching check: The negative mark is one quarter, not one third. Therefore random guessing has positive expectation here: (1/4)×1+(3/4)×(−1/4)=1/16 per question. Zero expectation would require a different wrong-answer penalty.
Each of 26 English letters is printed twice in a colouring book. Colour each of the 52 prints using k colours so the unordered pair of colours for each letter differs from that for every other letter. Both copies of a letter may have the same colour. What is the minimum k? Options: (A) 9 (B) 8 (C) 7 (D) 6
Your answer
Answer & solution
Answer: C (no official key was published)
1. A letter receives an unordered pair of colours, allowing the same colour twice. There are binomial(k,2)+k=k(k+1)/2 possible pairs.
2. Distinguishing 26 letters requires k(k+1)/2≥26. Six colours give only 21 pairs, while seven give 28, so the minimum is 7, option C.
3. Teaching check: Count colour pairs with repetition and without order. Distinct-colour pairs contribute k(k−1)/2 and equal-colour pairs contribute k. Ordered pairs would give k² and underestimate the required number of colours for the problem’s pair interpretation.
All nonzero entries of an M×N matrix are covered by the union of a specified a rows and b columns. What universal upper bound holds on the number of nonzero entries that can be selected with no two in the same row or column? Options: (A) ≤a+b (B) ≤max(a,b) (C) ≤min(M−a,N−b) (D) ≤min(a,b)
Your answer
Answer & solution
Answer: A (no official key was published)
1. Treat each nonzero entry as an edge from its row vertex to its column vertex. The stated a rows together with b columns cover all such edges.
2. Any selection with no two entries in the same row or column is a matching. Each chosen entry must use at least one of the a+b covering vertices, and no covering vertex can serve two chosen entries.
3. Consequently the selection has at most a+b entries, A. The bound can be attained with edges using distinct other endpoints; it need not equal the actual maximum.
4. Teaching check: The covering rows and columns form a vertex cover in a bipartite graph. A matching cannot reuse any covering vertex, so its size is at most the cover size. This does not require invoking the stronger theorem equating maximum matching and minimum cover.
Find the chromatic number of this undirected graph. Textual equivalent of figure: outer vertices T,R,B,L form cycle T–R–B–L–T; inner vertices u,v,w,z form cycle u–v–w–z–u. Additional edges are T–u,T–v,R–v,R–w,B–w,B–z,L–z,L–u. There are no other edges. Options: (A) 2 (B) 3 (C) 4 (D) 5
Your answer
Answer & solution
Answer: C (no official key was published)
1. Name outer vertices T,R,B,L and inner square vertices u (upper-left), v (upper-right), w (lower-right), z (lower-left). The diagram has outer cycle T-R-B-L-T, inner cycle u-v-w-z-u, and edges T-u,T-v,R-v,R-w,B-w,B-z,L-z,L-u.
2. Suppose three colours suffice. Triangle Tuv can be coloured T=3,u=1,v=2.
3. Triangle Tuz is not present, but L is adjacent to T and u, forcing L=2. Since z is adjacent to L and u, z=3.
4. Since w is adjacent to z and v, w=1. B, adjacent to z and w, must then be 2, contradicting edge B-L.
5. Four colours suffice: T=B=1, L=R=2, u=w=3, v=z=4. Therefore the chromatic number is 4, C.
6. Teaching check: The argument needs both a lower and an upper bound: forcing a contradiction under three colours proves at least four; the explicit assignment proves at most four. Merely observing a triangle would establish only a lower bound of three.
Two n-bit binary strings are drawn independently and uniformly. What is the probability their Hamming distance (number of differing positions) is d, 0≤d≤n? Options: (A) C(n,d)/2^n (B) C(n,d)/2^d (C) d/2^n (D) 1/2^d
Your answer
Answer & solution
Answer: A (no official key was published)
1. Fix the first n-bit string. Exactly binomial(n,d) second strings differ in d positions, since the chosen positions uniquely determine their bit flips.
2. All 2n second strings are equally likely, giving binomial(n,d)/2n, A, for integer 0≤d≤n. This uses the intended independent uniform draws; uniform marginals alone without independence would not determine the result.
3. Teaching check: After fixing S1, choose the d positions where S2 differs; at each such binary position its value is forced. No additional factor 2d is needed. Summing C(n,d)/2n over all d gives 1, a useful normalization check.
How many simple undirected graphs on n labelled vertices have at least (n²−3n)/2 edges? Write N=(n²−n)/2 and C(N,k)=binomial(N,k). Options: (A) C(N,N−n) (B) Σ_(k=0)^(N−n) C(N,k) (C) C(N,n) (D) Σ_(k=0)^n C(N,k)
Your answer
Answer & solution
Answer: D (no official key was published)
1. A simple undirected graph on n labelled vertices has N=binomial(n,2) possible edges. The threshold (n²−3n)/2 is N−n.
2. Having at least N−n edges is equivalent to omitting at most n edges. Choose the missing edges: the count is sum from k=0 to n of binomial(N,k), option D, with binomial(N,k)=0 for k>N.
3. This is also sum from j=max(0,N−n) to N of binomial(N,j).
4. Teaching check: Complementing the edge set turns a dense-graph count into a sparse missing-edge count. “At least” requires a sum over several edge counts, whereas one binomial coefficient counts graphs with exactly one edge count. Use zero for binomial terms with impossible k.
Disconnected graph intersection forces a union cycle
Graph Theory
Tap to enlarge
G1=(V,E1) and G2=(V,E2) are connected graphs on the same vertex set with more than two vertices. Their intersection (V,E1∩E2) is disconnected. What must be true of their union (V,E1∪E2)? Options: (A) It cannot have a cut vertex (B) It must have a cycle (C) It must have a bridge (D) Its chromatic number exceeds those of both G1 and G2
Your answer
Answer & solution
Answer: B (no official key was published)
1. The union is connected because it contains connected G1. If the union had no cycle, it would be a tree.
2. Every connected spanning subgraph of a tree must contain all tree edges: deleting any edge disconnects it. Thus both G1 and G2 would equal that tree, making their intersection connected, a contradiction.
3. Therefore the union must contain a cycle, B. This does not force a bridge or eliminate articulation vertices, and a cycle need not increase chromatic number over both constituent graphs.
4. Teaching check: A connected acyclic union would be a tree, and every tree edge is indispensable to every connected spanning subgraph. Hence both input graphs would contain all its edges, contradicting the disconnected intersection. This contradiction proves a cycle must exist.
Events A and B satisfy P(A)=1 and P(B)=1/2. Find P(A|B) and P(B|A), in that order. A. (1/4,1/2); B. (1/2,1/4); C. (1/2,1); D. (1,1/2).
Your answer
Answer & solution
Answer: D (no official key was published)
1. A has probability one, so its complement has probability zero. Decompose B as (A∩B)∪(Aᶜ∩B); the second part has probability zero. Now apply P(X|Y)=P(X∩Y)/P(Y) separately in the two directions rather than treating conditional probability as symmetric.
2. Since P(A)=1, P(A∩B)=P(B)=1/2. Thus P(A|B)=(1/2)/(1/2)=1, while P(B|A)=(1/2)/1=1/2, D. Both conditioning events have positive probability.
A contains eight distinct integers sorted in increasing order. How many ordered pairs of increasing sequences (B,C), with five elements in B and three in C, merge to A? A. 2; B. 30; C. 56; D. 256.
Your answer
Answer & solution
Answer: C (no official key was published)
1. There is no additional permutation factor: once B’s five members are selected, sorting fixes their order, and the remaining three fix C. Compute 8!/(5!3!)=(8·7·6)/(3·2·1)=56. Choosing C first gives the same count binomial(8,3).
2. Choose which 5 of the 8 distinct elements belong to B; the other 3 belong to C. Their increasing orders are then forced, and merging reconstructs A. Hence binomial(8,5)=56 pairs, C.
There are n invited couples. A husband can attend only with his wife, but a wife can attend without her husband. How many different gatherings are possible? A. binomial(2n,n)·2^n; B. 3^n; C. (2n)!/2^n; D. binomial(2n,n).
Your answer
Answer & solution
Answer: B (no official key was published)
1. The unconstrained four possibilities for a couple are neither, husband only, wife only, and both. Delete just husband only, leaving three. Multiplication across n distinguishable couples gives 3·3·…·3; the empty gathering is one of these assignments.
2. For each couple the allowed attendance choices are neither person, wife only, or both. These three independent choices give 3n gatherings, B, including the empty gathering. Husband-only attendance is excluded.
For Σ={0,1}, consider Σ* under string concatenation. Which statement holds? A. It does not form a group; B. It forms a noncommutative group; C. It has no right identity; D. Removing the empty string makes it a group.
Your answer
Answer & solution
Answer: A (no official key was published)
1. A group must have an identity and an inverse for every element. The empty string is a two-sided identity. If s is nonempty, however, |st|=|s|+|t|>0 for every t, so st can never be the empty identity. Associativity alone is insufficient for group structure.
2. Concatenation is associative and ε is an identity, but a nonempty string cannot have a concatenative inverse because lengths add. Therefore Σ* is a monoid, not a group, A. Removing ε also removes the identity and does not fix the missing inverses.
An arbitrary graph has n vertices and k connected components. After deleting one vertex and its incident edges, between which bounds must the new component count lie? A. k and n; B. k−1 and k+1; C. k−1 and n−1; D. k+1 and n−k.
Your answer
Answer & solution
Answer: C (no official key was published)
1. To see why k is not a valid lower bound, delete an isolated vertex. To see why k+1 is not a valid upper bound, delete the center of a large star, leaving many isolated leaves. In every case the k−1 untouched components remain and the n−1 remaining vertices bound the total above.
2. Only the deleted vertex’s original component can change. If it is an isolated vertex, the component count decreases to k−1; otherwise that component can split but the other k−1 remain. At most n−1 components can exist on the remaining n−1 vertices. Thus the necessary bounds are k−1 and n−1, C.
A partially ordered set (S,≤) has two minimal elements a,b and a maximum c. A predicate P has P(a)=true, P(b)=false, and P(x)⇒P(y) whenever x≤y. Which cannot be true? A. P(x)=true for every x≠b; B. P(x)=false for every x distinct from a and c; C. P(x)=false whenever b≤x and x≠c; D. P(x)=false whenever both a≤x and b≤x.
Your answer
Answer & solution
Answer: D (no official key was published)
1. Because c is a maximum, a≤c and b≤c. Propagating the true predicate upward from a forces P(c). Option D applies to c and denies that same predicate. To demonstrate the other options are possible rather than merely not contradicted, use S={a,b,c} with a,b incomparable and both below c.
2. Since a≤c and P(a) is true, monotonicity forces P(c)=true. The maximum c is above both a and b, so D would force P(c)=false, a contradiction. Thus D cannot hold. The other patterns can hold, for example in the three-element poset with incomparable a,b below c, with P true at a,c and false at b.
Let α(x), β(x) be first-order formulas whose only free variable is x. Which formula is logically valid? A. ((∀x α)⇒(∀x β))⇒∀x(α⇒β); B. (∀x α)⇒∃x(α∧β); C. ((∀x(α∨β))⇒(∃x α))⇒(∀x α); D. (∀x(α⇒β))⇒((∀x α)⇒(∀x β)).
Your answer
Answer & solution
Answer: D (no official key was published)
1. For D, fix an arbitrary domain element a. Universal instantiation gives both α(a)⇒β(a) and α(a), hence β(a) by modus ponens. Since a was arbitrary, universal generalization proves ∀x β(x). To eliminate the other candidates, it is enough to exhibit one interpretation in which each is false, rather than attempting to prove their negations in every interpretation.
2. If every x satisfies α(x)→β(x), and every x satisfies α(x), then every x satisfies β(x). This is the valid formula in D. For A take a two-element domain with α true only at one point and β false everywhere: its premise is vacuously true but its conclusion fails. For B take α always true and β always false. For C take a two-element domain with α true at exactly one point. Then ∃xα is true, so the inner implication is true regardless of β, while ∀xα is false; the full implication fails. Thus the alternatives are not valid.
Consider α=[∀x(P(x)↔∀y(Q(x,y)↔¬Q(y,y)))]⇒[∀x ¬P(x)]. Interpretation I₁ has natural-number domain, P(x) meaning “x is prime”, and Q(x,y) meaning “y divides x”. I₂ is identical except P(x) means “x is composite”. Which satisfies α? A. I₁ only; B. I₂ only; C. Neither; D. Both.
Your answer
Answer & solution
Answer: D (no official key was published)
1. First evaluate the inner universal formula for a fixed x. The condition at y=1 already fails: 1 divides x and also divides itself, so Q(x,1) is true while ¬Q(1,1) is false. Thus the proposed characterization is false for every natural x. The antecedent then asserts that P is empty, contrary to the existence of a prime in I₁ or a composite in I₂.
2. Q(y,y) is true because each positive natural number divides itself. Thus Q(x,y)↔¬Q(y,y) would require Q(x,y) false for every y. Taking y=x for positive x, or y=1, makes this impossible, so the universally quantified characterization on the right of the biconditional defining P is false. Both interpretations have some P-elements (primes in I 1, composites in I 2), making the antecedent ∀x[P(x)↔that characterization] false. Hence the full implication is true in both interpretations, D.
Distribute m identical balls among n distinct bags, each containing at least k balls, where k≥1 and m≥kn. How many distributions exist? A. binomial(m−k,n−1); B. binomial(m−kn+n−1,n−1); C. binomial(m−1,n−k); D. binomial(m−kn+n+k−2,n−k). The kn terms in the blurred GFG options are read using the cleaner alternate reproduction.
Your answer
Answer & solution
Answer: B (no official key was published)
1. Write the bag counts as xᵢ=k+yᵢ. Then every yᵢ≥0 and their sum is M=m−kn. Encoding M identical stars and n−1 separators gives M+n−1 positions, of which n−1 are separators. If m=kn the formula becomes binomial(n−1,n−1)=1, as required.
2. Put k balls into each of the n distinct bags first. There remain m−kn identical balls to distribute freely. Stars and bars gives binomial(m−kn+n−1,n−1), B, for m≥kn.
How many perfect matchings does the complete graph on six labeled vertices have? A. 15; B. 24; C. 30; D. 60.
Your answer
Answer & solution
Answer: A (no official key was published)
1. A perfect matching partitions all six vertices into three disjoint unordered pairs. Choose the partner of one designated vertex, remove that pair, and repeat with a designated remaining vertex. This avoids counting the same matching in different pair orders. In the factorial calculation, division by 2³ removes within-pair order and division by 3! removes pair order.
2. Pair a fixed vertex with any of 5 others; pair the smallest remaining vertex with any of 3; the final pair is forced. Thus 5×3×1=15 perfect matchings, A. Equivalently 6!/(2³·3!)=15.
An injective map f:A→B induces g:2^A→2^B by g(C)={f(x):x∈C} and h:2^B→2^A by h(D)={x∈A:f(x)∈D}. Which holds for every D⊆B? A. g(h(D))⊆D; B. g(h(D))⊇D; C. g(h(D))∩D=∅; D. g(h(D))∩(B−D)≠∅.
Your answer
Answer & solution
Answer: A (no official key was published)
1. An element b is in g(h(D)) exactly when b=f(a) for some a∈A whose image lies in D. This requires both b∈f(A) and b∈D, yielding D∩f(A). A value in D outside the image is never recovered, so injectivity does not justify the reverse containment.
2. h(D)=f-1(D), so g(h(D))=f(f-1(D))=D∩f(A), which is always a subset of D. Thus A. Equality need not hold because f is injective but not assumed onto B. This inclusion actually holds even without injectivity.
On {a,b,c}, binary operations + and × are specified by tables, with the left operand selecting the row and the right operand the column, columns a,b,c. Addition rows: a:(b,a,c), b:(a,b,c), c:(a,c,b). Multiplication rows: a:(a,b,c), b:(b,c,a), c:(c,c,b). How many ordered pairs (x,y) satisfy both (a×x)+(a×y)=c and (b×x)+(c×y)=c? A. 0; B. 1; C. 2; D. 3.
Your answer
Answer & solution
Answer: C (no official key was published)
1. Use the a row of multiplication to simplify the first equation to x+y=c. Inspecting all nine addition cells reduces nine candidate pairs to three. Evaluate the second equation on only those candidates, preserving operand order because these tables are not familiar field operations. The surviving pairs are (b,c) and (c,b), since the printed entry b×b is c.
2. The first equation admits (a,c),(b,c),(c,b). For these candidates the second left side is respectively b+b=b, c+b=c, and a+c=c. Thus (b,c) and (c,b) both solve the system: the printed tables give 2 solutions, option C.
Let Σ={a,b,c,d,e}, with g(a)=3,g(b)=5,g(c)=7,g(d)=9,g(e)=11, and let pᵢ be the ith prime (p₁=2). Encode a nonempty string s=a₁...aₙ by f(s)=product pᵢ^g(aᵢ), and a nonempty sequence of nonempty strings (s₁,...,sₘ) by h=product pᵢ^f(sᵢ). Which can be such an h? A. 2⁷3⁷5⁷; B. 2⁸3⁸5⁸; C. 2⁹3⁹5⁹; D. 2¹⁰5¹⁰7¹⁰.
Your answer
Answer & solution
Answer: B (no official key was published)
1. Prime factorization makes the outer positions and exponents uniquely recoverable. Every inner nonempty string encoding begins with at least 2³, so it is divisible by 8. Thus exponents 7,9,10 cannot encode any inner string. Conversely exponent 8 is exactly f(a), and B uses consecutive outer primes with three such exponents.
2. A string encoding f(s) uses consecutive primes starting with 2, with exponents from{3,5,7,9,11}. In particular f(a)=2³=8. Therefore 28·38·58 is the sequence encoding of(a,a,a), so B. Exponents 7 and 9 are not valid nonempty string encodings because such encodings are divisible by 8. D skips prime 3 in the outer encoding and also uses exponent 10, which is invalid.
An undirected graph G=(V,E) satisfies |E|≤3|V|−6. Its minimum degree is min over v∈V of degree(v). Which value cannot be the minimum degree? A. 3; B. 4; C. 5; D. 6.
Your answer
Answer & solution
Answer: D (no official key was published)
1. Apply the handshake lemma: sum of vertex degrees equals twice the number of edges. If every vertex had degree at least 6, the sum would be at least 6|V|, contradicting the bound 6|V|−12. Therefore at least one vertex has degree below 6. No assumption that the graph is planar is needed.
2. The degree sum is 2|E|≤6|V|−12, so the average degree is strictly less than 6. At least one vertex therefore has degree≤5, and the minimum degree cannot equal 6, D. The argument needs an undirected graph and a nonempty vertex set satisfying the inequality, but does not require proving planarity from the edge bound.
For a permutation a1,...,an of n distinct integers, an inversion is an index pair i<j with ai>aj. All permutations of 1,...,n are equally likely. What is the expected inversion count? A. n(n−1)/2 B. n(n−1)/4 C. n(n+1)/4 D. 2n floor(log2 n)
Your answer
Answer & solution
Answer: B (no official key was published)
1. There are choose(n,2)=n(n−1)/2 pairs of distinct positions i<j. 2. For any fixed pair, exchanging their two entries pairs every ordering ai>aj with an equally likely ordering ai<aj. Distinctness excludes equality, so the inversion probability is 1/2. 3. Let Iij be 1 for an inversion and 0 otherwise. Then E[Iij]=1/2 and total inversions I=Σi<j Iij. 4. Linearity gives E[I]=Σ E[Iij]=n(n−1)/4, B. Although different pairs' indicators may be dependent, linearity does not require independence.
Solution: For each of the n(n−1)/2 index pairs i<j, define an indicator for aᵢ>aⱼ. Symmetry gives probability 1/2 for each pair. By linearity of expectation, the expected inversion count is [n(n−1)/2]×1/2=n(n−1)/4, option B. Independence among those indicators is unnecessary.
Quantifying a Horn rule and an integrity constraint
Propositional & Predicate Logic
Tap to enlarge
Logic program P has clauses A(x)←B(x,y),C(y) and ←B(x,x). Which first-order sentence is equivalent? All variables in clauses are universally quantified. A. [∀x((∃y(B(x,y)∧C(y)))⇒A(x))] ∧ ¬∃x B(x,x) B. [∀x((∀y(B(x,y)∧C(y)))⇒A(x))] ∧ ¬∃x B(x,x) C. [∀x((∃y(B(x,y)∧C(y)))⇒A(x))] ∨ ¬∃x B(x,x) D. [∀x((∀y(B(x,y)∧C(y)))⇒A(x))] ∧ ∃x B(x,x) Option D above follows GateForum; GFG instead negates its final existential clause: ¬∃x B(x,x). Neither version changes the correct option A.
Your answer
Answer & solution
Answer: A (no official key was published)
1. The first clause means ∀x∀y((B(x,y)∧C(y))⇒A(x)). For each fixed x, a single witness y for the body is enough to force A(x). 2. Since y does not occur in A(x), move the body quantifier to obtain ∀x((∃y(B(x,y)∧C(y)))⇒A(x)). Using ∀y inside the antecedent would require every y to satisfy the body before forcing A, a weaker rule. 3. A headless clause is a constraint: B(x,x) must never hold. Thus the second clause means ∀x¬B(x,x), equivalently ¬∃x B(x,x). 4. Both clauses must hold together, requiring conjunction. These components match A exactly.
Solution: The rule says that for every x,y, B(x,y) and C(y) together imply A(x). Since A(x) does not depend on y, this is equivalent to saying for every x that the existence of such a y implies A(x). The headless clause forbids every instance of B(x,x), hence contributes not-exists x B(x,x). A program containing both clauses requires their conjunction. This is option A. Moving a universal quantifier inside the antecedent would weaken the rule; joining the clauses with OR would not enforce both.
Resolution derives P∨Q from premises P∨R and Q∨¬R. Under the ordinary pivot-free residual-clause convention, which statement is false? A. ((P∨R)∧(Q∨¬R))⇒(P∨Q) is logically valid. B. (P∨Q)⇒((P∨R)∨(Q∨¬R)) is logically valid. [This is GFG; GateForum replaces the middle ∨ on the right by ∧.] C. P∨Q is satisfiable iff (P∨R)∧(Q∨¬R) is satisfiable. D. (P∨Q)⇒FALSE iff both P and Q are unsatisfiable. Treat R as a pivot atom not occurring in residual P or Q.
Your answer
Answer & solution
Answer: None (no official key was published)
1. For A, if P and Q were both false, satisfying the first premise would require R=true and satisfying the second would require R=false. This contradiction proves soundness. 2. For C, soundness supplies one direction. Conversely, if P∨Q has a model, extend it with R=false when P is true, or R=true when Q is true. Both premises then hold. This extension uses the pivot-free assumption. 3. D follows because a disjunction has a model exactly when at least one disjunct has a model. 4. The paper B has R∨¬R on its right and is therefore always true. Thus none of its options is false. 5. If arbitrary residual formulas could contain R, C need not hold: P=R,Q=¬R makes the resolvent a tautology and the premises inconsistent. That is a different convention, not a silent repair of the paper.
Solution: Under the ordinary resolution convention, R is the pivot atom and neither residual clause P nor Q contains it. The conjunction of the premises entails P∨Q, so A is sound. Conversely, any satisfying assignment of P∨Q can be extended by an appropriate value of R to satisfy both premises, which establishes the satisfiability equivalence in C without claiming logical equivalence. D expresses that P∨Q is unsatisfiable exactly when both disjuncts are unsatisfiable. The paper B instead uses a disjunction on its right, which contains R∨not-R and is a tautology; under the ordinary convention no the paper option is false. If P and Q may be arbitrary formulas involving R, C also fails: set P=R and Q=not-R. Then the resolvent is a tautology but the premises reduce to R∧not-R. That broader interpretation must not be silently substituted for the conventional pivot-free reading.
What is the fewest colors needed for the vertices of an n-node cycle if adjacent vertices must receive different colors? (A) 2; (B) 3; (C) 4; (D) n − 2⌊n/2⌋ + 2.
Your answer
Answer & solution
Answer: D (no official key was published)
Step 1: Separate even and odd cycle lengths.
Step 2: Label successive vertices alternately red and blue. When n is even the last vertex is blue and the first red, so the closing edge is legal. When n is odd both would be red; recolor the last vertex with a third color. The expression n−2floor(n/2) is exactly zero or one, so the option captures both cases rather than claiming one constant color count.
Conclusion: An even cycle alternates two colors. An odd cycle cannot alternate consistently around the closing edge and needs a third color, which suffices. Thus χ=2+(n mod2)=n−2floor(n/2)+2, D, for an ordinary cycle n≥3.
Select the true statement about multiplication. (A) All negative rational numbers form a group. (B) All nonsingular matrices form a group. (C) All matrices form a group. (D) Both (B) and (C).
Your answer
Answer & solution
Answer: B (no official key was published)
Step 1: Test the four group axioms.
Step 2: For invertible A,B, the inverse of AB is B⁻¹A⁻¹, establishing closure as well as an inverse construction. The identity is the fixed-size identity matrix. In contrast, (−1)(−1)=1 leaves the set of negative rationals, and a zero matrix has no inverse. This rules out A,C and therefore the combined option D.
Conclusion: For a fixed dimension over a field, nonsingular matrices are closed under multiplication, matrix multiplication is associative, I is the identity, and each member has a nonsingular inverse. Thus B under this conventional fixed-dimension interpretation. Negative rationals are not closed under multiplication, and singular matrices lack inverses; matrices of mixed dimensions would not form the claimed group.
Choose the propositional formula for “If X then Y unless Z.” Here ¬ means negation, ∧ conjunction, and → implication. (A) (X ∧ ¬Z) → Y; (B) (X ∧ Y) → ¬Z; (C) X → (Y ∧ ¬Z); (D) (X → Y) ∧ ¬Z.
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: Translate the exceptional case before forming the implication.
Step 2: Only the case X=true,Z=false activates the requirement. The formula must therefore be false exactly when X=true,Z=false,Y=false. Option A has exactly this truth condition. A formula additionally demanding ¬Z when X is false, or forbidding Y whenever Z holds, would add an unstated requirement.
Conclusion: The obligation Y applies when X holds and the exception Z does not. This is (X∧¬Z)→Y, A, equivalently ¬X∨Z∨Y. The exception does not itself require ¬Y.
What is the maximum edge count in an undirected n-vertex graph without self-loops? (A) n²; (B) n(n−1)/2; (C) n−1; (D) n(n+1)/2.
Your answer
Answer & solution
Answer: B under the simple-graph convention (no official key was published)
Step 1: Count unordered vertex pairs.
Step 2: Vertex one can pair with n−1 others, vertex two with n−2 new others, and so on, giving(n−1)+(n−2)+…+1=n(n−1)/2. Dividing the ordered count n(n−1) by two gives the same result. The complete simple graph realizes every pair. If parallel edges are allowed, adding another edge between an existing pair defeats any fixed maximum.
Conclusion: There is one possible edge for each unordered pair of distinct vertices, so the maximum is binomial(n,2)=n(n−1)/2, B, achieved by Kn. This uses the conventional simple-graph interpretation. Excluding self-loops alone does not prohibit parallel edges in a multigraph, for which no finite bound follows.
A rooted tree has n nodes, each with either zero or three children. How many leaves does it have? (A) n/2; (B) (n−1)/3; (C) (n−1)/2; (D) (2n+1)/3.
Your answer
Answer & solution
Answer: D (no official key was published)
Step 1: Count edges in two ways.
Step 2: Every vertex except the root has exactly one parent edge, so there are n−1 edges. Every internal node has three children, so there are 3I edges. Equating gives I=(n−1)/3. Subtracting internal nodes from all nodes gives leaves L=n−(n−1)/3=(2n+1)/3. For the smallest nontrivial case n=4, this correctly returns three leaves.
Conclusion: Let I be the internal-node count and L the leaves. Each internal node supplies 3 child edges, while a tree has n−1 edges, so 3I=n−1. Hence L=n−I=(2n+1)/3, D, for n admitting such a tree.
Four fair coins are tossed together. What is the probability of obtaining at least one head and at least one tail? (A) 1/16; (B) 1/8; (C) 7/8; (D) 15/16.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: Count the complement event.
Step 2: Failure to have both outcomes means either no heads, namely TTTT, or no tails, namely HHHH. Each sequence has probability(1/2)4=1/16, and they are disjoint. Subtract their total 1/8 from one to obtain 7/8. Counting only one exceptional sequence would incorrectly give 15/16.
Conclusion: The16 equally likely outcomes exclude only HHHH and TTTT. Therefore P(at least one head and one tail)=1−2/16=7/8, C, assuming the four fair tosses are independent.
Let S be the empty binary relation on A={1,2,3}. Which description applies? (A) Neither reflexive nor symmetric; (B) Symmetric and reflexive; (C) Transitive and reflexive; (D) Transitive and symmetric.
Your answer
Answer & solution
Answer: D (no official key was published)
Step 1: Apply the quantified definitions.
Step 2: Symmetry says every(a,b) in S has(b,a) in S; there is no(a,b) to violate it. Transitivity says any(a,b),(b,c) in S imply(a,c); again no antecedent occurs. Reflexivity instead positively requires(1,1),(2,2),(3,3), all missing. Thus vacuous truth applies to the first two properties but not the third.
Conclusion: Symmetry and transitivity are implications whose antecedents require relation pairs. With no pairs both properties hold vacuously. Reflexivity fails on the nonempty set{1,2,3} because no diagonal pairs occur. Thus D.
A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Express Nᵣ in terms of n.
Shared context
A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.
Answer & solution
Answer: N_r = 2^(n²) (no official key was published)
1. Identify what is being counted. A binary relation on a set A is any subset R of A × A; there are no requirements such as reflexivity or symmetry in this question.
2. Count the possible ordered pairs. The first coordinate has n choices and the second also has n choices. The product rule therefore gives |A × A| = n². Reversed pairs are distinct when their coordinates differ.
3. Make an independent yes/no decision for every pair. Each of the n² pairs can be included in R or omitted. Multiplying the two choices for all pairs gives Nr = 2 × ⋯ × 2 = 2n².
4. Check the boundary case n = 1. If A = {a}, the two relations are ∅ and {(a,a)}. This agrees with 21² = 2. For n = 2 there are four possible pairs and therefore 16 relations.
A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Express N𝒻 in terms of n.
Shared context
A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.
Answer & solution
Answer: N_f = n^n (no official key was published)
1. Apply the definition of a total function. For every element x of the n-element set A, a function f:A → A must select exactly one image f(x). An element may not be left without an image, unlike an arbitrary relation.
2. Count the image choices. There are n possible values of f(x), because the codomain is also A. The images of different domain elements need not be distinct: the question counts all functions, not only injective functions.
3. Apply the product rule over the n domain elements. Independent choices give Nf = n × n × ⋯ × n = nn, with n factors.
4. Check a small example. For A = {a,b}, the ordered pair (f(a),f(b)) can be (a,a), (a,b), (b,a), or (b,b), giving 4 = 2² functions. Using n! would incorrectly discard the two constant functions.
A has n>0 elements. Let Nᵣ be the number of binary relations on A and N𝒻 the number of functions A→A. Which is larger, Nᵣ or N𝒻, for every possible n?
Shared context
A is a finite set of n > 0 elements. N_r counts all binary relations on A, and N_f counts all total functions A → A.
Answer & solution
Answer: N_r > N_f for every integer n > 0 (no official key was published)
1. Recall both counts in this leaf. For an n-element nonempty set, the number of relations is Nr = 2n², and the number of total functions A → A is Nf = nn. We must compare them for every positive integer n, not just for large n.
2. Embed the functions into the relations. Map f to its graph {(x,f(x)):x ∈ A}. Different functions differ at some input and therefore have different graphs. This is an injection into the set of binary relations, proving Nf ≤ Nr.
3. Show the inequality is strict. The empty relation is a binary relation, but it cannot be the graph of a total function on a nonempty domain. Thus there is at least one relation outside the image of that injection.
4. Conclude Nr > Nf for every n > 0, including n = 1, where the counts are 2 and 1. Algebraically, the same comparison follows from 2n > n and raising both positive sides to the power n.
On A={1,2,3}, let S={(1,2),(2,1)}. Is S irreflexive? Add as few ordered pairs as possible to make it an equivalence relation, and give the resulting relation.
Shared context
Part (a) concerns S = {(1,2),(2,1)} on A = {1,2,3}. Part (b) separately concerns the power set of {a,b}, ordered by inclusion.
Answer & solution
Answer: Irreflexive; add (1,1), (2,2), (3,3), for 3 added pairs (no official key was published)
1. Test the original relation, not the completed relation. Here A = {1,2,3} and S = {(1,2),(2,1)}. Irreflexivity means (x,x) ∉ S for every x ∈ A. None of (1,1), (2,2), (3,3) is present, so the original S is irreflexive.
2. Obtain a lower bound on the additions. Any equivalence relation must be reflexive on all of A. Therefore all three missing diagonal pairs must be added; fewer than three additions cannot work.
3. Add exactly those necessary pairs. The candidate is S′ = {(1,1),(1,2),(2,1),(2,2),(3,3)}.
4. Verify every equivalence property. Reflexivity holds because all three diagonal pairs are present. Symmetry holds because the only non-diagonal pairs, (1,2) and (2,1), occur together. Transitivity holds because the pairs on {1,2} include every ordered pair within that class, while 3 relates only to itself. A chain of related elements therefore never crosses between the classes {1,2} and {3}.
5. Three additions are both necessary and sufficient. The minimum is 3, with completed relation S′ as above. The completed relation is reflexive; irreflexivity described the starting relation only.
Let S={a,b}. Order its power set P(S) by set inclusion. Draw the Hasse diagram of the lattice (P(S),⊆).
Shared context
Part (a) concerns S = {(1,2),(2,1)} on A = {1,2,3}. Part (b) separately concerns the power set of {a,b}, ordered by inclusion.
Answer & solution
Answer: Diamond with bottom ∅, middle {a} and {b}, top {a,b} (no official key was published)
1. Enumerate the elements of the power set of S = {a,b}: ∅, {a}, {b}, and {a,b}. The order is set inclusion, not the order of writing the symbols a and b.
2. Determine the cover relations. ∅ is immediately below each singleton, and each singleton is immediately below {a,b}. Neither {a} nor {b} contains the other, so they are incomparable.
3. Draw the Hasse diagram with larger sets above smaller ones:
{a,b}
/ \
{a} {b}
\ /
∅
4. Check why there are exactly four edges. The covers are ∅ < {a}, ∅ < {b}, {a} < {a,b}, and {b} < {a,b}. A Hasse diagram omits reflexive loops and the transitive relation ∅ < {a,b}, since the latter is already represented by upward paths.
5. Confirm the lattice interpretation: any two subsets have intersection as their greatest lower bound and union as their least upper bound. For example, {a} ∧ {b} = ∅ and {a} ∨ {b} = {a,b}.
Classify the following formula as a tautology, a contradiction, or neither. Here ∨ is OR, ∧ is AND, ¬ is NOT, → is implication, and ↔ is biconditional. A ↔ (A ∨ A).
Shared context
Part (a) asks for eigenvalues of a 4 × 4 upper-triangular matrix. Part (b) independently classifies three propositional formulas as tautologies, contradictions, or neither.
Answer & solution
Answer: Tautology (no official key was published)
1. Identify the formula: A ↔ (A ∨ A). A biconditional is true exactly when the expressions on its two sides have the same truth value.
2. Apply idempotence of disjunction. Repeating a proposition does not change it: A ∨ A = A. The formula therefore becomes A ↔ A.
3. Check both assignments explicitly:
A A∨A A↔(A∨A)
F F T
T T T
4. The last column is true for every assignment, so the formula is a tautology. This is stronger than merely finding an assignment that makes it true; a contradiction would require every assignment to make it false, and a contingent formula would have both outcomes.
Classify the following formula as a tautology, a contradiction, or neither. Here ∨ is OR, ∧ is AND, ¬ is NOT, → is implication, and ↔ is biconditional. (A ∨ B) → B.
Shared context
Part (a) asks for eigenvalues of a 4 × 4 upper-triangular matrix. Part (b) independently classifies three propositional formulas as tautologies, contradictions, or neither.
Answer & solution
Answer: Neither a tautology nor a contradiction (no official key was published)
1. Identify the formula: (A ∨ B) → B. An implication is false only when its antecedent is true and its consequent is false.
2. Eliminate the implication and simplify: (A ∨ B) → B = ¬(A ∨ B) ∨ B = (¬A ∧ ¬B) ∨ B = (¬A ∨ B) ∧ (¬B ∨ B) = ¬A ∨ B.
3. Evaluate all four assignments, or equivalently use the implication’s false-case rule:
A B A∨B (A∨B)→B
F F F T
F T T T
T F T F
T T T T
4. The row A = T, B = F rules out a tautology. Any true row, such as A = F, B = F, rules out a contradiction. Therefore the formula is neither; it is contingent. In particular, a false antecedent in the first row makes the implication true, not false.
Classify the following formula as a tautology, a contradiction, or neither. Here ∨ is OR, ∧ is AND, ¬ is NOT, → is implication, and ↔ is biconditional. A ∧ ¬(A ∨ B).
Shared context
Part (a) asks for eigenvalues of a 4 × 4 upper-triangular matrix. Part (b) independently classifies three propositional formulas as tautologies, contradictions, or neither.
Answer & solution
Answer: Contradiction (no official key was published)
1. Identify the formula: A ∧ ¬(A ∨ B). For a conjunction to be true, both A and ¬(A ∨ B) would have to be true simultaneously.
2. Apply De Morgan’s law: ¬(A ∨ B) = ¬A ∧ ¬B. Substitution gives A ∧ ¬A ∧ ¬B.
3. Isolate the impossible requirement. The conjunction contains both A and ¬A, whose conjunction is false under every assignment. Multiplying by the remaining condition ¬B cannot make a false conjunction true.
4. Alternatively inspect the two cases for A. If A is false, the original outer conjunction is false immediately. If A is true, then A ∨ B is true for either value of B, so its negation is false. Both cases give false.
5. Hence the formula is a contradiction, not merely a contingent formula that happens to fail on one input.
Original13(a): For integer n≥2, count ordered expressions of n as a sum of two positive integers, not necessarily distinct. For n = 3, 1+2 and 2+1 are different expressions. Give only the answer without explanation.
Answer & solution
Answer: n−1 (no official key was published)
There are n−1 ordered pairs: choose the first summand from 1 through n−1, after which the second is n minus that choice. Equivalently, choose one of the n−1 gaps between n unit objects as a separator. The example counts 1+2 and 2+1 separately, so these are ordered compositions, not unordered partitions.
Original13(b): For integer n≥3, count ordered expressions of n as a sum of three positive integers, allowing repeats. For n=4 the three expressions are 1+1+2, 1+2+1, 2+1+1. Give only the answer without explanation.
Answer & solution
Answer: C(n−1,2) = (n−1)(n−2)/2 (no official key was published)
Place two separators in distinct gaps among n unit objects. There are n−1 gaps, and choosing two gives C(n−1,2)=(n−1)(n−2)/2 ordered positive triples. For n=4 these are (1,1,2), (1,2,1), and (2,1,1).
Original13(c): For n≥k≥1, count ordered expressions of n as a sum of k positive integers, allowing repeated summands. Give only the answer without explanation.
Answer & solution
Answer: C(n−1,k−1) (no official key was published)
For n≥k≥1, separate a row of n unit objects into k nonempty consecutive groups by choosing k−1 of its n−1 internal gaps. Group lengths give an ordered k-tuple of positive integers summing to n, and every such tuple yields exactly one separator choice. Therefore the count is C(n−1,k−1). This also gives one composition when n=k or k=1.
Which relations are equivalence relations? R1 on integers: a+b is even; R2 on integers: a+b is odd; R3 on nonzero rationals: ab>0; R4 on natural numbers: |a−b|≤2. Options select R1/R2, R1/R3, R1/R4, or all four.
Your answer
Answer & solution
Answer: B (no official key was published)
Step 1: R1 means the integers have the same parity. Equality of parity is reflexive, symmetric and transitive, giving two equivalence classes. R3 means two nonzero rationals have the same sign, another equivalence relation.
Step 2: R2 is not reflexive because a+a is always even, never odd. R4 is not transitive: |1−3|≤2 and |3−5|≤2, but |1−5|>2.
Conclusion: Exactly R1 and R3 qualify, so B. Testing only symmetry would miss the failures in R2 and R4.
Classify F1=(P→¬P) and F2=(P→¬P)∨(¬P→P). Choices: A F1 satisfiable and F2 valid; B F1 unsatisfiable and F2 satisfiable; C F1 unsatisfiable and F2 valid; D both satisfiable.
Your answer
Answer & solution
Answer: A is strongest; D is also literally true (no official key was published)
Step 1: P→¬P simplifies to ¬P, so F1 is true when P is false and false when P is true. It is satisfiable but not valid.
Step 2: ¬P→P simplifies to P. Therefore F2=(¬P)∨P is a tautology, true for both valuations, so A states the precise classifications.
Option issue: Every valid formula is also satisfiable on this nonempty valuation space. Consequently D, saying both formulas are satisfiable, is also true. B and C incorrectly call F1 unsatisfiable. A is more informative, but the literal single-correct-option premise fails.
Count four-digit even decimal numbers whose four digits are distinct. Options are 2240,2296,2620,4536.
Your answer
Answer & solution
Answer: B (no official key was published)
Step 1: Separate the final digit 0 from the other even digits. If the last digit is 0, the first digit has 9 choices and the middle positions have 8 and 7, giving 9·8·7=504.
Step 2: If the last digit is one of 2,4,6,8, there are 4 choices. The first digit can be any nonzero digit except that last digit:8 choices. The middle positions then have 8 and 7 choices, including zero if unused. This gives 4·8·8·7=1792.
Total 504+1792=2296, B. Counting all even last digits uniformly would mishandle leading zero.
Existence statements about infinite sets and irrationals
Sets, Relations & Functions
Tap to enlarge
Assess two existence claims: infinite sets A,B,C can have finite A∩(B∪C); irrational numbers x,y can have rational x+y. Choices distinguish only the first, only the second, both, or neither.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: Let A be the nonnegative even integers and B=C the positive odd integers. All three sets are infinite, while A∩(B∪C)=∅ is finite. Thus S1 is possible. The problem does not require B and C to differ.
Step 2: Choose x=√2 and y=−√2. Both are irrational and their sum is the rational number 0. Thus S2 also holds.
Therefore both existence statements are true, C. Infinite input sets need not have an infinite intersection, and irrational numbers can cancel.
For any function f:A→B and subsets E,F⊆A, assess f(E∪F)=f(E)∪f(F) and f(E∩F)=f(E)∩f(F). Choices distinguish only the first, only the second, both, or neither.
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: A value lies in f(E∪F) exactly when it is f(x) for some x in E or F. This is exactly membership in f(E)∪f(F), proving S1 for every function.
Step 2: Intersection gives only f(E∩F)⊆f(E)∩f(F) in general. Take E={a},F={b},a≠b, and a constant function with f(a)=f(b)=0. The left side is empty, but the right side is{0}.
Thus S2 need not hold and only S1 is universally correct, A. Injectivity would make the intersection equality valid.
Seven distinct accidents occur during one week. Find the probability that all occur on one day, using and explicitly stating the conventional day-assignment model. Options: 1/7^7, 1/7^6, 1/2^7, 7/2^7.
Your answer
Answer & solution
Answer: B under independent uniform day assignments (no official key was published)
Step 1: Treat the seven distinct accidents as independent choices among seven equally likely days. There are 77 equally likely day assignments.
Step 2: Exactly seven assignments put every accident on the same day, one for each possible day. The probability is 7/77=1/76, B. Equivalently, leave the first accident’s day unrestricted and require each of the other six to match it.
The independence/uniformity model is not explicit in the source. Real accident rates or correlated events need not give this probability; seven events occurring in a week alone does not determine it.
How many undirected graphs can be formed on a fixed labeled set of n vertices, without requiring connectedness? Choices: n(n−1)/2, 2^n, n!, 2^[n(n−1)/2]. State the simple loop-free graph convention.
Your answer
Answer & solution
Answer: D under the simple loop-free convention (no official key was published)
Step 1: The fixed labeled vertex set has binomial(n,2)=n(n−1)/2 possible unordered pairs of distinct vertices. Each pair can independently be an edge or not.
Step 2: Multiplying these two choices for every pair gives 2^[n(n−1)/2], D. Connectedness is not imposed, so no edge subsets are excluded.
This is the conventional simple loop-free graph model. Permitting loops adds n binary choices, and permitting unrestricted parallel edges would remove this finite count. The fixed labels mean we are not quotienting by graph isomorphism.
Answer: h is injective. (no official key was published)
1. Assume h(a,b)=h(c,d). Adding 1 gives (2a+1)2b=(2c+1)2d, where both parenthesized factors are odd positive integers.
2. If b<d, divide by 2b. The left side is odd and the right side, (2c+1)2d−b, is even, a contradiction. The symmetric argument rules out d<b.
3. Thus b=d. Cancelling 2b gives 2a+1=2c+1, so a=c.
4. Equality of images has forced equality of both coordinates, exactly the definition of injectivity. The argument also covers zero coordinates, since 20=1 and 2·0+1 is odd.
Answer: For n≥0, write n+1=u2^b with u odd; its preimage is ((u−1)/2,b). (no official key was published)
1. Take an arbitrary target n∈N. The positive integer n+1 can be repeatedly divided by 2 until an odd number u remains. This terminates because positive integers strictly decrease at each division.
2. If b divisions were made, then n+1=u2b, with b≥0 and u≥1 odd. Define a=(u−1)/2, which is a nonnegative integer.
3. Then h(a,b)=(2a+1)2b−1=u2b−1=n. Thus every target has a preimage in N×N, establishing surjectivity.
4. For example n=11 gives n+1=12=3·2², so (a,b)=(1,2). For n=0 the preimage is (0,0). Combined with injectivity, h is a bijection.
How many cards must be dealt from any shuffled standard 52-card deck to guarantee three of one suit? Options: 3,8,9,12.
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: To avoid three of a suit, take at most two from each of the four suits. This allows 4·2=8 cards, so eight do not guarantee the required triple.
Step 2: A ninth card must belong to one of those four suits and raises its count to at least three. This is the pigeonhole principle.
Conclusion: Nine is sufficient and the eight-card construction proves minimality, so C.
Option D follows. Choosing 1/2 would give union probability 3/4, because independent events with probability 1/2 overlap with probability 1/4; they are not disjoint.
On integers, define xRy when x+y is even. Is R not an equivalence relation, or does it have one,two,or three equivalence classes?
Your answer
Answer & solution
Answer: C (no official key was published)
Step 1: x+y is even exactly when x and y have the same parity. Every integer has its own parity, parity matching is symmetric, and matching parity is transitive.
Step 2: The two classes are all even integers and all odd integers. Neither is empty, and no even integer relates to an odd one.
Hence R is an equivalence relation with exactly two classes, C.
Which is always true? A P(P(S))=P(S); B P(S)∩P(P(S))={∅}; C P(S)∩S=P(S); D S∉P(S). Both reproductions visibly use nonmembership in D.
Your answer
Answer & solution
Answer: No listed option is universally true as printed (no official key was published)
Step 1: D is always false, because every set is a subset of itself and therefore S∈P(S). A is false by Cantor’s theorem, or simply take S=∅, giving P(S)={∅} but P(P(S))={∅,{∅}}.
Step 2: B is not universal: with S={∅}, both ∅ and {∅} belong to P(S) and P(P(S)), so their intersection has two elements. C also fails for S=∅, since its left side is empty and right side is{∅}.
Therefore none is always true. Replacing ∉ by ∈ in D would repair it, but that alteration is not silently made or attributed to an official key.
Assume a↔(b∨¬b) and b↔c. Evaluate (a∧b)→((a∧c)∨d). Is it always true,false,equal to b,or equal to d?
Your answer
Answer & solution
Answer: A (no official key was published)
Step 1: b∨¬b is a tautology, so the first premise forces a=true. The second premise makes c and b have the same value.
Step 2: The formula reduces to b→(b∨d). If b is false the implication is true; if b is true its consequent is true.
Thus the formula is always true, A, independently of d. This also follows directly because the antecedent guarantees the first disjunct in the consequent.
Answer: sₙ=⌈n/2⌉ for n≥1. (no official key was published)
1. Use strong induction because the recurrence depends on two previous terms. The proposed formula gives 1 for n=1 and n=2, matching both initial conditions.
2. Assume the formula holds through n−1, with n≥3. Then sₙ=1+min(⌈(n−1)/2⌉,⌈(n−2)/2⌉). The second ceiling is no larger, so the minimum is ⌈(n−2)/2⌉.
3. Because subtracting an integer commutes with ceiling, ⌈(n−2)/2⌉=⌈n/2⌉−1. Therefore sₙ=⌈n/2⌉, completing induction.
4. Equivalently, n=2k gives 1+min(k,k−1)=k and n=2k+1 gives 1+min(k,k)=k+1. The first terms 1,1,2,2,3,3 check the ceiling rather than floor convention.
Answer: 0 has no inverse relative to identity 1. (no official key was published)
1. The multiplication table is 0⊗0=0, 0⊗1=0, 1⊗0=0, 1⊗1=1. The set is closed, and associativity is inherited from integer multiplication modulo 8.
2. The identity is 1. Zero cannot be an identity because 0⊗1=0≠1.
3. For either candidate inverse y∈{0,1}, 0⊗y=0, never 1. Thus 0 has no inverse, violating a necessary group axiom. Closure and associativity alone do not establish a group.
Task: Give three distinct two-element subsets G such that (G,⊗) is a group.
Shared context
S={0,1,2,3,4,5,6,7}; x⊗y=(xy) mod 8.
Answer & solution
Answer: {1,3}, {1,5}, {1,7}. (no official key was published)
1. Choose a nonidentity element a with a²≡1 (mod 8). The odd residues 3,5,7 satisfy 9≡25≡49≡1 (mod 8).
2. For each a∈{3,5,7}, the entire table on {1,a} is 1⊗1=1, 1⊗a=a, a⊗1=a, a⊗a=1. This proves closure and identity 1.
3. Each element is its own inverse, and associativity is inherited from multiplication modulo 8. Hence all three subsets are groups, each isomorphic to the cyclic group of order 2.
A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.
Task: How many multisets can be constructed, with no size bound stated?
Shared context
A multiset is unordered; repetitions are allowed, and its size counts repetitions. Elements are chosen from n distinct types.
Answer & solution
Answer: Countably infinitely many for n≥1; one (the empty multiset) for n=0. (no official key was published)
1. A multiset is specified by its multiplicity vector (m₁,…,mₙ), each mᵢ a nonnegative integer. The question gives no upper bound on the sum.
2. For n≥1, using 0,1,2,… copies of the first type already gives infinitely many distinct multisets.
3. There are C(n+k−1,k) multisets of each fixed size k by stars and bars. A countable union over k≥0 of finite sets is countable, so the answer is countably infinite.
4. If size four had also been imposed here, the answer would instead be C(n+3,4). The printed part (b) does not impose that bound. With no element types, only the empty multiset exists.
G has one vertex for each of the 2ⁿ subsets of S={1,…,n}. Vertices A,B are adjacent iff |A△B|=2, where △ is symmetric difference.
Task: Find the common degree of each vertex.
Shared context
G has one vertex for each of the 2ⁿ subsets of S={1,…,n}. Vertices A,B are adjacent iff |A△B|=2, where △ is symmetric difference.
Answer & solution
Answer: C(n,2)=n(n−1)/2. (no official key was published)
1. Fix any vertex A. A neighbor must be obtained by toggling membership of exactly two distinct elements of S.
2. For every unordered pair P⊆S, |P|=2, the vertex B=A△P is a neighbor. Different pairs give different B because A△B uniquely recovers P.
3. This is a bijection between neighbors and two-element subsets of S. Thus every vertex has degree C(n,2), independently of |A|. For n=0 or 1 there are no edges.
G has one vertex for each of the 2ⁿ subsets of S={1,…,n}. Vertices A,B are adjacent iff |A△B|=2, where △ is symmetric difference.
Task: Find the number of connected components.
Shared context
G has one vertex for each of the 2ⁿ subsets of S={1,…,n}. Vertices A,B are adjacent iff |A△B|=2, where △ is symmetric difference.
Answer & solution
Answer: Two for n≥1: even-cardinality and odd-cardinality subsets; one if n=0. (no official key was published)
1. Toggling two memberships changes cardinality by −2, 0 or +2. Its parity cannot change, so no path joins an even subset to an odd subset.
2. Conversely, if A and B have the same parity, their symmetric difference has even size. Partition A△B into pairs P₁,…,Pₖ and successively toggle these pairs.
3. Every toggle is a legal edge and after k toggles the vertex is A△(A△B)=B. Thus each parity class is connected.
4. Both parity classes are nonempty when n≥1, giving exactly two components. When n=1 these are two isolated vertices. If the degenerate case n=0 is allowed, the graph has only ∅ and hence one component.
A random variable has E[X]=5. Must some outcome have X=5, X>5, X≥5, or none of these?
Your answer
Answer & solution
Answer: C (no official key was published)
Suppose every outcome had X<5. Then Y=5−X is positive everywhere. Since a positive random variable has positive expectation, E[Y]>0, contradicting E[Y]=5−E[X]=0. Hence some outcome has X≥5. Equality need not occur: equal probabilities on 4 and 6 have mean 5 but never value 5. Nor must a value exceed 5: the constant variable X=5 is a counterexample. Thus only C is forced, assuming the stated finite expectation.
How many binary relations exist on a set of n elements? Options: n,2^n,2^(n²),none.
Your answer
Answer & solution
Answer: C (no official key was published)
A binary relation is any subset of the Cartesian product S×S. There are n choices for each coordinate, hence n² ordered pairs. Each pair independently either belongs to the relation or does not. Multiplying the two choices over n² pairs gives 2n², C. No reflexivity, symmetry or function restriction is imposed; imposing one would change the count.
Count strings containing n zeros and k ones with no adjacent ones. The listed binomial choice A is C(n+1,k).
Your answer
Answer & solution
Answer: A (no official key was published)
First place the n zeros in their fixed order. They create n+1 gaps: before the first zero, between consecutive zeros, and after the last zero. A valid string uses at most one 1 in each gap, otherwise two ones would be adjacent. Choose exactly k of those gaps, giving C(n+1,k). Conversely every such choice creates one valid string, so this is a bijection rather than merely an upper bound. When k>n+1 the count is zero.
The graph has edges 12,13,23,24,35,36,56,57. How many articulation vertices: 0,1,2,3?
Your answer
Answer & solution
Answer: D: 3 (no official key was published)
Removing vertex 2 isolates leaf 4. Removing vertex 3 separates the triangle on 1,2 from the triangle on 5,6. Removing vertex 5 isolates leaf 7. Therefore 2,3,5 are articulation points. Removing either leaf does not disconnect the remaining graph, and removing 1 or 6 leaves the corresponding triangle connected through its other edge. No other vertex qualifies, so the count is three, D. The edge list is a self-contained transcription of the linked diagram.
P(E1)=1/2,P(E2)=1/3,P(E1∩E2)=1/5. Evaluate union=2/3, independence, nonindependence, and P(E1|E2)=4/5.
Select all that apply
Answer & solution
Answer: C (no official key was published)
Inclusion–exclusion gives P(E1∪E2)=1/2+1/3−1/5=19/30, not 2/3. Independence would require intersection (1/2)(1/3)=1/6, unequal to 1/5; hence B is false and C true. The conditional probability is (1/5)/(1/3)=3/5, not 4/5. Therefore only C is correct. Conditional probabilities divide by the conditioning event, not by the union.
Two distinct girls divide 10 roses,15 sunflowers and 14 daffodils. Count allocations among 1638,2100,2640,none.
Select all that apply
Answer & solution
Answer: C (no official key was published)
The first girl may receive any number of roses from 0 through 10, giving 11 choices; the second receives the remainder. Independently there are 16 sunflower choices and 15 daffodil choices. By the product rule there are 11·16·15=2640 allocations, C. Flowers of the same type are treated as indistinguishable, and empty shares of a type are allowed. Counting subsets of individually labelled flowers would solve a different problem. Under the latter wording the count is 11·16·16=2816, giving D instead. The the paper-derived C is not claimed as an official answer.
R is reflexive,antisymmetric,transitive on L, and every pair has a least upper bound and greatest lower bound. Must L be a poset,Boolean algebra,lattice,or none?
Select all that apply
Answer & solution
Answer: A,C (no official key was published)
The first three axioms are exactly those of a partial order, so L is a poset: A. Existence of a join and meet for every pair upgrades that poset to a lattice: C. Boolean algebra requires additional structure, including boundedness, complements and distributivity; none follows merely from the given pairwise bounds. A three-element chain is a lattice but its middle element has no Boolean complement. Therefore B is not forced, and D is false.
For a relation R on a set X, Mr. X claims symmetry and transitivity imply reflexivity. His proof starts with xRy, obtains yRx by symmetry, and then xRx by transitivity. Briefly identify the flaw. (This final instruction appears in GFG but is omitted from GateForum.)
Shared context
For a relation R on a set X, Mr. X claims symmetry and transitivity imply reflexivity. His proof starts with xRy, obtains yRx by symmetry, and then xRx by transitivity. Briefly identify the flaw.
Answer & solution
Answer: The proof assumes every x has some related y; symmetry and transitivity do not guarantee this. (no official key was published)
1. Reflexivity requires xRx for every x in the specified underlying set X. The proof must therefore start with an arbitrary x, not with an arbitrarily available related pair.
2. Its deductions from xRy are valid: symmetry gives yRx, and transitivity then gives xRx. What is unjustified is the premise that, for each x, there exists any y with xRy.
3. Thus the argument proves only: if x occurs as the first coordinate of some pair in R, then xRx. Elements outside that domain may have no related pairs at all.
4. For example, on X={0,1}, R={(0,0)} satisfies symmetry and transitivity but does not contain (1,1). Replacing the missing premise with an assumption that every x relates to some y would make the proposed proof valid.
Give a relation R that is symmetric and transitive but not reflexive. Specify its underlying set.
Shared context
Give a relation R that is symmetric and transitive but not reflexive. Specify its underlying set.
Answer & solution
Answer: On X={0,1}, take R={(0,0)}. (no official key was published)
Choose X={0,1} and R={(0,0)}. Symmetry holds because the reverse of its only pair is the same pair. For transitivity, if xRy and yRz hold, both pairs must be (0,0), so x=z=0 and the required pair xRz=(0,0) is in R. However, reflexivity on X would require both (0,0) and (1,1); the latter is absent.
The universe matters: this same relation would be reflexive on {0}. Alternatively, the empty relation on any nonempty set works, since symmetry and transitivity are vacuously true while at least one required diagonal pair is missing.
Let G be a finite group, H a subgroup, and aH={ah:h∈H} for a∈G. Prove |aH|=|H|.
Shared context
Let G be a finite group, H a subgroup, and aH={ah:h∈H} for a∈G. Prove |aH|=|H|.
Answer & solution
Answer: Left multiplication h↦ah is a bijection H→aH. (no official key was published)
Define φ:H→aH by φ(h)=ah. It is surjective by the definition of aH: every element there is ah for some h in H. It is injective because ah₁=ah₂ implies h₁=h₂ after multiplying on the left by a⁻¹. Thus φ is a bijection, proving equal cardinalities. Its inverse is x↦a⁻¹x, which sends each x=ah back to h∈H. Commutativity is unnecessary; the side on which cancellation occurs must remain consistent.
Let G be a finite group, H a subgroup, and aH={ah:h∈H} for a∈G. Prove aH=bH or aH∩bH=∅ for all a,b∈G.
Shared context
Let G be a finite group, H a subgroup, and aH={ah:h∈H} for a∈G. Prove aH=bH or aH∩bH=∅ for all a,b∈G.
Answer & solution
Answer: A shared element forces equality of the two left cosets. (no official key was published)
If the intersection is empty there is nothing to prove. Otherwise choose x=ah₁=bh₂ with h₁,h₂∈H. Rearrangement gives b⁻¹a=h₂h₁⁻¹∈H, using subgroup closure and inverses.
For any ah∈aH, write ah=b(h₂h₁⁻¹h). The parenthesized product belongs to H, so ah∈bH; hence aH⊆bH. Likewise a⁻¹b=h₁h₂⁻¹∈H gives bH⊆aH. Therefore aH=bH.
This proof does not assume the cosets themselves are subgroups, which need not be true. The subgroup properties are used only for products of the h-elements.
Let G be a finite group, H a subgroup, and aH={ah:h∈H} for a∈G. Use equal coset sizes and the equal-or-disjoint property to show |H| divides |G|.
Shared context
Let G be a finite group, H a subgroup, and aH={ah:h∈H} for a∈G. Use equal coset sizes and the equal-or-disjoint property to show |H| divides |G|.
Answer & solution
Answer: |G|=[G:H]|H|, so |H| divides |G|. (no official key was published)
Every g∈G belongs to gH because the identity e lies in H and g=ge. Thus all left cosets cover G. By the previous part, distinct left cosets do not overlap; they form a partition. Finiteness of G means there are a finite number r of distinct cosets. Each has |H| elements by the multiplication bijection. Counting the disjoint union yields |G|=r|H|. Since r is an integer, |H| divides |G|. The number r is called the index [G:H]; no normality assumption is needed.
G is the undirected graph on {A,B,C,D,E,F} with edges {AB,AD,AE,AF,BC,BD,CF,DE,DF,EF}. Edge crossings without a labeled vertex are not vertices. A cut is any edge set whose removal disconnects G; a min-cut has minimum cardinality. Is {AB,EF,BD,AE,AD} a cut?
Shared context
G is the undirected graph on {A,B,C,D,E,F} with edges {AB,AD,AE,AF,BC,BD,CF,DE,DF,EF}. Edge crossings without a labeled vertex are not vertices. A cut is any edge set whose removal disconnects G; a min-cut has minimum cardinality. Is {AB,EF,BD,AE,AD} a cut?
Answer & solution
Answer: No; the remaining graph is connected. (no official key was published)
After deleting the proposed five edges, the remaining edges are AF, BC, CF, DE, and DF. They form a connected spanning tree: B–C–F–D–E is a path and A attaches to F. In particular, starting at F reaches A and C directly, B through C, D directly, and E through D. Therefore no vertex is separated, and the proposed set is not a cut. Removing many edges does not by itself guarantee disconnection; one must check connectivity of the surviving graph.
G is the undirected graph on {A,B,C,D,E,F} with edges {AB,AD,AE,AF,BC,BD,CF,DE,DF,EF}. Edge crossings without a labeled vertex are not vertices. A cut is any edge set whose removal disconnects G; a min-cut has minimum cardinality. Is {BD,CF,AB} a cut?
Shared context
G is the undirected graph on {A,B,C,D,E,F} with edges {AB,AD,AE,AF,BC,BD,CF,DE,DF,EF}. Edge crossings without a labeled vertex are not vertices. A cut is any edge set whose removal disconnects G; a min-cut has minimum cardinality. Is {BD,CF,AB} a cut?
Answer & solution
Answer: Yes; it separates {B,C} from {A,D,E,F}. (no official key was published)
The only edges crossing between {B,C} and the remaining vertices are BA, BD, and CF. All three are removed. The edge BC survives, leaving B and C connected to one another but with no path to the other four vertices. The induced remaining subgraph on {A,D,E,F} is connected, for example by AD, DE, and EF. Consequently the deletion produces exactly two components and is a cut. Its size is three, although it is not a minimum cut.
G is the undirected graph on {A,B,C,D,E,F} with edges {AB,AD,AE,AF,BC,BD,CF,DE,DF,EF}. Edge crossings without a labeled vertex are not vertices. A cut is any edge set whose removal disconnects G; a min-cut has minimum cardinality. Find the min-cut cardinality.
Shared context
G is the undirected graph on {A,B,C,D,E,F} with edges {AB,AD,AE,AF,BC,BD,CF,DE,DF,EF}. Edge crossings without a labeled vertex are not vertices. A cut is any edge set whose removal disconnects G; a min-cut has minimum cardinality. Find the min-cut cardinality.
Answer & solution
Answer: 2, witnessed by removing BC and CF to isolate C. (no official key was published)
An upper bound is immediate: C has degree two, so deleting BC and CF isolates C. Hence the minimum cut has size at most two.
To exclude a one-edge cut, show that no edge is a bridge. The cycle A–B–C–F–A contains AB, BC, CF, AF. The triangle A–B–D–A contains BD and AD. The triangle A–D–E–A contains DE and AE. Finally the triangle D–E–F–D contains EF and DF. Together these cycles cover every edge of G.
An edge on a cycle cannot be a bridge because the rest of that cycle provides an alternate path between its endpoints after deletion. The graph is connected initially, so a zero-edge cut is impossible. Therefore its minimum cut cardinality is exactly two.
Let G be a connected undirected graph with n≥2 vertices and min-cut cardinality k. Prove G has at least nk/2 edges.
Shared context
Let G be a connected undirected graph with n≥2 vertices and min-cut cardinality k. Prove G has at least nk/2 edges.
Answer & solution
Answer: 2|E|=Σᵥdeg(v)≥nk, so |E|≥nk/2. (no official key was published)
For each vertex v, delete all edges incident to v. This isolates v from the other n−1 vertices, so those deg(v) edges form a cut. Since k is the minimum possible cut size, deg(v)≥k for every v.
Sum these n inequalities to obtain Σᵥdeg(v)≥nk. By the handshake lemma, every undirected edge contributes one to each endpoint degree, and therefore Σᵥdeg(v)=2|E|. Dividing by two gives |E|≥nk/2. If nk is odd, the integer edge count is in fact at least ⌈nk/2⌉. The proof explains why the minimum cut bounds every degree rather than merely the average degree.
Answer: Counterexample p=false, q=true. (no official key was published)
An implication is false precisely when its antecedent is true and consequent false. Set p=false and q=true. Then ¬p ∨ q=true ∨ true=true, but q ⇒ p=true ⇒ false=false. The whole formula is therefore false. One counterexample suffices to refute a tautology; it need not be false on every valuation. Indeed the formula simplifies to p ∨ ¬q: ¬(¬p ∨ q) ∨ (¬q ∨ p)=(p ∧ ¬q) ∨ ¬q ∨ p=p ∨ ¬q. Its values for (p,q)=(F,F),(F,T),(T,F),(T,T) are T,F,T,T.
If A is a tautology and B is any propositional formula, prove A ∨ B is a tautology.
Answer & solution
Answer: A ∨ B is true under every valuation. (no official key was published)
Take an arbitrary valuation v of every propositional variable occurring in A or B. Because A is a tautology, v(A)=true regardless of that valuation. A disjunction is true if either operand is true, so v(A ∨ B)=true ∨ v(B)=true. Since v was arbitrary, the result holds for all valuations, which is exactly the definition of a tautology. No assumption about satisfiability of B is needed: B may be a tautology, contradiction, or contingent formula.
A fair die is rolled independently three times. Find probability of exactly one odd result among 1/6, 3/8, 1/8, 1/2.
Your answer
Answer & solution
Answer: B: 3/8 (no official key was published)
Each roll is odd with probability 3/6=1/2 and even with probability 1/2. Choose the unique odd roll in three ways. For each choice, independence gives probability (1/2)3=1/8. The three cases are disjoint, so their total is 3/8. Counting only one ordering would give 1/8 and omit the other positions. This calculation uses a fair die and independent rolls, the conventional premises.
Find the converse of “I stay only if you go.” Options include “I stay if you go, ” the original implication, its contrapositive, and an unrelated negated antecedent.
Your answer
Answer & solution
Answer: A (no official key was published)
Let S mean I stay and G mean you go. “Only if” makes G necessary for S, so the original assertion is S→G. Its converse reverses antecedent and consequent: G→S, expressed as “I stay if you go, ” A. The statement ¬G→¬S is instead the contrapositive and is equivalent to the original, not its converse. Keeping these two transformations separate avoids confusing A with C.
A has n elements. How many ordered pairs can its largest equivalence relation contain: n, n², 1, n+1?
Your answer
Answer & solution
Answer: B (no official key was published)
Every relation on A is a subset of A×A, so its size is at most n². The whole product A×A is reflexive, symmetric and transitive: every pair is present. It is therefore an equivalence relation attaining that upper bound. Hence the largest has n² pairs, B. The diagonal identity relation contains only n pairs and is the smallest equivalence relation, not the largest.
Similar questions1 more → · asked again: GATE 2005, Q42
Union and intersection of equivalences
Sets, Relations & Functions
Tap to enlarge
For equivalence relations R1, R2 on one set, are their union and intersection necessarily equivalence relations?
Your answer
Answer & solution
Answer: C: intersection only (no official key was published)
Intersection preserves reflexivity because each diagonal pair belongs to both; it preserves symmetry and transitivity because the required reversed or composed pair belongs to each relation. Union need not be transitive. On{1, 2, 3}, use partitions{1, 2}|{3} and{1}|{2, 3}. Their union contains (1, 2) and (2, 3), but not (1, 3). Thus intersection is always an equivalence, whereas union is not necessarily one, giving C. Some particular unions are equivalences; the question asks a general guarantee.
Count functions from an m-element domain to an n-element codomain among m+n, m^n, n^m, mn.
Your answer
Answer & solution
Answer: C (no official key was published)
Each of the m domain elements independently chooses one of n images. Multiplying n choices m times yields nm. Different domain elements may share an image because injectivity is not required. Thus C, not mn, which would count functions in the reverse direction. With an empty domain there is one empty function; the usual counting formula is interpreted accordingly.
Answer: B: neither reflexive nor irreflexive, but transitive (no official key was published)
Reflexivity fails because (4, 4) is absent. Irreflexivity fails because (1, 1), (2, 2), (3, 3) are present. For transitivity, if the first element is 1, its only successor is 1, so any composition stays at (1, 1). Elements 2 and 3 already relate to every possible target, so any composable second step remains in R. Element 4 has no outgoing pair and creates no requirement. Hence R is transitive, giving B. It is neither symmetric nor antisymmetric: (2, 1) lacks its reverse while (2, 3), (3, 2) are both present.
In a room of 28, English 18, Hindi 15, Kannada 22; overlaps English–Hindi=9, Hindi–Kannada=11, Kannada–English=13. How many speak all three? Options 9, 8, 7, 6.
Your answer
Answer & solution
Answer: D: 6 if everyone speaks at least one; literal data allow 5 or 6 (no official key was published)
Let t be the triple overlap. Inclusion–exclusion gives union size 18+15+22−9−11−13+t=22+t. If all 28 people belong to at least one language group, t=6, option D. But that premise is not explicit. Nonnegative Hindi-only count gives 15−9−11+t=t−5≥0, while union≤28 gives t≤6. Thus integer t may be 5 or 6; t=5 leaves one person speaking none and has nonnegative counts in all seven regions. The textbook result 6 therefore relies on coverage, not solely on the stated headcount.
Every node has either 0 or n children. If x nodes are internal, how many leaves are there?
Your answer
Answer & solution
Answer: A: x (n−1)+1 (no official key was published)
Each internal node contributes exactly n child edges, so the tree has nx edges. If it has L leaves, its total vertices are x+L, and any tree has one fewer edge than vertices: nx=x+L−1. Rearranging yields L=x (n−1)+1, A. The explicit 0-or-n condition is essential; it prevents one-child or partially populated internal nodes from invalidating the count. For x=0 it correctly gives a single root leaf.
Two friends arrive between 4 and 5 p.m. Each waits ten minutes or until 5 p.m., whichever comes first. Find the probability they do not meet.
Answer & solution
Answer: 25/36, assuming independent uniform arrival times. (no official key was published)
Let X and Y be their arrival times in minutes after 4 p.m. The usual intended probability model is that X and Y are independent and uniformly distributed on [0,60]. The problem does not explicitly supply this distribution; a numerical probability requires it.
They meet precisely when |X−Y|≤10, apart from a zero-probability issue about departure at the exact arrival instant. Truncating the wait at 5 p.m. does not change this condition: both people arrive by then, so the earlier arrival must still be present if the gap is at most ten minutes.
All pairs (X,Y) are equally likely in a 60-by-60 square of area 3600. Failure to meet is the union of the regions Y>X+10 and X>Y+10. Each is a right triangle with legs 50 and area 50²/2. Hence P(no meeting)=2(50²/2)/60²=2500/3600=25/36. As a check, the complementary meeting probability is 11/36. The answer is not 5/6: that treats one person's ten-minute window as if it were the whole two-dimensional event. Nonuniform or correlated arrivals can give a different answer.
Answer: x_n=2^(n−1)+1. (no official key was published)
The constant fixed point of the recurrence is 1, because 1=2·1−1. Subtract it by setting yn=xn−1. Then yn=2x_(n−1)−2=2y_(n−1), while y1=1. Iterating the resulting geometric recurrence gives yn=2n−1, so xn=2n−1+1 for all n≥1.
To verify rather than merely guess the formula, its first value is 20+1=2. Assuming xn−1=2n−2+1, substitution gives 2[2n−2+1]−1=2n−1+1, completing induction. Initial values 2,3,5,9,17 agree. The exponent is n−1 rather than n because the specified initial index is 1. The subtraction trick is useful for affine recurrences generally: shift by a fixed point to expose the homogeneous geometric part.
Prove by induction that an n-sided polygon has n(n−3)/2 diagonals.
Answer & solution
Answer: D_n=n(n−3)/2 for n≥3. (no official key was published)
A diagonal joins two nonadjacent vertices; count all such vertex pairs, regardless of where segments lie for a nonconvex polygon. Let Dn be their number. A triangle has no diagonals, and 3(3−3)/2=0, establishing the base case.
Assume Dn=n(n−3)/2 for an n-gon. Insert a new vertex v between two formerly adjacent vertices u and w, replacing the boundary edge uw by the two boundary edges uv and vw. All old diagonals remain diagonals. The former edge uw becomes one additional diagonal. The new vertex v can be joined by diagonals to the n−2 old vertices other than its two neighbors u and w. Thus the increase is 1+(n−2)=n−1, not merely n−2.
Therefore Dn+1=Dn+n−1=n(n−3)/2+n−1=(n²−n−2)/2=(n+1)(n−2)/2. This is the required formula with n replaced by n+1, completing induction.
As a consistency check, choosing any pair of vertices gives n(n−1)/2 segments; subtract the n boundary edges to obtain n(n−3)/2. For n=4 the count is 2 and for n=5 it is 5, agreeing with the recurrence. The insertion argument's old-edge contribution is the usual subtle point in this induction.
R consists of directed cycles a→b→c→a and d→e→f→g→h→d. Find the smallest integers m<n with R^m=R^n.
Answer & solution
Answer: For positive powers: m=1,n=16. If R^0 is allowed: m=0,n=15. (no official key was published)
Each vertex has exactly one outgoing edge, so R is a permutation: a 3-cycle and a disjoint 5-cycle. Rt sends each vertex t positions forward around its component, because composition corresponds to a path of length t.
On the 3-cycle, Rm and Rn agree exactly when n−m is divisible by 3. On the 5-cycle, they agree exactly when n−m is divisible by 5. Both requirements hold precisely when 15=lcm(3,5) divides n−m. Necessity follows by inspecting even one vertex in each component; sufficiency follows because a multiple of a cycle's length returns every vertex to its starting position.
Thus R15 is the identity relation on the eight vertices, and R16=R. If powers are numbered from 1, the smallest first exponent is m=1 and the smallest later matching exponent is n=16. If the standard zeroth power R0=I is permitted, the earliest pair is instead (0,15). The printed wording says “integers” without explicitly restricting them to positive powers, so both conventions must be disclosed.
If one extends this permutation relation to negative powers and allows all integers, there is no smallest pair: (m,m+15) works for arbitrarily negative m. Ordinary relation-power questions use nonnegative or positive exponents.
It is incorrect to use 3+5=8 as the period: both components must return simultaneously, which requires a common multiple rather than a sum. Neither cycle contains a self-loop, and there are no cross-component edges; adding either would change the relation being analyzed.
For A={a,b,c,d} and partition Π1={{a,b,c},{d}}, list the induced equivalence relation.
Answer & solution
Answer: {(a,a),(a,b),(a,c),(b,a),(b,b),(b,c),(c,a),(c,b),(c,c),(d,d)}. (no official key was published)
The equivalence relation induced by a partition relates x to y exactly when they belong to the same block. Therefore take the Cartesian square of each block and unite the results:
There are 3²+1²=10 ordered pairs. In particular, (a,b) and (b,a) are different pairs and both must appear. The isolated singleton block still contributes (d,d); reflexivity does not disappear for a singleton. No pair with one endpoint d and the other in {a,b,c} is present, because that would merge the two equivalence classes.
Reflexivity follows because each element shares its block with itself. Symmetry follows because “in the same block” is symmetric. Transitivity follows because if x shares a block with y and y shares a block with z, disjointness of partition blocks forces all three into that one block. Thus the listed relation indeed has exactly the required equivalence classes.
Draw the graph of the equivalence relation induced by {{a,b,c},{d}} on {a,b,c,d}.
Answer & solution
Answer: A complete directed graph with loops on {a,b,c}, plus the isolated looped vertex d. (no official key was published)
Use one vertex for each element and an arrow x→y for every ordered pair in the relation. Within {a,b,c}, put arrows in both directions between each pair of distinct vertices, and add a self-loop to each vertex. Add vertex d with its self-loop only; no arrows join it to the other component.
a ↺ d ↺
↙ ↖ ↘ ↗
b ↺ ⇄ c ↺
The arrow layout is schematic. The precise edge specification, resolving any drawing ambiguity, is loops: a→a, b→b, c→c, d→d; other arrows: a→b, b→a, a→c, c→a, b→c, c→b.
An adjacency-matrix version in row/column order a,b,c,d is 1 1 1 0 1 1 1 0 1 1 1 0 0 0 0 1.
The block-diagonal matrix emphasizes the two equivalence classes. A triangle drawn with undirected edges is acceptable only if it is explicitly understood to stand for arrows in both directions and the reflexive loops are stated. Omitting d's loop or drawing a connection between d and the triangle would describe a different relation.
Similar questions1 more → · asked again: GATE 2007, Q26
Partition refinement Hasse diagram
Partial Orders & Lattices
Tap to enlarge
Let Π1={{a,b,c},{d}}, Π2={{a},{b},{c},{d}}, Π3={{a,b,c,d}}, Π4={{a,b},{c,d}}. Draw the poset diagram under refinement.
Answer & solution
Answer: A diamond: Π2 below incomparable Π1,Π4, both below Π3. (no official key was published)
Define Π≤Σ when Π refines Σ: every block of Π is contained in some block of Σ. Under this convention the finest partition is at the bottom and the coarsest at the top.
Π3
/ \
Π1 Π4
\ /
Π2
Π2 refines both Π1 and Π4 because each of its singleton blocks lies in a block of either partition. Both Π1 and Π4 refine Π3, whose only block is the whole set. These give the four displayed cover edges in the induced four-element poset.
Π1 and Π4 are incomparable. The Π1 block {a,b,c} is not contained in either {a,b} or {c,d}, so Π1 does not refine Π4. Conversely, the Π4 block {c,d} is not contained in either {a,b,c} or {d}, so Π4 does not refine Π1. A line joining these middle vertices would therefore be wrong.
Π2 also refines Π3, but their comparison is implied transitively by either two-edge path and is omitted from a Hasse diagram. Reflexive comparisons are likewise omitted. This diagram is for the specified set of four partitions, not for the entire partition lattice of a four-element set, which contains additional vertices.
In associative (A,*), suppose distinct a,b always satisfy a*b≠b*a. Prove a*a=a for every a.
Answer & solution
Answer: Every element is idempotent. (no official key was published)
Use the contrapositive of the hypothesis: if two elements x and y commute, meaning x*y=y*x, then x=y. This is a restriction on distinct elements commuting, not cancellation and not commutativity of the entire operation.
Fix a∈A. Closure puts a*a in A, so the hypothesis can be applied to the pair a and a*a. Associativity gives a*(a*a)=(a*a)*a. Hence these two elements commute, and the contrapositive forces a=a*a.
This proves idempotence for every element. No identity element, inverse or cancellation law is needed; a semigroup supplies only associativity and closure. The special case a=a*a is already the desired conclusion, while assuming they were distinct would directly contradict the equal products above.
Under associativity and a≠b ⇒ a*b≠b*a, prove a*b*a=a for all a,b.
Answer & solution
Answer: a*b*a=a. (no official key was published)
From part (a), every element is idempotent: a*a=a. As before, the premise's contrapositive says that commuting elements must be equal.
Fix a,b and let c=a*b*a. Associativity allows us to omit parentheses, but it does not allow rearranging factors. Compute
a*c=a*(a*b*a)=(a*a)*b*a=a*b*a=c,
and
c*a=(a*b*a)*a=a*b*(a*a)=a*b*a=c.
Thus a*c=c*a. Applying the contrapositive to the two elements a and c yields a=c=a*b*a, as required.
The argument does not cancel b, assume a*b=b*a, or invoke an identity element. Its key move is to exhibit a composite element that necessarily commutes with a, then use the unusually strong hypothesis to identify the two. The calculation also covers a=b; no separate distinctness assumption is needed for the elements in the claimed identity.
Under associativity and a≠b ⇒ a*b≠b*a, prove a*b*c=a*c for every a,b,c.
Answer & solution
Answer: a*b*c=a*c. (no official key was published)
Part (b) established x*y*x=x for every pair of elements x,y. Apply it first to x=c,y=a, obtaining c*a*c=c. Substitute this equal expression for the final c in a*b*c, and then reassociate:
a*b*c = a*b*(c*a*c) = [a*(b*c)*a]*c = a*c.
The last equality uses the same sandwich identity with x=a and y=b*c, which is an element of A by closure. Every step preserves the order of factors, so no forbidden commutativity assumption is being made.
This proves the desired middle-factor elimination for arbitrary a,b,c. Iterating it shows any product of at least two factors reduces to its first factor multiplied by its last. The identity is compatible with noncommutativity; for example the left-zero operation x*y=x is associative and satisfies the premise because x*y=x and y*x=y differ whenever x≠y. Thus the proof does not imply that all elements of A are equal or that the operation is commutative.
Rain probabilities are 0.5 today, 0.6 tomorrow, and 0.7 for at least one of the two days. Find probability of both.
Your answer
Answer & solution
Answer: D: 0.4 (no official key was published)
Let A and B denote rain today and tomorrow. Inclusion–exclusion gives P(A∪B)=P(A)+P(B)−P(A∩B). Thus P(A∩B)=0.5+0.6−0.7=0.4. This is D. Multiplying 0.5 by 0.6 would assume independence, which is not stated and is inconsistent with the given union probability. The word either is interpreted as inclusive or, as required by the standard union reading.
On all integers define n*m=max (n, m). Is this a monoid, Abelian group, group, or none?
Your answer
Answer & solution
Answer: D (no official key was published)
Maximum is associative, commutative and closed on integers. A monoid additionally needs an identity e satisfying max (e, n)=n for every integer n. That would require e≤n for every integer, but no least integer exists: choose n=e−1 to contradict it. Thus there is no identity and hence no group structure either, giving D. On a set with an added−∞ element, that element would be an identity, but it is not an integer in the stated domain.
Choose a tautology: A(p∨q)→p; Bp∨(q→p); Cp∨(p→q); Dp→(p→q).
Your answer
Answer & solution
Answer: C (no official key was published)
Replace implication by disjunction with a negated antecedent. C becomes p∨¬p∨q, which is always true. A and B both fail at p=false, q=true. D simplifies to¬p∨q and fails at p=true, q=false. Thus C is the only tautology. Showing one falsifying assignment for each other candidate is enough to exclude it, while the excluded-middle pair p∨¬p proves C for all assignments.
Hasse chains are f<e<b<a, f<g<a, f<d<c<a, with no further covers. How many complements does e have?
Your answer
Answer & solution
Answer: B: 3 (no official key was published)
The bottom is f and top is a. A complement z must satisfy e∧z=f and e∨z=a. For each of g, d, c, the only common lower bound with e is f and only common upper bound is a; all three qualify. The remaining elements do not: f has join e, a has meet e, e meets itself at e, and b has meet e. Therefore exactly three complements exist, B. Complements need not be unique in a nondistributive lattice.
A poset has elements x, a 1, …, an, y with x≤ai≤y and no other comparisons among the ai. How many extending total orders?
Your answer
Answer & solution
Answer: A: n! (no official key was published)
Every extending order must put x before all ai and y after all ai. The middle n elements are mutually incomparable, so they can occur in any permutation. Each permutation gives one valid total order, and every extension is obtained this way. Thus the count is n!, A. This uses exactly the listed order relations and their reflexive/transitive consequences; additional unmentioned comparisons among the ai would reduce the number.
Vertices 1…100 are adjacent when their difference is 8 or 12. Count connected components among 8, 4, 12, 25.
Your answer
Answer & solution
Answer: B: 4 (no official key was published)
Every allowed difference is divisible by 4, so a path preserves residue modulo 4. There are at least four components. Each residue class contains 25 vertices; after rescaling by 4, its edges connect indices differing by 2 or 3. These 25 indices form a connected graph: all odd indices connect by 2, all even indices connect by 2, and the edge 1–4 of difference 3 joins the two chains. Hence each residue class is one component, proving exactly four, B. The boundary argument is necessary; a gcd observation alone would only prove the lower bound for a finite interval.
How many equivalence relations exist on{1, 2, 3, 4}:15, 16, 24, 4?
Your answer
Answer & solution
Answer: A: 15 (no official key was published)
Equivalence relations correspond exactly to set partitions. Count by block sizes: one block gives 1; type 3+1 gives 4; type 2+2 gives 3; type 2+1+1 gives C(4, 2)=6; four singleton blocks gives 1. Total 1+4+3+6+1=15, option A. This counts unlabeled equivalence classes; multiplying by permutations of the classes would count the same relation repeatedly.
A hash table has n≥1 buckets, uses external chaining, and is initially empty. K distinct keys are inserted. Each key hashes uniformly to one of the n buckets. Under the standard additional assumption that different keys hash independently, find the probability that bucket 1 is empty after K insertions.
Answer & solution
Answer: ((n−1)/n)^K, for independent uniform hashing. (no official key was published)
A single inserted key avoids bucket 1 with probability (n−1)/n=1−1/n. Bucket 1 is empty after K insertions exactly when every one of those K keys avoids it. Under independent hashing, multiply the K probabilities to obtain
P(bucket 1 empty) = (1−1/n)K.
The table may have collisions in other buckets; they do not affect this event. External chaining allows arbitrarily many keys in a bucket, so K need not be at most n. For K=0 the probability is 1, including the n=1 case, by the empty-product convention. For n=1 and K≥1 it is 0, because the only bucket must receive every key. For n=2,K=3 it is (1/2)3=1/8.
The independence qualification is substantive. The source supplies the uniform probability for any individual key, but marginal uniformity alone is not enough to multiply events. For example, choose one uniformly random bucket U and send all keys to U. Every key is marginally uniform, yet bucket 1 remains empty with probability 1−1/n for every K≥1, rather than (1−1/n)K. The displayed answer uses the usual independent-uniform hashing model and is not claimed under that correlated alternative.
A hash table has n≥1 buckets, uses external chaining, and is initially empty. K distinct keys are inserted. Each key hashes uniformly to one of the n buckets. Under the standard additional assumption that different keys hash independently, find the probability that none of the K insertions causes a collision.
Answer & solution
Answer: n! / ((n−K)! n^K) for 0≤K≤n; 0 for K>n. (no official key was published)
After j collision-free insertions, exactly j buckets are occupied. Conditional on that event, the next independently hashed key must choose one of the n−j empty buckets, which has probability (n−j)/n. Multiplying from j=0 through K−1 gives
P(no collision in K insertions) = 1·(n−1)/n·(n−2)/n·…·(n−K+1)/n = n! / ((n−K)! nK), for 0≤K≤n.
For K>n the probability is zero by the pigeonhole principle. Do not extend the factorial formula to a negative factorial. At K=0, the empty product is 1; at K=1, no collision is possible and the result is also 1. For n=3,K=2 it is 2/3, because only the second key can cause the first collision.
An equivalent counting argument considers nK equally likely ordered bucket-choice sequences. Collision-free choices are injective assignments of the K ordered keys to the n buckets, numbering n(n−1)…(n−K+1). The keys are distinct, but that does not make their bucket values distinct automatically.
This derivation needs independent uniform hashing, not just equal marginal bucket probabilities. Under the correlated scheme that sends every key to one common randomly chosen bucket, the probability is already zero at K=2 despite uniform marginals. That source-model limitation is stated explicitly rather than hidden in the multiplication.
A hash table has n≥1 buckets, uses external chaining, and is initially empty. K distinct keys are inserted. Each key hashes uniformly to one of the n buckets. Under the standard additional assumption that different keys hash independently, find the probability that the first collision occurs on insertion K.
Answer & solution
Answer: [n! / ((n−K+1)! n^(K−1))]·(K−1)/n for 2≤K≤n+1; 0 otherwise. (no official key was published)
The event consists of two parts: the first K−1 insertions are collision-free, and the Kth key hits one of their occupied buckets. Given the first part, there are exactly K−1 occupied buckets, so the conditional probability of the second part is (K−1)/n.
For 2≤K≤n+1, the requested probability is therefore
The upper endpoint n+1 is legitimate: the first n keys could fill all n buckets without a collision, after which the next key certainly collides. Its probability is n!/nn. For K=1 the event is impossible because an empty table has no occupied bucket. For K>n+1, a first collision must already have happened, so the probability is also zero.
As a check, write pj for the probability of no collision after j insertions. Then P(first at K)=pK−1−p_K. Summing from K=2 to n+1 telescopes to p1−pn+1=1, as required. For n=2 the probabilities are 1/2 at K=2 and 1/2 at K=3. These arguments all use independent uniform bucket choices; the source's uniform marginals alone do not determine the distribution of the first collision.
Similar questions1 more → · asked again: GATE 1993, Q8.6
Count injections into a larger set
Sets, Relations & Functions
Tap to enlarge
Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. How many functions belong to F?
Answer & solution
Answer: m!/(m−n)! = C(m,n)n!. (no official key was published)
Choose the values of the function in domain order. There are m choices for f(1). Once it is chosen, injectivity excludes that value for f(2), leaving m−1 choices. In general f(i) has m−i+1 choices after the preceding i−1 images have been fixed. The multiplication principle gives
|F| = m(m−1)…(m−n+1) = m!/(m−n)!.
Another way is to choose the n-element image set, in C(m,n) ways, then assign its distinct members to the n labelled domain elements, in n! ways. Hence |F|=C(m,n)n!, the same result.
The distinction between a function and an image set matters: C(m,n) alone discards the order in which the n selected values are assigned to 1,…,n. For n=2,m=3, the image set {1,2} supplies both f(1)=1,f(2)=2 and f(1)=2,f(2)=1. There are six injections overall, not three. At n=1 the answer is m, and at m=n it is n!, the number of permutations, providing simple boundary checks.
Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. How many f satisfy f(i)=1 for some domain element i?
Answer & solution
Answer: n(m−1)!/(m−n)! = C(m−1,n−1)n!. (no official key was published)
Because f is one-to-one, the codomain value 1 can occur at exactly one domain position if it occurs at all. Choose that position i in n ways. The remaining n−1 domain elements must receive distinct values from the other m−1 codomain values, giving (m−1)!/(m−n)! assignments. Thus the total is
n·(m−1)!/(m−n)!.
There is no double-counting: each satisfying function has a unique preimage of 1, so it appears in exactly one of the n cases. Equivalently, choose its image set to contain 1 and n−1 other values, then order the n image values over the domain. This gives C(m−1,n−1)n!, equal to the first expression.
As a probability check, divide by all m!/(m−n)! injections. The fraction whose image contains a specified codomain value is n/m, consistent with an image set containing n out of m values symmetrically. At n=1 there is only one satisfying function, f(1)=1. At n=m every injection is a bijection, so all n! functions qualify. These checks also show why simply multiplying the total by 1/m would be wrong: any of n domain positions, not a fixed one, may map to 1.
Let F be all one-to-one functions from {1,…,n} to {1,…,m}, where m≥n≥1. GFG asks for f(i)<f(j) for ALL 1≤i<j≤n; GateForum asks for this for SOME pair. Give the count for each printed variant.
Answer & solution
Answer: ALL pairs: C(m,n). SOME pair: m!/(m−n)!−C(m,n). (no official key was published)
Universal condition, f(1)<f(2)<…<f(n). Choose any n distinct codomain values. There is exactly one way to place them in increasing order on the ordered domain. Consequently the number is C(m,n). Choosing the set contributes all the freedom; multiplying by n! would wrongly include orders that violate monotonicity.
Count its complement. Failure means f(i)≥f(j) for every i<j. Since f is injective, equality is impossible, so failure is exactly strict decrease: f(1)>f(2)>…>f(n). For each n-element image set there is one decreasing order, giving C(m,n) failures. Subtracting from all injections gives
m!/(m−n)! − C(m,n).
For n=1, the universal statement is vacuously true and all m functions count; the existential statement has no available pair and counts zero. Both formulas reflect this difference. For n=3,m=3, there is one universally increasing permutation, while five permutations have at least one increasing pair; only 3,2,1 fails the existential condition. For n=2 the two numerical answers happen to coincide, which can conceal the wording discrepancy in small checks.
Both source readings are therefore retained. There is no verified official original or key establishing which quantifier is intended, and neither answer is presented as if it solved the other statement.
Let R be a reflexive and transitive relation on a set A. Define E={(a,b):aRb and bRa}. Prove that E is an equivalence relation.
Answer & solution
Answer: E is reflexive, symmetric and transitive. (no official key was published)
We must check the three equivalence-relation axioms on the same set A.
Reflexivity: for every a∈A, reflexivity of R gives aRa. Both required directions in the definition of E are then the same true statement, so aEa.
Symmetry: if aEb, the definition supplies both aRb and bRa. Reversing their order immediately gives bEa. No symmetry assumption about R is needed; taking its mutual part creates symmetry.
Transitivity: suppose aEb and bEc. Then aRb and bRc, so transitivity of R yields aRc. We also have cRb and bRa, so another use of transitivity gives cRa. Both directions hold, establishing aEc.
Thus E is reflexive, symmetric and transitive, hence an equivalence relation. Its classes group elements that are mutually related by R. In a directed-reachability interpretation, R says one vertex can reach another, and E groups vertices that can reach each other in both directions.
The proof does not claim that R itself is symmetric or antisymmetric. A reflexive, transitive relation is a preorder and may relate distinct elements in both directions. Passing to E-classes is precisely how the companion part removes that possible failure of antisymmetry.
Let R be a reflexive and transitive relation on a set A. Define E={(a,b):aRb and bRa}. For E-classes C,D, define C≤D when there exist a∈C,b∈D with aRb. Prove that this gives a partial order on A/E.
Answer & solution
Answer: The quotient relation is well-defined, reflexive, antisymmetric and transitive. (no official key was published)
First show that the existential definition is independent of representatives. Suppose aRb with a∈C,b∈D. If a′∈C and b′∈D, then a′Ea and bEb′, so a′Ra and bRb′. By transitivity, a′RaRbRb′ gives a′Rb′. Thus one pair of related representatives implies every pair is related; changing representatives cannot change the answer.
Reflexivity: choose a∈C. Since aRa, the defining witness gives C≤C.
Antisymmetry: suppose C≤D and D≤C. Choose any a∈C,b∈D. Representative independence gives aRb from the first relation and bRa from the second. Hence aEb, so a and b have the same E-class and C=D. Antisymmetry is equality of classes, not necessarily equality of their individual representatives.
Transitivity: suppose C≤D and D≤H. Choose a∈C,b∈D,c∈H. Representative independence supplies aRb and bRc; transitivity of R yields aRc. Therefore C≤H.
All partial-order axioms hold. The preliminary representative step is essential when starting from existential witnesses: the witness b from C≤D and the witness b′ from D≤H might be different elements of D. Their E-equivalence supplies bRb′, which connects the two chains. Omitting that link would leave a gap in a direct transitivity proof. No total-order claim follows: two equivalence classes can be incomparable when neither direction of R holds between them.
For positive integers n,m, consider the directly recursive, nonmemoized function function F(n,m:integer):integer; begin if (n<=0) or (m<=0) then F:=1 else F:=F(n-1,m)+F(n,m-1) end. Use C(s,t)=C(s−1,t)+C(s−1,t−1). Find F(n,2).
Answer & solution
Answer: (n+1)(n+2)/2 = C(n+2,2). (no official key was published)
Start with m=1. The recurrence says F(n,1)=F(n−1,1)+F(n,0)=F(n−1,1)+1, and F(0,1)=1. Therefore F(n,1)=n+1.
Now use m=2. We get F(n,2)=F(n−1,2)+F(n,1)=F(n−1,2)+(n+1), with F(0,2)=1. Summing the increments from 1 through n gives
This equals C(n+2,2), anticipating the general binomial formula. A direct induction check also works: the proposed formula for n−1 is n(n+1)/2; adding n+1 gives (n+1)(n+2)/2. The base n=0 gives 1 as required.
For n=1, F(1,2)=F(0,2)+F(1,1)=1+2=3, consistent with the formula. The offset matters: n(n+1)/2 would correspond to a different boundary condition and would incorrectly give 1 when n=1. Both axes in this program have value 1, not 0.
For positive integers n,m, consider the directly recursive, nonmemoized function function F(n,m:integer):integer; begin if (n<=0) or (m<=0) then F:=1 else F:=F(n-1,m)+F(n,m-1) end. Use C(s,t)=C(s−1,t)+C(s−1,t−1). Find F(n,m).
Answer & solution
Answer: C(n+m,n) = C(n+m,m). (no official key was published)
The boundary values are F(0,m)=F(n,0)=1. Compare them with G(n,m)=C(n+m,n): G(0,m)=C(m,0)=1 and G(n,0)=C(n,n)=1, so the axes agree.
Thus G obeys exactly the same recurrence and boundaries as F. Induction on n+m proves equality: each interior value depends only on two smaller sums, so once their equality is established the new value also agrees. Therefore F(n,m)=C(n+m,n)=C(n+m,m).
A useful combinatorial interpretation is the number of lattice paths from (0,0) to (n,m) using n horizontal and m vertical moves. Select which n of the n+m positions are horizontal. On either axis there is only one path, and every interior path arrives from one of its two preceding grid points, explaining both the boundary and recurrence.
The answer is symmetric in n and m, as the function definition requires. At m=2 it specializes to (n+1)(n+2)/2. This formula is the returned value, not the number of function activations; the directly recursive implementation recomputes many identical arguments, which the next subpart counts separately.
An element of A∪B belongs to exactly one of three regions: A only, B only, or both sets. These are precisely A−B, B−A and A∩B. Their union therefore recovers A∪B. Conversely, every element in any of those three regions belongs to A or B, proving the reverse inclusion. The intersection alone omits the two exclusive regions, while the symmetric difference omits the common region. No assumption that A and B are disjoint is needed.
Count Hasse-diagram edges for {2,3,6,12,24} ordered by divisibility.
Your answer
Answer & solution
Answer: B: 4 (no official key was published)
A Hasse edge joins comparable elements only when no listed element lies strictly between them. The covers are 2<6, 3<6, 6<12 and 12<24. For example, 2<12 is not an edge because 6 is between them; similarly 6<24 is omitted because of 12. The elements 2 and 3 are incomparable. Thus there are four edges. Counting every divisibility relation would count transitive relations that the Hasse diagram deliberately suppresses.
Exactly 97 functions exist from X to Y. Determine the finite cardinalities of X and Y.
Your answer
Answer & solution
Answer: A: |X|=1, |Y|=97 (no official key was published)
If |X|=m and |Y|=n, each of the m arguments independently chooses one of n images, yielding nm functions. Here nm=97. Since 97 is prime, it cannot be an integer power with exponent at least two and base greater than one. Hence m=1 and n=97. An empty domain gives exactly one function, and an empty codomain cannot give 97 functions. This also explains why reversing the two cardinalities would give only one function.
Which claim is false: rationals under addition, integers under addition, rationals under multiplication, or nonzero reals under multiplication form an abelian group?
Your answer
Answer & solution
Answer: C (no official key was published)
A group requires an identity and an inverse for every element. Under rational multiplication, zero has no inverse because 0·q=0 for every rational q, never the multiplicative identity 1. Thus the set of all rationals is not a multiplication group. The additive inverses of rationals and integers remain in their respective sets. Every nonzero real has a nonzero reciprocal. All the indicated operations commute, so the other three groups are abelian.
Two fair independent dice are thrown. Find the probability that at least one shows 6.
Your answer
Answer & solution
Answer: D: 11/36 (no official key was published)
Use the complement event that neither die shows 6. Each die avoids 6 with probability 5/6, so independence gives probability 25/36 for neither. Subtracting from one gives 11/36. Equivalently, there are six outcomes with the first die equal to 6 and six with the second equal to 6, but (6,6) was counted twice: 6+6−1=11 of 36 equally likely outcomes. Simply adding 1/6+1/6 would fail to remove this overlap.
On a collection of sets, let A R B iff A∩B=∅, and assume the relation is nonempty. Assess symmetry and transitivity.
Your answer
Answer & solution
Answer: B as the usual “symmetric, not necessarily transitive” reading; literal universality needs qualification (no official key was published)
Disjointness is symmetric because A∩B=B∩A. It is not generally transitive: take A=C={1}, B={2}. Then A R B and B R C hold, but A R C fails. This gives the intended B. Nevertheless the statement that every such nonempty relation is nontransitive is too strong for an arbitrary collection. On the collection {∅}, the relation contains only (∅,∅) and is transitive and reflexive. The assumption that R is nonempty does not exclude that example. Thus B describes the general failure of a transitivity law, not a property forced for every possible underlying collection.
Which formula is not a tautology: (A) ((x→y)∧x)→y; (B) ((¬x→y)∧(¬x→¬y))→x; (C) x→(x∨y); (D) (x∨y)↔(¬x→¬y)? GFG supplies these formulas; the alternate changes the second implication inside B to a conjunction, which also makes B a tautology.
Your answer
Answer & solution
Answer: D (no official key was published)
Replace implication p→q by ¬p∨q. Then ¬x→¬y is x∨¬y, which is not equivalent to x∨y: at x=false,y=true the left side is true and the right side false. Thus D is not a tautology. Choice A is modus ponens written as an implication, and C is the rule that x implies x∨y. These checks establish the distinction by truth values, not symbol resemblance.
Which group claim fails: permutations under composition, nonzero residues modulo prime p, strings under concatenation, or the nonempty-subset subgroup test ab⁻¹∈S?
Your answer
Answer & solution
Answer: C for a nonempty alphabet (no official key was published)
Finite strings have identity ε under concatenation, but a nonempty string w has no inverse. For any string v, length(wv)=length(w)+length(v)>0, so wv cannot equal ε. Thus strings form a monoid, not a group. Permutations have inverse bijections; every nonzero residue modulo prime p has a multiplicative inverse. The subgroup criterion ab⁻¹∈S is valid when S is nonempty, as explicitly printed in the clearer alternate. If an empty alphabet were allowed, its sole string ε would form the trivial group; the conventional alphabet here is nonempty.
A uniformly shuffled standard 52-card deck is considered. What is the probability its top and bottom cards are both aces?
Your answer
Answer & solution
Answer: C: (4/52)(3/51)=1/221 (no official key was published)
The top position contains an ace with probability 4/52. Conditional on that event, three aces remain among the other 51 cards, and every remaining card is equally likely to occupy the bottom position. Multiplying conditional probabilities gives (4/52)(3/51)=1/221. The two positions are distinct, so the second denominator is 51 rather than 52. Using four aces again for the second event would incorrectly replace the already-used top card.
F consists of all functions {1,2,3}→{1,2,3}. Define f~g iff f(3)=g(3). How many equivalence classes are there?
Answer & solution
Answer: 3. (no official key was published)
A class is determined completely by the value at input 3. This value can be 1,2 or 3. Define Cr={f∈F:f(3)=r}, for r∈{1,2,3}. Each Cr is nonempty, for example because the constant function with value r lies in it. Every function belongs to exactly one Cr, since f(3) is a single well-defined value.
Within Cr, any two functions have the same value at 3 and are related. Functions from different Cr sets are not related. Thus these three sets are precisely the equivalence classes, not merely three arbitrary subsets. The assignments at 1 and 2 can vary freely without changing class membership.
The relation is reflexive because f(3)=f(3), symmetric because equality is symmetric, and transitive because equal values at 3 remain equal through an intermediate function. There are 3³=27 total functions, but the number of functions is not the number of classes. The quotient groups them by only one of their three output coordinates.
For functions {1,2,3}→{1,2,3} with f~g iff f(3)=g(3), find the size of each equivalence class.
Answer & solution
Answer: 9 functions per class. (no official key was published)
Fix one class Cr, so f(3)=r is fixed. There are three independent choices for f(1) and three for f(2). By the multiplication principle the class contains 3×3=9 functions. No injectivity or surjectivity restriction is stated, so the two values may coincide with each other or with r.
One can enumerate the free pair (f(1),f(2)) as (1,1),(1,2),(1,3),(2,1),(2,2),(2,3),(3,1),(3,2),(3,3). Appending the fixed third coordinate r gives nine distinct functions, and every function in Cr is represented once. The same argument works for r=1,2,3, so all three classes have the same size.
As a consistency check, 3 classes times 9 members gives 27=3³, the number of all functions from a three-element set to a three-element set. A common mistake is to count only permutations, which would wrongly impose a one-to-one condition absent from the question. The complete equality f(3)=g(3) comes from the paper.
Let f1=f2=1 and f_(n+2)=f_(n+1)+f_n for n≥1. Prove by induction that every third term is even.
Answer & solution
Answer: For every k≥1, f_(3k) is even. (no official key was published)
Use induction on k, not on the original index one step at a time. The base case is f3=f2+f1=2, which is even. For the induction step, derive a recurrence connecting terms three positions apart: fm+3=fm+2+fm+1=(fm+1+fm)+fm+1=2f_(m+1)+fm.
Assume f3k is even. Set m=3k in this identity. Then f3k+3=2f_(3k+1)+f3k is the sum of two even integers, hence even. This proves the claim for k+1 and completes the induction.
The proof deliberately does not assume anything about f3k+1: multiplying any integer by 2 makes it even. An alternative stronger invariant is that each consecutive block has parity odd,odd,even. Starting from 1,1,2, the recurrence gives the next block odd,odd,even again. This additionally proves that exactly the multiples of three have even terms, but the weaker requested conclusion already follows from the simpler induction above.
A number is selected uniformly from 100 through 999. Find the probability it contains no digit 7.
Your answer
Answer & solution
Answer: D: 18/25 (no official key was published)
There are 900 equally likely three-digit numbers. The hundreds position has eight allowed choices: 1 through 9 except 7. Each remaining position has nine choices: 0 through 9 except 7. Thus 8·9·9=648 numbers avoid 7, and 648/900=18/25. Using (9/10)³ would wrongly allow zero in the hundreds position and assume all three positions have the same distribution.
Given a symmetric and transitive relation R on A, must it be an equivalence, a partial order, nonreflexive, or none? The alternate changes the negation in C.
Your answer
Answer & solution
Answer: D: none of the asserted necessities (no official key was published)
Reflexivity is independent of the two stated properties on the entire underlying set. On a nonempty A, the empty relation is symmetric and transitive but not reflexive. Conversely the identity relation is reflexive, symmetric and transitive, so nonreflexivity is not forced either. Symmetry also does not imply the antisymmetry required for a partial order. Thus none of A,B,C is a necessary conclusion, giving D.
The outer set S has three elements: the empty set, the number 1, and the set {2,3}. The last is one element of S, not two separate elements. A subset independently includes or omits each of the three elements, yielding 2³=8 subsets. For example ∅ and {∅} are distinct subsets; the latter contains the empty set as an element. Flattening nested braces would change the given set and produce an incorrect count.
What is the minimum number of edges in a connected graph on n vertices containing a cycle?
Your answer
Answer & solution
Answer: B: n (no official key was published)
Every connected graph contains a spanning tree with n−1 edges. A tree has no cycle, so at least one further edge is necessary. Adding one non-tree edge to a spanning tree creates a cycle while retaining connectivity, attaining n edges. Thus n is both a lower bound and achievable for a simple graph with n≥3. If “cycle graph” means precisely the graph Cn, it likewise has exactly n edges.
A bag holds 10 white and 15 black balls. Two are drawn successively. Find the probability of one of each color.
Your answer
Answer & solution
Answer: C: 1/2 (no official key was published)
The disjoint orders are white then black and black then white. Their probabilities are (10/25)(15/24) and (15/25)(10/24). Adding gives 300/600=1/2. Equivalently there are 10·15 mixed unordered pairs among C(25,2)=300 pairs. The calculation assumes the first ball is not replaced, the usual interpretation of successive draws from the bag; with replacement the answer would instead be 12/25, which is not the listed value.
For nonsingular real matrices under multiplication, are they merely closed, a semigroup, a monoid, or a nonabelian group?
Your answer
Answer & solution
Answer: D for a fixed square dimension n≥2 (no official key was published)
For fixed n, the product of invertible matrices is invertible because (AB)⁻¹=B⁻¹A⁻¹. Matrix multiplication is associative, the identity matrix is present, and every member has an inverse, so this is a group. For n≥2 it is noncommutative: diagonal scaling diag(2,1) and the coordinate-swap matrix have different products in the two orders. Thus D holds under that convention. The question omits dimension: all sizes together do not form a multiplication group, while n=1 gives an abelian group of nonzero reals.
Answer: D: cannot be determined (no official key was published)
The premise ¬p→q simplifies to p∨q. The requested expression simplifies to ¬p∨(¬p∨q)=¬p∨q, which is p→q. Set p=true,q=false: the premise is true but the requested expression is false. Set p=false,q=true: both are true. Thus the premise permits both truth values, so D is correct.
Similar questions2 more → · asked again: GATE 2015 Set 2, Q14, GATE 2014 Set 2, Q49
Count positive divisors
Combinatorics & Counting
Tap to enlarge
Determine the number of divisors of 600.
Answer & solution
Answer: 24 positive divisors; 48 if signed integer divisors are requested. (no official key was published)
Prime-factorize 600=6×100=2³×3¹×5². Every positive divisor has a unique form 2ᵃ3ᵇ5ᶜ where a∈{0,1,2,3}, b∈{0,1} and c∈{0,1,2}. There are four choices for a, two for b and three for c. The choices are independent, so the multiplication principle gives 4×2×3=24.
The factorization also explains why adding these counts would be wrong: one divisor is determined by choosing all three exponents together. Both 1 (all exponents zero) and 600 (all exponents maximal) are included. In standard elementary-number-theory exam usage “number of divisors” counts positive divisors. If the question instead meant all nonzero integer divisors, every positive divisor has a distinct negative partner, giving 48.
Answer: (p∨q∨r)∧(p∨¬q∨r)∧(p∨¬q∨¬r)∧(¬p∨q∨r). (no official key was published)
A canonical CNF contains one maxterm for each falsifying truth assignment, with all three variables appearing once in every clause. If q=0 the formula reduces to r, so it is false at (p,q,r)=(0,0,0) and (1,0,0). If q=1 it reduces to p, so it is false at (0,1,0) and (0,1,1). The four other rows are true.
To construct a clause false at a given row, write a variable positively when that row assigns it 0 and negatively when it assigns it 1. The false rows 000,010,011,100 therefore give respectively (p∨q∨r), (p∨¬q∨r), (p∨¬q∨¬r), and (¬p∨q∨r). Their conjunction is the answer, conventionally ΠM(0,2,3,4) with p as the most significant bit.
Each maxterm rules out exactly its own false row. Thus the conjunction excludes precisely the original formula’s four false rows and accepts all others, proving equivalence. A shorter equivalent CNF might be valid Boolean algebra, but would not satisfy the requested canonical form if its clauses omitted variables.
Let G1 and G2 be subgroups of a group G. Prove that G1∩G2 is a subgroup of G.
Answer & solution
Answer: G1∩G2 is nonempty and closed under xy⁻¹, hence a subgroup. (no official key was published)
Write H=G1∩G2. Both subgroups contain the identity e of G, so e belongs to H and H is nonempty. This step matters because an empty set cannot be a subgroup.
Take arbitrary x,y in H. By definition of intersection, both x and y belong to G1 and also to G2. Since each Gi is a subgroup, y⁻¹ lies in each Gi, and closure gives xy⁻¹ in each Gi. Consequently xy⁻¹ belongs to their intersection H. The nonempty-subset subgroup test now proves that H is a subgroup of G.
Alternatively, check the axioms separately: the common identity lies in H; for x,y in H, xy is in both groups and hence H; and for x in H, x⁻¹ is in both groups and hence H. Associativity is inherited from G because H uses the same operation. No commutativity, finiteness, or containment of one subgroup inside the other is needed. The essential distinction from a union is that every chosen element of the intersection is available in both subgroups, so a single subgroup's closure can always be applied.
Let G1,G2 be subgroups of G. Is G1∪G2 necessarily a subgroup? Justify the answer.
Answer & solution
Answer: No. In (Z,+), 2Z∪3Z contains 2 and 3 but not 5. The union is a subgroup exactly when one subgroup contains the other. (no official key was published)
Take the additive group of integers. Let G1=2Z, the even integers, and G2=3Z, the multiples of 3. Each is a subgroup: it contains 0 and is closed under subtraction. Their union contains 2 and 3. But 2+3=5 is neither even nor a multiple of 3, so it is outside the union. Closure fails, proving that the answer is no.
There is a useful exact characterization. If G1⊆G2, the union is simply G2 and is a subgroup; the reverse containment works too. Conversely suppose neither contains the other, and choose a∈G1 minus G2 and b∈G2 minus G1. If the union were closed, ab would lie in G1 or G2. If ab∈G1, then a⁻¹(ab)=b∈G1, a contradiction. If ab∈G2, then (ab)b⁻¹=a∈G2, again a contradiction. Therefore the union cannot be a subgroup.
This argument uses the inherited group operation and does not assume an abelian group. The reason the intersection proof does not extend to a union is that two union elements can come from different subgroups, whose individual closure properties say nothing about their mixed product.
Prove by mathematical induction that 2^n>n² for every integer n≥5.
Answer & solution
Answer: Base32>25; induction follows from 2n²>(n+1)² for n≥5. (no official key was published)
Start at n=5: 25=32>25=5², so the claimed strict inequality holds. Now suppose it holds for some integer k≥5, namely 2k>k². Multiplying this strict inequality by 2 gives 2k+1>2k². To reach the desired conclusion, it remains to compare 2k² with (k+1)².
The difference is 2k²−(k+1)²=k²−2k−1=(k−1)²−2. Since k≥5, this is at least 16−2=14>0. Therefore 2k²>(k+1)², and chaining the two inequalities gives 2k+1>(k+1)². This proves the induction step. By mathematical induction the assertion holds for all integers n≥5.
The comparison in the middle is necessary: merely doubling both sides of the induction hypothesis does not automatically produce the next quadratic term. The starting value is also meaningful: at n=4 both sides equal 16, so the strict claim cannot start there. This proof covers the stated integer domain only; induction alone is not a proof for arbitrary real n.
Prove that a finite undirected graph has an even number of vertices of odd degree.
Answer & solution
Answer: The degree sum equals 2|E|, so the number of its odd summands is even. (no official key was published)
Each undirected edge contributes one incident end at each endpoint. Counting all incident ends first by edges and then by vertices yields the handshaking identity ∑v deg(v)=2|E|, an even integer. If loops are allowed, a loop contributes 2 to the degree of its vertex, so the same identity remains true under that standard convention.
Partition the vertices into those with even degree and those with odd degree. The sum over the even-degree vertices is even. Subtracting it from the even total shows that the sum over the odd-degree vertices is also even. A sum of m odd integers has parity m: write each degree as 2ki+1, so their sum is 2∑ki+m. It can be even only if m is even. Hence the number of odd-degree vertices is even.
The graph need not be connected, and isolated vertices have degree 0 and do not affect the argument. Finiteness ensures that these are ordinary finite sums. The assertion is about undirected degree; for a directed graph, odd outdegrees alone need not occur an even number of times. One must specify the appropriate total-degree convention rather than reuse this proof unaltered.
How many positive integers at most 720 are divisible by none of 2,3,5?
Answer & solution
Answer: 192. (no official key was published)
Let A,B,C be the subsets of {1,…,720} divisible by 2,3,5 respectively. Their sizes are 360,240,144. Because the divisors are pairwise coprime, the pair intersections count multiples of 6,10,15, giving 120,72,48; the triple intersection counts multiples of 30, giving 24.
Inclusion–exclusion gives |A∪B∪C|=360+240+144−120−72−48+24=528. These are exactly the integers disqualified by at least one divisibility condition. Subtract from all 720 positive integers to obtain 720−528=192. The subtraction of pair intersections corrects double counting, while adding the triple intersection restores numbers removed too many times.
An independent way to see the count is to use blocks of 30. In each block the allowed residue classes are 1,7,11,13,17,19,23,29 modulo 30, eight in total. There are 720/30=24 complete blocks, hence 24×8=192. The residue 0 is not allowed, and the positive-integer domain excludes 0 anyway.
For arbitrary events A,B, choose the universal statement: product formula for intersection, equality of union to the sum, a multiplied conditional formula, or P(A∪B)≤P(A)+P(B).
Your answer
Answer & solution
Answer: D (no official key was published)
Inclusion–exclusion gives P(A∪B)=P(A)+P(B)−P(A∩B). The intersection probability is nonnegative, so the union is at most the sum. Equality needs disjointness, which is not stated. The product formula for the intersection needs independence. Conditional probability, when P(B)>0, is P(A|B)=P(A∩B)/P(B), not multiplication by P(B). Thus D is the only unconditional assertion among the listed alternatives.
How many distinct simple graphs have up to three nodes, among 15,10,7,9?
Your answer
Answer & solution
Answer: C: 7, for nonempty unlabeled graphs (no official key was published)
Count graph isomorphism classes by vertex count. With one vertex there is one graph. With two vertices there are two: no edge or one edge. With three vertices the possible edge counts 0,1,2,3 each determine one class: empty, one edge plus isolated vertex, a two-edge path, or triangle. Total 1+2+4=7. This uses unlabeled graphs and excludes the zero-vertex graph. Including that graph gives eight, while labeled fixed vertex sets yield 1+2+8=11, so the interpretation must be stated.
For an abelian group G, is g=g⁻¹, g=g², (gh)²=g²h², or finiteness guaranteed?
Your answer
Answer & solution
Answer: C (no official key was published)
Expand (gh)² as ghgh. Commutativity lets the middle h and g exchange places, producing gghh=g²h². The other properties do not follow: the additive group of integers is abelian but infinite, and most elements are neither their own inverse nor idempotent. In multiplicative notation, g=g² would force g to be the identity after cancellation. Thus C captures the actual use of the abelian assumption.
Give a binary operation on nonnegative integers that is associative but not commutative.
Answer & solution
Answer: x⋆y=x (left projection) (no official key was published)
Define x⋆y to return its first operand. The result is always a nonnegative integer, establishing closure. Then (x⋆y)⋆z=x⋆z=x, while x⋆(y⋆z)=x⋆y=x, so associativity holds for all triples. But 0⋆1=0 and 1⋆0=1, proving noncommutativity. This constructed example avoids subtraction, which is not closed on the nonnegative integers and is not associative. The question asks for an example, not a unique familiar arithmetic operation.
On N, R={(x,y):x≠y}. Which of reflexivity,symmetry,antisymmetry,transitivity hold?
Answer & solution
Answer: Symmetry only (no official key was published)
If x≠y then y≠x, so R is symmetric. It is not reflexive because x≠x never holds. It is not antisymmetric: 0R1 and 1R0 hold despite 0≠1. It is not transitive: 0R1 and 1R0 hold but 0R0 fails. These explicit counterexamples distinguish the three failed properties. In addition the relation is irreflexive, though that property is not among the requested choices.
Answer: 2^(n−1), for n≥1 (no official key was published)
Toggle whether element 1 belongs to a subset. This maps every even-cardinality subset to a unique odd-cardinality subset and reverses itself, so the two classes are equally large. Since there are 2n total subsets, each class has 2n−1. The argument does not require summing individual binomial coefficients. If n=0 is allowed, the only subset is empty and the odd count is zero; the usual displayed formula assumes the nonempty base set n≥1.
A graph has n vertices each of degree d. Fill in its number of edges.
Answer & solution
Answer: nd/2 (no official key was published)
Summing vertex degrees gives nd. Each undirected edge contributes two to that sum, one at each endpoint, so the handshaking lemma yields 2|E|=nd. Therefore |E|=nd/2. In particular nd must be even for such a finite graph to exist. This is the standard undirected interpretation of a regular graph; a directed graph would require stating whether d denotes indegree, outdegree or total degree.
Given P(B)=P1, P(A∩B)=P2 and P(A∩Bᶜ)=P3, find P(A). The clearer alternate supplies these premises.
Answer & solution
Answer: P2+P3 (no official key was published)
Every outcome in A either lies in B or in its complement. Therefore A=(A∩B)∪(A∩Bᶜ), and the two pieces are disjoint. Additivity gives P(A)=P2+P3. P1 is not needed for this result, though consistency requires P2≤P1 and P3≤1−P1.
Independent A,B,C have probabilities 0.8,0.5,0.3. Find the probability that at least one occurs.
Answer & solution
Answer: 0.93 (no official key was published)
The complement is that none occurs. Mutual independence gives P(Aᶜ∩Bᶜ∩Cᶜ)=(1−0.8)(1−0.5)(1−0.3)=0.2·0.5·0.7=0.07. Therefore the requested probability is 1−0.07=0.93. Adding 0.8+0.5+0.3 would overcount overlapping outcomes. The multiplication needs mutual independence as stated; pairwise independence alone would not determine the three-way complement probability.
Give Hasse diagrams for every lattice of up to four elements, up to isomorphism.
Answer & solution
Answer: Five nonempty lattices: chains of sizes 1,2,3,4, and the four-element diamond (no official key was published)
A finite nonempty lattice has a least and greatest element. With one or two elements only the corresponding chains are possible. With three elements, the remaining element must lie between bottom and top, again a chain. With four elements, the two interior elements are either comparable, giving a four-element chain, or incomparable, giving a diamond. Exact cover-edge descriptions are: size 1 no edges; size 2 0<1; size 3 0<a<1; size 4 chain 0<a<b<1; diamond edges 0<a,0<b,a<1,b<1. These cover lists specify all five Hasse diagrams without relying on a rough drawing. The empty structure is excluded by the usual nonempty-lattice convention.
True or false: every subset of a countable set is countable.
Answer & solution
Answer: True, with countable meaning finite or countably infinite (no official key was published)
A countable set A has an injection into the natural numbers. Restrict that injection to any subset B⊆A; it remains injective, so B is at most countable. Equivalently, an enumeration of A can be filtered to retain only B, possibly producing a finite list. The empty subset is included. If a text uses “countable” to mean strictly countably infinite, finite subsets require a terminology qualification; the standard at-most-countable convention makes the statement true.
Use a truth table to decide whether the claim “p↔q does not imply p→¬q” is true.
Answer & solution
Answer: True: the asserted implication fails at p=q=true (no official key was published)
List rows (p,q) as TT,TF,FT,FF. The column p↔q is T,F,F,T. The column p→¬q is F,T,T,T. For semantic implication, every row with the first column true would need the second true. The TT row instead has a true premise and false conclusion, so p↔q does not imply p→¬q. Therefore the quoted nonimplication claim is true. This is a claim about entailment across all rows, not the value of either formula under one unspecified assignment.
A 3-ary tree has exactly three children at every internal node. Use induction to prove that with n internal nodes it has 2(n−1)+3 leaves (GateForum). GFG instead prints 2(n−1).
Answer & solution
Answer: The formula as printed is false; with +3 (2n+1 leaves) it holds (no official key was published)
1. Base n=1: a root with three children has three leaves, equal to 2(1−1)+3.
2. For any full ternary tree with n+1 internal nodes, choose a deepest internal node. Its three children are leaves. Prune those three children, making their parent a leaf.
3. The smaller tree has n internal nodes and, by induction, 2n+1 leaves. Restoring the three children replaces one leaf by three, increasing the leaf count by two. Thus the original has 2n+3=2((n+1)−1)+3 leaves.
4. The single-node tree n=0 also satisfies 2n+1=1 if that case is included.
Both say interval nodes, understood as internal nodes from the definition.
Every element a of a ring (R,+,∘) satisfies a∘a=a. Decide whether the ring is commutative.
Answer & solution
Answer: Yes, multiplication is commutative. (no official key was published)
1. Write multiplication by juxtaposition. Apply idempotence to a+a: (a+a)²=a+a. Distributivity and a²=a give 4a=2a, hence 2a=0 by additive cancellation. Thus −a=a for every a.
2. For arbitrary a,b, idempotence of a+b gives (a+b)²=a+b. Expanding yields a²+ab+ba+b²=a+b. Cancel a²=a and b²=b to get ab+ba=0.
3. Since every element is its own additive inverse, −ba=ba. Therefore ab=−ba=ba. No multiplicative identity is needed.
A simple connected graph has n>2 vertices and n edges. Which hold: no cycles; every single-edge removal disconnects; at least one cycle; every two-edge removal disconnects?
Select all that apply
Answer & solution
Answer: C,D (no official key was published)
A spanning tree uses n−1 edges, leaving one extra edge that creates a cycle, so C holds and A fails. Removing an edge on that cycle leaves the graph connected, refuting B. Removing any two distinct edges leaves only n−2 edges; no graph on n vertices with so few edges can be connected, so D holds. This edge-count argument proves D even if one of the removed edges was already a bridge, without needing to enumerate the graph’s shapes.
Simplifying a conjunction with an implication form
Propositional & Predicate Logic
Tap to enlarge
Classify p∧(¬p∨q) among tautology,equivalent to p∧q,equivalent to p∨q,contradiction.
Select all that apply
Answer & solution
Answer: B (no official key was published)
Distribute p over the OR: p∧(¬p∨q)=(p∧¬p)∨(p∧q). The first term is false, so the result is p∧q. It is true when both variables are true and false otherwise, hence neither a tautology nor a contradiction. It is not p∨q, which would also be true when exactly one variable is true. This establishes the equivalence algebraically and by its truth conditions.
An infinite set S is the union of finitely many sets S1,…,Sn. Which must hold regarding finite or infinite members?
Select all that apply
Answer & solution
Answer: C: at least one Si is infinite (no official key was published)
If every Si were finite, the union would have cardinality at most the finite sum Σ|Si| and would be finite, contradicting the premise. Thus at least one is infinite. It is possible that all are infinite, for example each equal to S, so no finite member is required. It is also possible that several are finite and one is S, so the proposed upper limit on finite members is not a general rule. The finiteness of the number of sets is essential.
If |A|=n,how many elements are in P(A×A)? Compare the displayed exponential alternatives.
Select all that apply
Answer & solution
Answer: B: 2^(n²) (no official key was published)
An ordered pair chooses its first and second coordinates independently from n possibilities, so |A×A|=n². A subset independently includes or excludes each of those n² pairs, giving 2n² subsets. This is not (2n)²=22n, which counts an ordered pair of subsets of A rather than an arbitrary relation on A. Coincidences at small n do not make those formulas identical as general functions of n.
For < on reals,options call it a partial order because asymmetric/reflexive or antisymmetric/reflexive,or deny it because not asymmetric/not reflexive or not antisymmetric/reflexive. Which complete statement is valid?
Select all that apply
Answer & solution
Answer: E: none of the listed reasons (no official key was published)
Strict less-than is transitive and irreflexive. It is asymmetric: x<y excludes y<x. It is also antisymmetric in the logical sense, vacuously, because the two directions never both hold. Under the usual reflexive definition it is not a non-strict partial order, but the options denying partial order give additional false reasons about asymmetry or antisymmetry. Options asserting reflexivity are false too. Under the strict-partial-order convention, < is a strict order, but again the printed reflexivity reasons fail. Thus none of the complete option statements is correct.
Similar questions1 more → · asked again: GATE 1997, Q13(a)
Counting injections
Sets, Relations & Functions
Tap to enlarge
For finite |A|=m<|B|=n,how many injective functions A→B exist?
Select all that apply
Answer & solution
Answer: B: nP_m=n!/(n−m)! (no official key was published)
Choose distinct images successively for the m domain elements. The first has n choices, the second n−1, and so on through n−m+1. Multiplying yields n!/(n−m)!. A binomial coefficient alone would choose only the image subset and omit the m! bijections assigning its elements to the labeled domain elements. The unrestricted function count nm also permits repeated images, so it does not enforce injectivity. The formula gives one map when m=0, as required.
Prove by mathematical induction that a binary tree in which every non-leaf node has two descendants has one more leaf than non-leaf node. Interpret descendants here as immediate children, i.e. a finite nonempty full binary tree.
Answer & solution
Answer: L=I+1 for every finite nonempty full binary tree. (no official key was published)
Let I be the number of internal (non-leaf) nodes and L the number of leaves. We prove L=I+1 by strong induction on I for finite nonempty full binary trees.
Base case I=0: there is only the root, and it is a leaf. Thus L=1=I+1. The empty tree is excluded: it would have L=I=0 and would not satisfy the stated formula.
Inductive hypothesis: for every full binary tree with fewer than k internal nodes, the number of leaves is one more than the number of internal nodes. Consider a tree with k>=1 internal nodes. Its root is internal and, by the full-tree condition, has exactly two children. The subtrees rooted at these children are nonempty full binary trees; call their internal and leaf counts I1,L1 and I2,L2. Each Ii<k, and k=1+I1+I2. The induction hypothesis applies to both subtrees: L1=I1+1 and L2=I2+1. Their leaves are disjoint and are exactly the leaves of the original tree, since the root is not a leaf. Hence L=L1+L2=I1+I2+2=k+1. This completes the induction.
An equivalent structural induction starts with one leaf and replaces any leaf by an internal node with two new leaf children. Every such operation increases I by one and increases L by one (remove one leaf, add two), preserving L−I=1. As an independent check, a tree with I+L vertices has I+L−1 edges; counting edges by parents gives 2I, so 2I=I+L−1. The immediate-child interpretation matters: general binary trees permitting a single child need not obey the formula.
Food-preference counts and missing union information
Combinatorics & Counting
Tap to enlarge
Among 21 persons, 9 eat vegetables, 10 fish, 7 eggs, and 5 all three. How many eat at least two of the three? The statement does not say that every person eats one of them.
Answer & solution
Answer: Underdetermined: at least-two may be any integer 5–10. Requiring all 21 to eat one dish is inconsistent. (no official key was published)
Let x1,x2,x3 count persons eating exactly one, exactly two, and exactly three dishes. Here x3=5. Counting memberships across the three sets yields x1+2x2+3*5=9+10+7=26, hence x1+2x2=11. Let x0 count persons eating none. The group total gives x0+x1+x2+5=21. Eliminating x1 shows x0=5+x2. Thus the requested count x2+x3=x2+5 is not fixed by the given data; equivalently it equals x0. The union size is 16−x2.
The individual set totals do impose bounds. After removing the five triple-eaters, the residual vegetable, fish, and egg memberships are respectively 4,5,2. If a,b,c count exactly vegetable/fish, vegetable/egg, fish/egg, then a+b<=4, a+c<=5, b+c<=2. Their sum x2 is nonnegative and 2x2<=4+5+2=11, so x2<=5. Both extremes are feasible. For x2=0, take only-vegetable=4, only-fish=5, only-eggs=2, all-three=5, none=5: all totals match and at least-two=5. For x2=5, take exactly-VF=3, exactly-VE=1, exactly-FE=1, only-fish=1, all-three=5, none=10, with other single-only counts zero. This again matches all totals, but at least-two=10. Intermediate x2 values are feasible too (for x2<=4 use only VF pairs, and use the preceding construction for 5). Therefore the possible answer is any integer from 5 through 10, not a unique number.
Do not assume all 21 eat at least one. With union=21, inclusion-exclusion gives sum of pairwise intersection sizes=26+5−21=10. But the five triple-eaters alone contribute 15 to that sum, a contradiction. Equivalently x0=0 would require x2=−5. Consequently adding that common implicit assumption does not rescue a unique answer; it makes the data inconsistent. No official correction or key is verified.
Using a truth table, prove that C follows logically from F=A AND (A implies (B OR C)) AND (B implies NOT A).
Answer & solution
Answer: F entails C; F is true only on (A,B,C)=(1,0,1). (no official key was published)
A logical consequence requires that every valuation making the premises true also makes C true. It does not require C to be true on every valuation. Evaluate the two material implications using P implies Q = (NOT P) OR Q. The complete truth table is:
The only row with F=1 is A=1,B=0,C=1; in that row C=1. Equivalently the final column F→C consists entirely of 1s, so F entails C. This is a non-vacuous consequence because F does have a satisfying assignment.
For an additional reasoning check, F includes A, forcing A=true. Its last conjunct B→¬A then forces B=false, because ¬A is false. With A true, the middle conjunct forces B∨C=true, so C must be true. In fact F is equivalent to A AND NOT B AND C. The table, rather than this shorter argument alone, supplies the proof format requested by the question.
Answer: Associativity gives p*(p*p)=(p*p)*p. (no official key was published)
A semigroup operation is associative. Substitute q=p*p into the left product: p*q=p*(p*p). Associativity permits regrouping this as (p*p)*p, and replacing p*p by q yields q*p. Thus the two mixed products coincide.
This argument does not assume that every semigroup is commutative; that is generally false. It works here because q is a power of p, and the two products are simply two parenthesizations of p*p*p. Their common value need not be determined to establish equality. In the two-element set it is either p or q, a fact used in the next part, but not needed for this equality itself.
In semigroup ({p,q},*) with p*p=q, prove q*q=q. You may use p*q=q*p.
Answer & solution
Answer: Closure and associativity, splitting cases p*q=p or p*q=q, give q*q=q. (no official key was published)
By closure, the common mixed product r=p*q=q*p is one of the two elements p,q. If r=p, then q*q=(p*p)*q=p*(p*q)=p*p=q. Every regrouping is justified by associativity.
If r=q, then again q*q=(p*p)*q=p*(p*q)=p*q=q. Thus both possible values of r yield the same required result. The argument uses the two-element universe: in a larger semigroup, p²=q need not force q²=q. For example the positive integers under addition give p=1,q=2 but q+q=4≠2.
The two resulting multiplication tables are consistent possibilities: with r=p the table is pp=q,pq=qp=p,qq=q; with r=q it is pp=pq=qp=qq=q. The proof establishes idempotence without selecting one of these possible semigroups.
What is the maximum number of edges of a planar graph with n vertices?
Answer & solution
Answer: 3n−6 for simple planar graphs with n≥3 (no official key was published)
For a connected simple planar embedding, Euler gives n−m+f=2. Every face boundary has length at least three, while each edge contributes two boundary incidences, so 3f≤2m. Combining gives m≤3n−6, attained by triangulations. Disconnected simple graphs cannot exceed that maximum. Simplicity and n≥3 are necessary qualifications: parallel edges can make edge count unbounded for fixed n, and the small cases n=1, 2 have maxima 0, 1. The familiar formula is therefore a conditional standard answer, not valid for every use of the word graph.
Which listed vertex/edge counts describe a nonplanar simple graph with the fewest vertices:9 edges 6 vertices, 6 edges 4 vertices, 10 edges 5 vertices, 9 edges 5 vertices?
Select all that apply
Answer & solution
Answer: C: K5 with 10 edges and 5 vertices (no official key was published)
Every simple graph on at most four vertices is a subgraph of planar K4, so nonplanarity requires at least five vertices. On five vertices, K5 is nonplanar and has 10 edges. Removing any edge from K5 gives a planar graph, so a five-vertex graph with only nine edges does not supply the required example. K3, 3 has nine edges but six vertices, so it minimizes a different quantity. The question asks for fewest vertices, not fewest edges.
Assess A [(∀xP)∨(∀xQ)]→∀x(P∨Q); B [(∃xP)∧(∃xQ)]→∃x(P∧Q); C ∀x(P∨Q)→[(∀xP)∨(∀xQ)]; D ∃x(P∨Q)→[¬∀xP∨∃xQ].
Select all that apply
Answer & solution
Answer: A only (no official key was published)
For A, if P holds everywhere or Q holds everywhere, their disjunction holds everywhere, so the implication is valid. B fails on a two-element domain where only the first element has P and only the second has Q: both existentials hold but no common witness does. The same interpretation refutes C because every element satisfies the disjunction while neither predicate holds universally. D fails on a one-element nonempty domain with P true and Q false. Its existential antecedent is true, but both ¬∀xP and ∃xQ are false. Thus only A is valid as printed; the negation in D applies to ∀xP, not to a universal conjunction of negated predicates.
Assess A (a∨b)→(b∧c); B (a∧b)→(b∨c); C (a∨b)→(b→c); D a→b→(b→c), whose association is unmarked.
Select all that apply
Answer & solution
Answer: B (no official key was published)
Whenever a∧b is true, b is true and therefore b∨c is true, so B is a tautology. A fails at a=1, b=0, c=0. C fails at a=0, b=1, c=0. D is not a tautology under either common association: right association fails at a=b=1, c=0; left association fails, for example, at a=0, b=1, c=0. The unmarked implication chain is disclosed, but it does not change the selection of B. These are propositional evaluations, not deductions assuming any extra premises.
Similar questions1 more → · asked again: GATE 2014 Set 3, Q51
Edges in a forest
Trees & Connectivity
Tap to enlarge
A forest has n vertices and p connected components. How many edges?
Answer & solution
Answer: n−p (no official key was published)
Every component of a forest is a tree. If component i has ni vertices, it has ni−1 edges. Summing over the p components gives Σ(ni−1)=Σni−p=n−p. Isolated vertices count as one-vertex components with zero edges, so the formula handles them automatically. The acyclicity assumption is essential: a graph with cycles can have more edges with the same n and p. The empty forest gives zero with n=p=0.
Let G be a group of even order with identity e. Show that some a≠e satisfies a²=e.
Answer & solution
Answer: True: inverse pairing leaves a nonidentity self-inverse element. (no official key was published)
Here “even order” means finite order |G|=2m. Consider inversion g↦g⁻¹. Every element whose inverse is different forms a two-element pair {g,g⁻¹}; these pairs are disjoint because taking the inverse twice returns g. The remaining elements are fixed points of inversion, satisfying g=g⁻¹, equivalently g²=e.
The paired elements account for an even number of elements. Subtracting this number from the even total |G| shows that the number of fixed points is even. Identity e is one fixed point, so there cannot be exactly one: another fixed point a≠e exists. Multiplying a=a⁻¹ by a gives a²=e, as required. Since a≠e, its order is exactly two.
Equivalently, G\{e} has odd size and cannot be completely partitioned into distinct inverse pairs; one nonidentity self-inverse element must remain. This proof uses neither commutativity nor any assumption that G is cyclic. It proves existence, not uniqueness: some groups have several nonidentity involutions. The finite-even-order qualification matters; an infinite group is not classified as even merely by an informal pairing argument.
On D={1,2,3,4,6,8,12,24}, use the binary operations LCM and GCD. Which structures apply: (i) group, (ii) ring, (iii) field, (iv) lattice?
Select all that apply
Answer & solution
Answer: Only (iv), lattice. (no official key was published)
D is exactly the positive divisors of 24=2³·3. Order D by divisibility, not by the ordinary numerical ≤ relation. Every d is uniquely 2i3j with 0≤i≤3 and 0≤j≤1. GCD takes the coordinatewise minimum of exponent pairs, and LCM takes their coordinatewise maximum. Both outputs are again divisors of 24, proving closure.
For x,y∈D, gcd(x,y) divides both and every common divisor divides it, so it is their greatest lower bound (meet). Likewise lcm(x,y) is their least upper bound (join). Thus every pair has a meet and join: (D,gcd,lcm) is a lattice, option (iv). In fact it is a bounded distributive lattice, with bottom 1 and top 24. For example gcd(8,12)=4 and lcm(8,12)=24.
Neither operation makes this nontrivial set a group. Both are idempotent: x⋆x=x. In a group, cancellation would force every idempotent x to equal the identity, impossible for eight distinct elements. More concretely, LCM has identity 1 but 2 has no inverse giving LCM(2,y)=1; GCD has identity 24 but 2 has no inverse giving GCD(2,y)=24. Consequently these operations cannot provide the additive group required for a ring, in either assignment of addition and multiplication, and cannot form a field. Do not classify it as a group merely because the operations are closed and associative.
The reproduction asks to show inconsistency using modus ponens or resolution: (1) ∀x [Q(x) → (P(x) ∨ ¬R(a))] (2) R(a) [missing connective] ¬Q(a) (3) Q(a) (4) ∀y ¬P(y). Here a is a constant and P,Q,R are unary predicates. Both surviving copies omit the connective in (2). Give an explicitly conditional derivation rather than silently repairing the source.
Answer & solution
Answer: Formula (2) is malformed as printed. With (2)=R(a)∨¬Q(a), resolution yields □; with ∧ it also contradicts Q(a), whereas with → there is a countermodel. (no official key was published)
Literally (2) is not a well-formed formula, so the printed set has no uniquely defined satisfiability question. A natural repair is R(a)∨¬Q(a); the following resolution proof is conditional on that repair, not an assertion about a verified original.
Convert (1) to the universally quantified clause ¬Q(x)∨P(x)∨¬R(a). Instantiate x=a and resolve with (3), Q(a), to obtain P(a)∨¬R(a). Instantiate (4) at y=a, obtaining ¬P(a); resolve to get ¬R(a). The repaired (2), R(a)∨¬Q(a), resolves with Q(a) to give R(a). Resolving R(a) and ¬R(a) yields the empty clause □. Hence the disjunction repair is inconsistent.
The same reasoning can be written with modus ponens: Q(a) and (1) imply P(a)∨¬R(a); ¬P(a) forces ¬R(a). Under the disjunction repair, (2) is Q(a)→R(a), so Q(a) forces R(a), a contradiction.
If the missing connective were ∧, (2) would directly include ¬Q(a), contradicting (3), so that repair is also inconsistent. But if it were →, the set would be consistent: take a singleton domain {a}, Q(a)=true, P(a)=false, and R(a)=false. Then (1) is true because ¬R(a) is true, (2) R(a)→¬Q(a) is vacuously true, (3) is true, and (4) is true. The requested unconditional proof is blocked by the defective premise, while the explicitly labeled repaired proof is complete.
On S=ℤ fix n>1 and define aRb iff a−b is a multiple of n. Prove that R is an equivalence relation and find its classes when n=5.
Answer & solution
Answer: R is congruence modulo n; for n=5 the classes are 5ℤ,5ℤ+1,5ℤ+2,5ℤ+3,5ℤ+4. (no official key was published)
Prove all three defining properties using divisibility.
Reflexivity: for each a, a−a=0=n·0, so aRa. Symmetry: if aRb, then a−b=nk for an integer k. Hence b−a=n(−k), so bRa. Transitivity: if aRb and bRc, write a−b=nk and b−c=nℓ. Adding gives a−c=n(k+ℓ), so aRc. Thus R is an equivalence relation.
For n=5, the division algorithm gives every integer z a unique remainder r∈{0,1,2,3,4}, including negative integers. Two integers are related exactly when these remainders agree. The five distinct classes are: [0]={5k:k∈ℤ}={…,−10,−5,0,5,10,…} [1]={5k+1:k∈ℤ}={…,−9,−4,1,6,11,…} [2]={5k+2:k∈ℤ}={…,−8,−3,2,7,12,…} [3]={5k+3:k∈ℤ}={…,−7,−2,3,8,13,…} [4]={5k+4:k∈ℤ}={…,−6,−1,4,9,14,…}.
They cover ℤ by existence of remainders. They are disjoint because equality 5k+r=5ℓ+s implies 5 divides r−s, and for r,s in 0…4 this forces r=s. Representatives are not unique: for example [−1]=[4], but these are the same class, not a sixth class.
Count ordered integer triples (i, j, k) with 1≤i, j, k≤300 and i+j+k divisible by 3.
Answer & solution
Answer: 9, 000, 000 (no official key was published)
The interval 1, …, 300 contains exactly 100 representatives of each residue modulo 3. For each ordered pair (i, j), the required residue of k is uniquely −i−j modulo 3, and precisely 100 values of k realize it. There are 300² ordered pairs, so the total is 300²×100=9, 000, 000. Repetitions and different orderings are permitted because these are triples, not three-element subsets. Equivalently, exactly one third of the 300³ triples have residue sum zero. Both bounds are inclusive.
If a finite partial order has longest chain of n elements, into how many antichains can it be partitioned?
Answer & solution
Answer: n antichains (no official key was published)
Assign each element the maximum number of elements in a chain ending there. Each rank lies between 1 and n. If x<y, appending y to a longest chain ending at x shows rank(y)>rank(x). Therefore elements with equal rank are incomparable and form an antichain; the n rank classes give the desired partition. Conversely, a chain of n elements meets any antichain in at most one element, so fewer than n classes cannot suffice. Here chain length counts elements; if it counted edges the numerical parameter would shift by one.
Find the maximum number of edges in an undirected graph with n vertices and k components.
Answer & solution
Answer: (n−k+1)(n−k)/2 for a simple graph (no official key was published)
For component sizes n1, …, nk, simplicity permits at most Σ C(ni, 2) edges, attained by making each component complete. If two component sizes a≥b≥2 occur, transferring a vertex from the smaller to the larger changes the sum by a−b+1>0. Repeating leaves one component of size n−k+1 and k−1 isolated vertices, giving C(n−k+1, 2). This assumes 1≤k≤n and a simple loopless graph. If parallel edges are unrestricted, no finite maximum follows merely from n and k.
Match A binary trees with n nodes; B length 2n binary strings with n zeros; C even permutations of n objects; D length 6n palindromes with exactly 2n zeros. Choices P=n!/2, Q=C(3n, n), R=C(2n, n), S=C(2n, n)/(n+1).
Answer & solution
Answer: A–S; B–R; C–P; D–Q under ordered binary-tree and n≥2 conventions (no official key was published)
Ordered binary trees with n nodes satisfy the Catalan recurrence from choosing left and right subtree sizes; its solution is C(2n, n)/(n+1). For B, choose the n zero positions among 2n positions. For C, composing with a fixed transposition pairs even and odd permutations, so each class has n!/2 members when n≥2. An even-length palindrome is determined by its first half. Exactly 2n zeros in length 6n requires n zeros among the first 3n positions, giving C(3n, n). Unordered-tree counting and n=0 or 1 permutation cases require separate conventions.
GFG states (F1∧F2)→F3 and (F1∧F2)→¬F3 are tautologies. Choices: both F1, F2 tautologies; their conjunction unsatisfiable; neither tautological; neither satisfiable; none. Forum alters the second formula.
Select all that apply
Answer & solution
Answer: B: F1∧F2 is unsatisfiable (no official key was published)
Suppose a valuation made F1 and F2 both true. The first tautology would then force F3 true, and the second would force F3 false, an impossibility. Thus no such valuation exists and their conjunction is unsatisfiable. This does not require either individual formula to be unsatisfiable: F1=p, F2=¬p is a counterexample to that stronger claim. Nor must both fail to be tautologies; F1=true, F2=false satisfies the premises.
If a finite axiom system A is complete and consistent for a theory, is every subsystem also complete and consistent? Explain.
Answer & solution
Answer: Consistency is inherited; completeness need not be (no official key was published)
Let B⊆A. Any proof from B is also a proof from A, since all its premises remain available. If B derived a contradiction, so would A; therefore every subsystem is consistent. Completeness does not follow because removing an essential axiom can remove the ability to decide a sentence. For example, in propositional logic over a single atom p, the axiom set{p} is consistent and complete for truth-functional formulas over p, whereas the empty subsystem proves neither p nor ¬p. Redundant-axiom removal may preserve completeness, but arbitrary removal need not. The claim does not require an impossible complete arithmetic theory.
For positive integers a and b, prove gcd(a,b)·lcm(a,b)=ab.
Answer & solution
Answer: gcd(a,b)·lcm(a,b)=ab. (no official key was published)
By unique prime factorization, write a=∏p pαp and b=∏p pβp, using exponent zero for a prime absent from either factorization. Only finitely many exponents are nonzero.
A common divisor cannot contain more copies of p than either number, so the largest possible exponent of p in the gcd is min(αp,βp). Conversely these minimum exponents do divide both numbers, proving gcd(a,b)=∏p pmin(αp,βp).
A common multiple must contain at least as many copies of p as each number, so the smallest possible exponent in the lcm is max(αp,βp). These maximum exponents form a multiple of both, proving lcm(a,b)=∏p pmax(αp,βp).
Multiplying adds exponents. Since min(u,v)+max(u,v)=u+v for any u,v, the product is ∏p pαp+βp=ab. This also covers a=1 or b=1 by the empty-product convention. Positivity avoids sign conventions and zero-related lcm special cases.
Over a nonempty domain, consider (∀x∃y R(x,y)) ∧ (∀x∀y(R(x,y)→¬R(y,x))) ∧ (∀x∀y∀z((R(x,y)∧R(y,z))→R(x,z))) ∧ (∀x ¬R(x,x)). Does this formula have finite models? Is it satisfiable? Give a countable model if so.
Answer & solution
Answer: No nonempty finite models. It is satisfiable in the countably infinite structure (ℕ,<). (no official key was published)
The conjuncts say respectively that every element has a strict successor in R, the relation is asymmetric, it is transitive, and it is irreflexive. In particular the first clause prevents a maximal element. The negation in the asymmetry clause is essential and is visibly present in the sources.
Suppose a finite model had m≥1 elements. Choose any x0. By the first clause choose x1 with R(x0,x1), then x2 with R(x1,x2), continuing to xm. Among these m+1 elements some xi=xj with i<j. Repeated application of transitivity to the nonempty chain from xi to xj yields R(xi,xj), hence R(xi,xi). This contradicts irreflexivity. Thus there is no finite nonempty model. One can equivalently say that a finite strict partial order has a maximal element, contrary to the successor clause.
For satisfiability, take the domain ℕ={0,1,2,…} and interpret R(x,y) as x<y. Every x has witness y=x+1. If x<y then not y<x, so asymmetry holds. From x<y and y<z follows x<z, so transitivity holds; x<x is always false. All four conjuncts therefore hold. The domain is countably infinite, giving the requested countable model. Ordinary first-order semantics requires a nonempty domain; if empty domains were unusually permitted, the universally quantified formula would also hold vacuously there.
How many length-2n binary strings have n zeros and n ones and every prefix contains at least as many zeros as ones?
Answer & solution
Answer: C_n = binom(2n,n) − binom(2n,n−1) = binom(2n,n)/(n+1). (no official key was published)
Interpret a zero as a +1 step and a one as a −1 step. A balanced string gives a walk from height 0 to height 0 in 2n steps. The prefix restriction asks that the height never become negative. There are binom(2n,n) balanced strings before imposing the restriction.
Count the bad strings by reflection. A bad walk has a first step reaching height −1. Swap zeros and ones in the segment from the beginning through that first visit. Originally that segment has one more one than zero; after the swap it has one more zero than one. Consequently the transformed entire string has n+1 zeros and n−1 ones and ends at height +2.
Conversely, any string with n+1 zeros and n−1 ones must first reach height +1. Reflect its prefix through that first visit. The resulting balanced walk first reaches −1 there, so it is bad. These two operations invert each other, establishing a bijection. The number of bad strings is therefore binom(2n,n−1), choosing the positions of its n−1 ones after reflection.
Subtracting gives binom(2n,n)−binom(2n,n−1). Since binom(2n,n−1)=n·binom(2n,n)/(n+1), the result is Cn=binom(2n,n)/(n+1), the nth Catalan number. For n=0, the empty string contributes one; for n=2, the valid strings are 0011 and 0101, agreeing with C2=2.
Prove that a finite undirected simple graph with at least two vertices has two vertices of equal degree.
Answer & solution
Answer: Two vertices must share a degree, since degrees 0 and n−1 cannot both occur. (no official key was published)
Let the graph have n≥2 vertices. In a simple undirected graph each degree is an integer in {0,1,…,n−1}. Merely counting n possible degrees and n vertices does not yet prove a repetition; the key is that the extreme values cannot coexist.
If a vertex has degree n−1, it is adjacent to every other vertex, so every other vertex has degree at least 1. Thus no degree-0 vertex exists. Conversely, if an isolated vertex exists, no vertex can be adjacent to all n−1 others, so degree n−1 is absent.
There are therefore at most n−1 possible degrees in the graph: if there is an isolated vertex, use {0,…,n−2}; if not, use {1,…,n−1}. Assigning n vertices to at most n−1 degree values forces two into the same value by the pigeonhole principle.
The simple-graph convention matters. If parallel edges or loops were allowed, the bound n−1 would fail and so can the conclusion. For example, on three vertices put one edge between a and b, two parallel edges between a and c, and none between b and c. The degrees are 3,1,2, all distinct. The source's unqualified graph is interpreted in the standard simple-graph setting.