Units Digit of n: Is it Greater than 4?

  • Thread starter cepheid
  • Start date
  • Tags
    Arithmetic
In summary: But we can still use the same technique to reduce 23 to something more manageable.23 == 3 (mod 10), so 23^62 == 3^62 (mod 10).Now we are back to something more manageable. The last digit of 3^n follows a pattern (1, 3, 9, 7, 1, 3, 9, 7,...), so we just need to find the remainder when n is divided by 4.62 / 4 = 15 remainder 2, so the last digit of 3^62 is 9. Therefore, the last digit of 23
  • #1
cepheid
Staff Emeritus
Science Advisor
Gold Member
5,199
38
n = (28)^3

which is greater:

the units digit of n

OR

4?

How does one go about *computing* the units digit of n?
 
Mathematics news on Phys.org
  • #2
the unit's digit is the digit in the one's place on the number.

so 38 has unit digit 8, 386784747 has unit digit of 7, etc...
 
  • #3
I know what the units digit is. I don't know how to compute 28^3 in my head, or whether there is some way of determining the units digit of 28^3 without actually computing it.
 
  • #4
Edit, actually I do know how to compute 28^3 in my head. With great difficulty, I got 21 952, which turned out to be correct. But I had a lot of trouble remembering my intermediate results. I really don't think this is the point. Surely the question is meant to be answerable without this mental computation.
 
  • #5
28 = 7*4

7^3 = 7*49 -> this number has 3 in the unit digit. 4^3 = 4*16 -> this one has a 4. 4*3 = 12, hence 28^3 ends with a 2.
 
Last edited:
  • #6
That's the *general strategy*, then? Factor the number.

EDIT: I think arithmetic is my least favourite branch of math.
 
  • #7
cepheid said:
That's the *general strategy*, then? Factor the number.

There's an even simpler way: the unit digit in 28 is 8, 8^3 = 8*64 - > this ends with a 2. This said, 28^3 ends with a 2.
 
  • #8
Werg22: There's an even simpler way: the unit digit in 28 is 8, 8^3 = 8*64 - > this ends with a 2. This said, 28^3 ends with a 2.

We look at this modulo 10, 28==8. On the other hand we can also use 8==-2 Mod 10, so all we have to do is look at (-2)^3=-8==2 Mod 10, and we are done!

This way helps because suppose the problem was (7598)^10. That matter reduces to (-2)^10 = 64 == 4 Mod 10.
 
Last edited:
  • #9
Just to explain what is going on to the OP:

any whole number X can be written as 10*Y + Z for some Z in the range 0 to 9, Z being the 'units', as you know.

If you raise (10Y+Z) to any power, the only contribution to the units is from the power of Z.

Robert chose to decompose X with Z in a different range because it made the maths a little easier.

Exercise - find the unit digit of 99 raised to an even power and an odd power.
 
  • #10
Okay, modular arithmetic is a subject that, for whatever reason, is missing from my repertoire. So, I had a look at the articles on modular arithmetic at both Wikipedia and MathWorld. I got the basic idea of it, but unfortunately I have no knowledge of number theory or abstract algebra, so once they start spouting off about groups and rings, I'm lost:

robert Ihnot said:
Werg22: There's an even simpler way: the unit digit in 28 is 8, 8^3 = 8*64 - > this ends with a 2. This said, 28^3 ends with a 2.

Right, and we need only consider the 8 in 28, for reasons explained by matt grime. This method makes perfect sense to me.

robert Ihnot said:
We look at this modulo 10, 28==8. On the other hand we can also use 8==-2 Mod 10, so all we have to do is look at (-2)^3=-8==2 Mod 10, and we are done!

What I don't understand about this method is how it is useful/allowable to express the number as something (mod 10). What I mean is that you express the number as something (mod 10), THEN you perform the operation on it (cubing in this case), then you get a result that you express as something else (mod 10), and somehow that is a valid answer. I don't get it. Something (mod 10) doesn't correspond to a unique integer, but to many different ones. So how do you know you've got the right answer once you start playing around with mod 10?

robert Ihnot said:
This way helps because suppose the problem was (7598)^10. That matter reduces to (-2)^10 = 64 == 4 Mod 10.

Doesn't (-2)^10 = 1024 ?
 
  • #11
That last sentence indicates you don't understand what 'mod 10' means at all. Try to link the things I said to this.
 
  • #12
Umm, so what what about the second last paragraph? Can anyone address the question I was asking?

matt grime said:
That last sentence indicates you don't understand what 'mod 10' means at all.

I thought I did. I mean, I understood it well enough to adequately explain the statements made by robert Ihnot:

1. 28 == 8 (mod 10).

Right, well this made sense to me because 28 is 8 above 20, which is two cycles of 10, and in modular arithmetic, if you go through any whole number of cycles of the modulus, you end up right back where you started, i.e. 20 == 0 (mod 10)

2. 8 == -2 (mod 10)

