History of Mathematics
in India IIT Gandhinagar, home

Project Brahmagupta · problem 24

Consecutive Harshad Numbers

A positive integer nn is called a Harshad number if nn is divisible by the sum of its decimal digits. Formally, writing S(n)S(n) for the sum of the digits of nn, we require S(n)∣nS(n) \mid n. For example, 1818 is a Harshad number since S(18)=9S(18) = 9 and 9∣189 \mid 18, while 1919 is not, since S(19)=10S(19) = 10 and 10∤1910 \nmid 19.

Find the smallest nn such that nn, n+1n+1, n+2n+2, n+3n+3 and n+4n+4 are all Harshad numbers.

Try it

Check an answer

Enter a number, or a decimal where the problem asks for one. Only a hash of the answer is kept on this page.

Problem 24 of Project Brahmagupta, published under the Creative Commons Attribution 4.0 licence. No solutions are published.