Arithmetic · real student question

Find a three-digit number A such that the digit sum of A is divisible by 6, the digit sum of A + 3 is divisible by 6, and A is greater than 350 and less than 400.

Question

Find a three-digit number AA with all three properties:

  • the sum of the digits of AA is divisible by 66;
  • the sum of the digits of A+3A+3 is divisible by 66;
  • 350<A<400350<A<400.

Give any one such number.

Step-by-step solution

  1. Fix the form of the number. From 350<A<400350<A<400 the hundreds digit is 33, so A=3abA=\overline{3ab} with a{5,6,7,8,9}a\in\{5,6,7,8,9\} and digit sum S=3+a+bS=3+a+b.

  2. Work out how adding 3 changes the digit sum. Two cases only:

    • No carry (b6b\le 6): the units digit gains 33, so SS+3S\to S+3.
    • Carry (b7b\ge 7): the units digit drops by 77 and the tens digit gains 11, so SS+310+1=S6S\to S+3-10+1=S-6.
  3. Rule out the no-carry case. If 6S6\mid S then S+3S+3 leaves remainder 33 on division by 66, never 00. So a carry is compulsory and

    b{7,8,9}.b\in\{7,8,9\}.

    In the carry case SS6S\to S-6, which is automatically a multiple of 66 whenever SS is — so the second condition becomes free.

  4. Impose the digit-sum condition. Require 3+a+b0(mod6)3+a+b\equiv 0\pmod 6 with a{5,,9}a\in\{5,\ldots,9\} and b{7,8,9}b\in\{7,8,9\}. The pairs that work are (a,b)=(6,9),(7,8),(8,7)(a,b)=(6,9),(7,8),(8,7), each giving S=18S=18.

  5. List and verify the answers.

    3693+6+9=18,3723+7+2=12 369\to 3+6+9=18,\quad 372\to 3+7+2=12\ \checkmark
    37818,38112 378\to 18,\quad 381\to 12\ \checkmark
    38718,39012 387\to 18,\quad 390\to 12\ \checkmark

    A scan of every integer from 351351 to 399399 confirms there are no others.

Answer

A{369, 378, 387}A\in\{369,\ 378,\ 387\}

Need to solve a different problem like this? Open the solver →