E

The triangular numbers are of the form T n = n ( n + 1 ) 2 T_n = \frac{n(n+1) } { 2} , where n n is a positive integer. How many possibilities are there for the last digit of T n T_n ?


The answer is 6.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

4 solutions

Albert Yue
Oct 20, 2013

Notice that after every twenty triangular numbers, the residues modulo 10 cycle. This is because T 0 = 0 T_0=0 , and T 10 5 ( m o d 10 ) T_{10} \equiv 5 \pmod{10} . Afterwards, we again adding 1 , 2 , . . . , 0 ( m o d 10 ) 1, 2, ..., 0 \pmod{10} , but start at 5 instead of 0. Thus, T n T_n has a cycle of 20 ( m o d 10 ) 20 \pmod{10} . Listing them out, 0 , 1 , 3 , 6 , 0 , 5 , 1 , 8 , 6 , 5 , 5 , 6 , 8 , 1 , 5 , 0 , 6 , 3 , 1 , 0 , 0, 1, 3, 6, 0, 5, 1, 8, 6, 5, 5, 6, 8, 1, 5, 0, 6, 3, 1, 0, giving an answer of 6 \boxed{6} possible last digits.

Moderator note:

How would you show that the last digits must be periodic?

That's much better than my method. Good job.

Ryan Wood - 7 years, 7 months ago

WHY TO FIND MODULO 10 ?

Goutam Narayan - 7 years, 7 months ago

Log in to reply

Do you mean "Why did you use modulo 10" or "How do you find modulo 10." The latter is very simple, it's just the remainder when divided by ten, or the last digit. As for the former, I used mod 10 because it's a lot more convenient as the numbers increase since all the really matters is the last digit.

Albert Yue - 7 years, 7 months ago

nice one

Harish Kumar - 7 years, 7 months ago

right

resha piley - 7 years, 7 months ago

Can you explain why "This is because T 0 0 , T 10 5 ( m o d 10 ) T_0 \equiv 0, T_{10} \equiv 5 \pmod{10} is an explanation for "after every twenty triangular numbers, the residues modulo 10 cycle? How do you know that T 23 T 3 ( m o d 10 ) T_{23} \equiv T_3 \pmod{10} ?

Calvin Lin Staff - 7 years, 7 months ago

Log in to reply

Suppose n a ( m o d 20 ) n \equiv a (mod 20) and ( n + 1 ) b ( m o d 20 ) (n+1) \equiv b (mod 20)

