MathsReadCompetitive mathematics
Algorithmic puzzle · integer answereasy25 min

Twelve-divisor sevens

Divisor Arithmetic

How many integers n in 1..120000 are divisible by 7 and have exactly twelve positive divisors?

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

Count divisors using the product of one more than each prime exponent. A sieve of smallest prime factors helps evaluate many candidates; test divisibility by 7 separately.

Worked example with different values

60=2²×3×5 has (2+1)(1+1)(1+1)=12 positive divisors.

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 →