Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

a and b are digits in a four-digit natural number 7a5b. If 7a5b is divisible by 18, how many different possible values can "a" have?

share|improve this question
    
If a number is divisible by 18, what two numbers must it be divisible by? A couple of possibiliies, but the obvious should be what? Then use divisibility rules to extrapolate the values. –  Eleven-Eleven Jan 4 at 13:27
    
It should be divisible by 6 and 3. So we should find the possible values of b first then of a. Am I right? –  Ally Jan 4 at 13:29
    
you could use 6 and 3, and you would have the same argument as below. –  Eleven-Eleven Jan 4 at 13:36
    
Generally, coprime numbers must be used. For example, $24$ is divisible by $6$ and $3$, but it isn't divisible by their product, $18$. –  JPLF Jan 4 at 13:51
    
It's okay. From my calculations a= 6,4,2,0,9,7 –  Ally Jan 4 at 13:59

3 Answers 3

up vote 4 down vote accepted

A number is divisible by $18$ iff it's divisible by $2$ and $9$. So, we must have $b \in \{0,2,4,6,8\}$ and $7+a+5+b$ divisible by $9$, since a number is divisible by $9$ iff the sum of its digits is divisible by $9$. I think you can solve it by now.

share|improve this answer

Since it is divisible by $18$, $7a5b$ must be divisible by $9$ and $2$. Using divisibility rules, $$b \text{ must be even}$$ $$7+a+5+b \text{ must be divisible by 9}$$ So if $b$ is even it is of the form $2k$ for some integer $k$. So then $7+a+5+2k=9m$. Now use cases for $b$. For example, when $b=2$, $$7+a+5+2=14+a$$ So $a$ must be 4 since $14+4=18=9\cdot2$. Now, what about $a=4,6,8,10$? You can try them on your own.

share|improve this answer
    
Thanks a lot. I just solved it. –  Ally Jan 4 at 13:47

One way:

$$7a5b=7050+100a+b\equiv 12+10a+b\pmod{18}$$

Clearly, $b$ must be even

and $9$ must divide $12+10a+b=12+10a+b\iff 3+a+b$ must be divisible by $9$

For example,

if $b=0,3+a$ must be divisible by $9\implies a=6$ as $0\le a\le9\iff3\le a+3\le12$

if $b=2,5+a$ must be divisible by $9\implies a=4$

and so on

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.