MathsReadCompetitive mathematics
Algorithmic puzzle · integer answerhard90 min

Spacing lottery sums

Exact Enumeration

Choose exactly twelve distinct integers from {1,2,...,100}. How many subsets have no two consecutive integers and their sum divisible by 11? Return the exact count, without a modulus. Order is irrelevant.

Solve using mathematics, algorithms, or your own code offline. Submit only the final integer here—no program, expression, graph, or written proof.

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.

How to approach this problem

Scan the integers in order and either include or skip each one. Keep selection count, sum remainder and a flag for whether the preceding number was selected. Use exact integer counts.

Worked example with different values

The two-element nonconsecutive subsets of {1,2,3,4} are {1,3}, {1,4}, {2,4}; their sums are 4,5,6.

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

Learn the technique: Number theory: divisors, gcd and modular arithmetic

Report a question or explanation issue

Back to problems →