MathsReadCompetitive mathematics
Pattern recognition · integer answermedium12 min

Almost-complete bipartite graph

Graph Edge Patterns

There are vertices A1,...,A12 on the left and B1,...,B12 on the right. Ai is joined to Bj exactly when i and j are different. There are no edges within either side. How many undirected edges are present? Count each edge once. With three vertices on each side, the same rule gives 3×2=6 edges. Submit one integer.

Learning goal: Use a complement-count or degree-count model for bipartite edges.

Look for the underlying structure rather than guessing the next number. Submit only the final integer; you can open hints below as needed.

Check your answer without signing in. Sign in to save your progress.

Accepted format: a whole number such as 42 or 123456789. No commas, formulas, or source code.

Hints

Hint 1

First count all edges of a complete 12-by-12 bipartite graph.

Hint 2

Exactly one right-side connection is missing for each left-side vertex.

Hint 3

Compute 12×12−12, or equivalently 12×11.

Common mistake to avoid

Subtracting forbidden edges twice or counting every possible pair, including i=j.

How to approach this problem

Count the possible right-side neighbors separately for every left-side vertex. Each left-to-right edge is counted once by this method.

Worked example with different values

With four vertices on each side and the matching pair forbidden, each left vertex has three neighbors, for 12 edges.

Apply the same reasoning to the challenge. This example is a separate practice problem.

Learn the technique: Sequence patterns: differences, recurrences and interleaving

Report a question or explanation issue

Sequence patterns · Repeating remainders

Back to problems →