Quoto

Learn / Library / Brainteasers

Sevens inside sevens

BrainteasersMedium

How many integers from to are divisible by and also have a digit sum divisible by ?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

The digit sum of a number below is at most , so only a few digit sums are possible.

Solution
  1. A number from to has digit sum at most , and has digit sum , so the digit sum must be , or .
  2. Among multiples of with digit sum we find , , , , and , which is numbers.
  3. With digit sum we find , , , , , , , , , and , which is numbers.
  4. With digit sum we find , , and , which is numbers, so the total is .

Answer: