+ + + + ( 1 × 2 × 3 ) + ( 1 × 2 × 4 ) + … + ( 1 × 2 × 1 0 0 ) ( 1 × 3 × 4 ) + ( 1 × 3 × 5 ) + … + ( 1 × 3 × 1 0 0 ) ( 1 × 4 × 5 ) + ( 1 × 4 × 6 ) + … + ( 1 × 4 × 1 0 0 ) … ( 9 8 × 9 9 × 1 0 0 )
Let S denote the value of the sum above. What is the last two digits of S ?
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.
nice approach
I a m g o i n g t o g e n e r a l i z e t h e r e s u l t . C o n s i d e r : 1 . 1 . 1 + 1 . 1 . 2 + 1 . 1 . 3 . . . 1 . 1 . n = 1 . 1 ( 1 + 2 + 3 . . n ) = 1 . 1 . ∑ n 1 . 2 . 1 + 1 . 2 . 2 + 1 . 2 . 3 . . . 1 . 2 . n = 1 . 2 ( 1 + 2 + 3 . . . n ) = 1 . 2 . ∑ n . . . . . . . 1 . n . 1 + 1 . n . 2 + 1 . n . 3 . . . 1 . n . n = 1 . 5 2 ( 1 + 2 + 3 . . . n ) = 1 . n . ∑ n 2 . 1 . 1 + 2 . 1 . 2 + 2 . 1 . 3 . . . 2 . 1 . n = 2 . 1 ( 1 + 2 + 3 . . . n ) = 2 . 1 . ∑ n . . . . . . . . . . . . . . n . n . 1 + n . n . 2 + n . n . 3 . . . n . n . n = n . n . ( 1 + 2 + 3 . . . . n ) = n . n . ∑ n T h e t o t a l s u m a b o v e = N = [ ∑ n ] 3 N o w c o n s i d e r t h e n u m b e r s o f t h e f o r m α α β w h e r e α = { 1 , 2 . . . n } a n d β = { 1 , 2 . . . n } T h e r e a r e 3 n u m b e r s o f t h e a b o v e f o r m g i v i n g t h e s a m e p r o d u c t . T h a t i s 1 . 1 . 2 i s t h e s a m e a s 1 . 2 . 1 a n d 2 . 1 . 1 . T h u s , f r o m N , w e m u s t r e m o v e 3 × M w h e r e M i s n u m b e r s o f t h e f o r m α α β . M = 1 . 1 . 1 + 1 . 1 . 2 . . . . . 1 . 1 . n = 1 2 ∑ n 2 . 2 . 1 + 2 . 2 . 2 . . . . . 2 . 2 . n = 2 2 ∑ n . . . . . . . . . . . n . n . 1 + n . n . 2 . . . . . n . n . n = n 2 ∑ n T h e r e f o r e M = ∑ n 2 . ∑ n W h e n w e t a k e t h i s s u m 3 t i m e s , a l l t h e c u b e s h a v e b e e n s u b t r a c t e d t w o m o r e t i m e s , a n d w e d o n o t w a n t a n y c u b e s i n t h e f i n a l r e s u l t . T o c o m p e n s a t e f o r t h e d e f e c i t , w e a d d 2 . ∑ n 3 T h e r e m a i n i n g n u m b e r s a r e o f t h e f o r m α β γ . S i m i l a r t o t h e p r e v i o u s c a s e , t h e r e a r e 6 n u m b e r s w h i c h g i v e t h e s a m e s u m . i . e . α β γ = α γ β = β α γ = β γ α = γ α β = γ β α S o w e d i v i d e b y 6 . T h u s , f i n a l r e s u l t = 6 1 { N − 3 M + 2 . ∑ n 3 } = 6 1 { [ ∑ n ] 3 − 3 . ∑ n 2 . ∑ n + 2 . ∑ n 3 } = 6 1 { [ 2 n ( n + 1 ) ] 3 − 3 . 6 n ( n + 1 ) ( 2 n + 1 ) . 2 n ( n + 1 ) + 2 . [ 2 n ( n + 1 ) ] 2 } A f t e r f a c t o r i z i n g , w e g e t 4 8 n 2 ( n + 1 ) 2 ( n − 1 ) ( n − 2 ) p u t n = 1 0 0 t o g e t t h e r e s u l t . 4 8 1 0 0 2 ( 1 0 1 ) 2 ( 9 9 ) ( 9 8 ) m o d ( 1 0 0 ) = 2 0 , 6 1 8 , 7 7 1 , 2 5 0 m o d ( 1 0 0 ) = 5 0
correct! thank you for your detailed solution!! +1
Your solution would most likely be better than my solution if we extend this to the 4th, 5th, ... symmetric sums of the integers 1 to 100. Great work!
You should post a harder version of this problem! ahahahahahaa
Thank you. And I didn't think about Newton Sums. Yes, for smaller numbers, your method is better. :D
We can cancel out almost everything modulo 100.
Step 1: Remove all products which include 100.
Step 2: Cancel out each term where no two terms add to 100. To do this we take the value farthest from 50 and flip it to get a complement. e.x. (27 x 36 x 86) cancels with (14 x 27 x 36). If we are given the former, we flip 86 to find the complement since it is farthest from 50. If we are given the latter, we flip 14 since it is farthest from 50. These cancel out since they sum to (86+14)(27)(36)
After this step all remaining terms contain exactly one pair of numbers which add to 100.
Step 3: Cancel out each term where the number other than the pair is not 50. To do this we just flip what this other number is to get a complement term.
After this step we are left with only terms of the form (n x 50 x (100-n)). These are 0 mod 100 when n is even and 50 mod 100 when n is odd. There are 25 cases when n is odd and so our final sum should be 50 mod 100.
Nice technique!
P.S. An alternate way to do steps 2 and 3 is:
If a b c and ( 1 0 0 − c ) ( 1 0 0 − b ) ( 1 0 0 − a ) are two distinct terms in the sum, cancel them out. Then note that the cases where they are not distinct have 1 0 0 − c = a and 1 0 0 − b = b .
This leads into your last paragraph,
After this step we are left with only terms of the form (n x 50 x (100-n)). These are 0 mod 100 when n is even and 50 mod 100 when n is odd. There are 25 cases when n is odd and so our final sum should be 50 mod 100.
Thus sum is 20618771250 and mod 100 gives 50.
It's an interesting problem, being a programmer I wrote this code in Python:
1 2 3 4 5 6 7 8 |
|
Thus sum is 20618771250 and mod 100 gives 50.
Problem Loading...
Note Loading...
Set Loading...
Let f ( x ) denote a monic 1 0 0 th degree polynomial with roots 1 , 2 , 3 , … , 1 0 0
We use the following identities
k = 1 ∑ n k = 2 n ( n + 1 ) , k = 1 ∑ n k 2 = 6 n ( n + 1 ) ( 2 n + 1 ) , k = 1 ∑ n k 3 = ( k = 1 ∑ n k ) 2
Let P k denote the sum of k th powers of roots of f ( x )
Then we have
P 1 = 1 + 2 + … + 1 0 0 = 2 1 0 0 ( 1 0 0 + 1 ) = 5 0 5 0
P 2 = 1 2 + 2 3 … + 1 0 0 2 = 6 1 0 0 ( 1 0 0 + 1 ) ( 2 ( 1 0 0 ) + 1 ) = 3 3 8 3 5 0
P 3 = 1 3 + 2 3 + … + 1 0 0 3 = P 1 2 = 5 0 5 0 2
Let S n denote the n th symmetric sum of numbers 1 , 2 , 3 , … , 1 0 0
Then S 1 = P 1 = 5 0 5 0 , S 2 = 2 1 ( S 1 2 − P 2 ) = 1 2 5 8 2 0 7 5
And lastly S = S 3 , apply this identity :
P 3 − 3 S 3 = S 1 3 − 3 S 1 S 2 ⇒ S 3 = 3 1 ( P 3 − S 1 3 + 3 S 1 S 2 ) ≡ 5 0