Well this makes sense to me by the same reasoning as above. 8 is 2 less than 10.

3. (-2)^10 = 64

Now THIS is the statement of robert Inhot that I did not understand...it does not make sense to me in ANY form of arithmetic.
 
  • #13
cepheid said:
3. (-2)^10 = 64

Now THIS is the statement of robert Inhot that I did not understand...it does not make sense to me in ANY form of arithmetic.

I think that was a mistake becaue you would have (-2)^10=1024==4(mod 10)
 
  • #14
d_leet said:
I think that was a mistake becaue you would have (-2)^10=1024==4(mod 10)

Great! Now that that has been established, can anyone help me out with my question? (post 10).
 
  • #15
cepheid: Great! Now that that has been established, can anyone help me out with my question? i.e.: Then you get a result that you express as something else (mod 10), and somehow that is a valid answer. I don't get it. Something (mod 10) doesn't correspond to a unique integer, but to many different ones. So how do you know you've got the right answer once you start playing around with mod 10?

I did make a mistake on that, sorry! Certainly (-2)^10 = 1024, and the last digit is 4, which is what we are looking for.

Now if we have to find last digit of 7598^9, it certainly helps to just consider 8^9 = 134217728 ==8 Mod 10. However for simpliticy of calculation we could use (-2)^9 == -512. Now that is -500 +-10+-2. So dropping the 10 and 100s it gives us -2 Mod 10 ==8 Mod 10.

Now yours is a good question. The answer is the last digit for our purposes is only going to be from 0 to 9 and is not a negative number. So we have -2==8 Mod 10. Using a negative number for calculation was a trick to reduce the difficulity of the calculation. From the standpoint of Modulo arithmetic we are using just a representation Modulo 10. Thus 8 ==28==208, or 8==-2 ==-102==-512 Modulo 10. We could have used any representation we wanted, but obviously -2 is the smallest one.

PS: Is interesting to see 7598^9, what the last two digits are. Suppose we want to carry this modulo 100 to get two digits. (7598)^9==98^9. ==(-2 )^9 Mod 100 ==-512 Mod 100 ==-12 ==100-12 ==88 Mod 100. So the last two digits are both 8.
 
Last edited:
  • #16
cepheid said:
Great! Now that that has been established, can anyone help me out with my question? (post 10).

Hi cepheid, here's a few really simple exercises you should do to help your understanding of modulo arithmetic. Take the time to work though these and prove them for yourself (they're not difficult) and I guarantee that you will then fully understand all of the methods given above.

1. Start with the following property of modulo n as given.

a = (a mod n) + k n , for some integer k

2. Prove that with modulo addition that taking modulo of any/all the arguments before adding makes no change to the result. That is,

(a + b) mod n = (a mod n + b mod n) mod n

3. Use the above result to prove that with modulo multiplication that taking modulo of any/all the arguments before multiplying makes no change to the result. That is,

(a b) mod n = ((a mod n) (b mod n)) mod n

4. Use the above result to prove that with modulo exponentiation that taking modulo of the base (not the exponent) before exponentiating makes no change to the result. That is,

(a^b) mod n = ((a mod n)^b) mod n

Hope this helps.
 
Last edited:

1. What is the significance of the units digit in a number?

The units digit is the rightmost digit in any number and represents its value in the ones place. It is important because it can affect the overall value and properties of a number, such as its divisibility and place in a sequence.

2. How do you determine if the units digit of a number is greater than 4?

To determine if the units digit of a number is greater than 4, you simply look at the rightmost digit. If it is 5, 6, 7, 8, or 9, then the units digit is greater than 4. If it is 0, 1, 2, 3, or 4, then the units digit is less than or equal to 4.

3. Can the units digit of a number be negative?

No, the units digit of a number cannot be negative. The units digit represents the value in the ones place, which can only be a positive number. Negative numbers have a units digit of 0.

4. What is the probability of the units digit being greater than 4 in a randomly generated number?

The probability of the units digit being greater than 4 in a randomly generated number is 5 out of 10, or 50%. This is because there are 5 numbers (5, 6, 7, 8, 9) that are greater than 4, and there are a total of 10 possible digits (0-9).

5. How does the units digit help in determining divisibility by certain numbers?

The units digit can help determine divisibility by certain numbers because it is the last digit in a number and can give information about the overall value. For example, if the units digit is 0 or 5, the number is divisible by 5. If the units digit is even (0, 2, 4, 6, 8), the number is divisible by 2. This can be helpful in quickly determining the divisibility of a number without having to perform the full division calculation.

Similar threads

  • General Math
Replies
3
Views
992
  • General Math
Replies
1
Views
265
Replies
4
Views
2K
  • General Math
Replies
2
Views
1K
  • Precalculus Mathematics Homework Help
Replies
1
Views
917
  • General Math
Replies
1
Views
1K
Replies
2
Views
979
  • General Math
Replies
7
Views
428
Replies
3
Views
1K
Replies
5
Views
2K
Back
Top