MathsReadCompetitive mathematics
Algorithmic puzzle · integer answereasy25 min

Increasing odd-ended digits

Digit Algorithms

Among five-digit positive integers whose digits are strictly increasing from left to right, sum those whose final digit is odd. Return that sum modulo 1000003.

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

A strictly increasing digit string is uniquely determined by its chosen digits. Generate combinations of five distinct digits, exclude leading zero, and retain those with an odd maximum.

Worked example with different values

The digits 1, 4 and 7 form the unique increasing three-digit integer 147. Permuting them does not create another valid increasing integer.

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 →