SOLUTION: Adding a three-digit number 5Z7 to 386 gives XY3. If XY3 is divisible by 3, then what is the largest possible value of Z?

Algebra.Com
Question 868631: Adding a three-digit number 5Z7 to 386 gives XY3. If XY3 is divisible by 3, then what is the largest possible value of Z?
Answer by Edwin McCravy(20059)   (Show Source): You can put this solution on YOUR website!

 386
+5Z7
 XY3

The right column adds to 13 so there is 1 to carry to the
middle column, so we put a 1 to carry above it:

  1
 386
+5Z7
 XY3

Adding the second column:

Either there is or there isn't a 1 to carry to the leftmost column.

We consider the possibility that there is no carry to the leftmost column:

Then Z must be 0 and Y must be 9, and X must be 8:

  1
 386
+507
 893

Trouble is, 893 is not divisible by 3.  So this case is eliminated.

So there must be a carry of 1 to the leftmost column:

 11
 386
+5Z7
 XY3

Therefore X can only be 9

 11
 386
+5Z7
 9Y3

The sum XY3 which is 9Y3 must be divisible by 3.  Therefore
its sum of digits 9+Y+3 must be a multiple of 3.

Since the sum of the first and third digits of 9Y3 is 9+3=12,
which is a multiple of 3, Y must also be divisible by 3.
so Y = 0, 3, 6, or 9.

For Z to be as small as possible, Y must be as small as possible:
so Y must be 0.

 11
 386
+5Z7
 903

And so Z must be 1:

 11
 386
+517
 903

So the smallest possible value of Z is 1.

Edwin

RELATED QUESTIONS

Number Theory Adding a three-digit number 5Z7 to 256 gives XY3. IfXY3 is divisible by 3, (answered by ankor@dixie-net.com)
what is the greatest possible value in 3 28n to form a four-digit number divisible by... (answered by Fombitz)
Is this answer correct (xy)3=xy3 If its not coorrect please inform me what should be done (answered by richard1234)
If n! is NOT divisible by 1024, what is the largest possible value of... (answered by Edwin McCravy)
there is a three digit number one digit is prime another is a square number the last one (answered by tommyt3rd)
what is the largest 5 digit number divisible by... (answered by Edwin McCravy)
(xy)3 power =xy3 is this correct and if so... (answered by stanbon)
My son came home with question like this and need to know if there is a formula to solve. (answered by Fombitz)
What is the largest 5-digit number that is divisible by... (answered by rfer)