Let n = 20 m + a n = 20m + a and n + 1 = 20 n + b n+1 = 20n + b T n = ( n ) ( n + 1 2 = ( 20 m + a ) ( 20 n + b ) 2 = 400 m n + 20 m b + 20 n a + a b 2 = 10 ( 40 m n + 2 m b + 2 n a ) + a b 2 = 10 ( 20 m n + m b + m a ) + a b 2 a b 2 = T a ( m o d 10 ) T_{n} = \frac{(n)(n+1}{2} = \frac{(20m + a)(20n + b)}{2} = \frac{400mn + 20mb + 20na + ab}{2} = \frac{10(40mn + 2mb + 2na) + ab}{2} = 10(20mn + mb + ma) + \frac{ab}{2} \equiv \frac{ab}{2} = T_a(mod 10)

Wei Jie Tan - 7 years, 7 months ago

Log in to reply

No. For example, 11 1 ( m o d 10 ) , 12 2 ( m o d 10 ) 11 \equiv 1 \pmod{10}, 12 \equiv 2 \pmod{10} , but we have 1 1 × 2 2 ( m o d 10 ) 1 \equiv \frac{1\times 2 } { 2} \pmod{10} while 6 66 11 × 12 2 ( m o d 10 ) 6 \equiv 66 \equiv \frac{11 \times 12 } { 2} \pmod{10} .

You can't simply divide in a modulus statement.

Note also that the period is 20, and not 10.

Calvin Lin Staff - 7 years, 7 months ago

Log in to reply

@Calvin Lin Oh I see where I got wrong. I typed 20 into 10 :) Am I right now?

Wei Jie Tan - 7 years, 7 months ago

Log in to reply

@Wei Jie Tan Yes, looks much better now.

Calvin Lin Staff - 7 years, 7 months ago

Ok, so first note that in mod 10, we are essentially adding, 1, 2, 3, ..., 9, 0, 1, 2, ..., 9, 0, etc. and that T 0 = 0 T_0=0 . So if we find a T n 0 ( m o d 10 ) T_n \equiv 0 \pmod{10} s.t., n 0 ( m o d 10 ) n \equiv 0 \pmod{10} , then it would begin a periodic cycle, starting again with the addition of 1, 2, 3, ...9, 0, 1, 2, ..., etc. Now 1 + 2 + + 9 + 0 5 ( m o d 10 ) 1+2+ \cdots +9+0 \equiv 5 \pmod{10} , so we require two sums of 0 to 9 to reach the start of a new cycle ( 5 + 5 0 ( m o d 10 ) 5+5 \equiv 0 \pmod{10} ).

Albert Yue - 7 years, 7 months ago
Mohith Manohara
Oct 20, 2013

1st term: 1

2nd term: adding 2 to get three

3rd term: adding 3 to get 6

And so on.

The last digits follow a pattern as such: 1 , 3 , 6 , 0 , 5 , 1 , 8 , 6 , 5 , 5 , 6 , 8 , 1 , 5 , 0 , 6 , 3 , 1 , 0 , 0 1,3,6,0,5,1,8,6,5,5,6,8,1,5,0,6,3,1,0,0

After which you will be adding 1 to get the same pattern.

0 , 1 , 3 , 5 , 6 , 8 0,1,3,5,6,8 is 6 \boxed{6} numbers.

How would you demonstrate that such a pattern must exist?

Calvin Lin Staff - 7 years, 7 months ago

how to find the mod? i am unable to understand the problem actually.

Siba Smarak Panigrahi - 7 years, 7 months ago

nice one

Harish Kumar - 7 years, 7 months ago
Elijah Tan
Oct 21, 2013

If you write out the first 20 terms of the triangular numbers, you realise that the last digit would form the cycle of: 0, 1, 3, 6, 0, 5, 1, 8, 6, 5, 5, 6, 8, 1, 5, 0, 6, 3, 1, 0...... This would mean that the cycle actually repeats and thus 6 different numbers appear.

How would you demonstrate that such a pattern must exist?

Calvin Lin Staff - 7 years, 7 months ago

Since n(n+1) is a product of two consecutive numbers then the last digit of n must be 1 and the last digit of n+1 must be 2 or the last digit of n must be 2 and the last digit of n+1 must be 3 and so on................the last digit of must be 9 and the last digit of n+1 must be 0. Let's multiply: 1 2=2 2 3=6 3 4=12 4 5=20 5 6=30 6 7=42 7 8=56 8 9=72 9 10=90 10 11=110 11 12=132............ the last digit of a product is the last digit of the product of the last digits of these two consecutive numbers for example 23 24=552 beacuse the last digit of 3*4=12 is 2.Thats why the last digit of n(n+1) can be 2,6 or 0. since n(n+1) is even then 2 is a divisor of this number. lets consider when n(n+1) ends with 2 then n(n+1)/2 must end with 1 or 6 . lets consider when n(n+1) ends with 6 then n(n+1)/2 must end with 3 or 8. lets consider when n(n+1)ends with 0 then n(n+1)/2 must end with 0 or 5 so we have 6 possibilities for the last digit of Tn.

Lorenc Bushi - 7 years, 7 months ago

thank you lorence

Siba Smarak Panigrahi - 7 years, 7 months ago
Sudhakar Verma
Nov 5, 2013

0,1,3,5,6,8 are the only last digits in a triangular number

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...