Sum of Palindromes

What is the sum of all 4-digit palindromes ?

Clarification : Palindromes are the number which are read the same both forward and backward. For eg, 343 and 7887 are palindromes while 123 and 998 are not.


The answer is 495000.

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

First, we shall find the number of 4 digit palindromes, which is 90(9 numbers for first and last digit, 10 numbers for second and third digit). Now, we can assume that each digit occurs as frequently as every other digit. Hence, for the thousands and ones digit, the "average" digit should be 5 (from 1 to 9). For the hundreds and tens digit, the "average" digit should be 4.5 (from 0 to 9). Thus, we get the average of all these palindromes, which is 5500. Then, multiplying by 90, we get the answer 495000.

  • 495000 495000

Rishik Jain - 5 years, 4 months ago

Log in to reply

Ok I've edited my answer.

A Former Brilliant Member - 5 years, 4 months ago

Sir, I was trying to answer your old logic level 4 question on Google but could not get submitted. And I have got a surely right answer. Please reply me as soon as possible. I will humbly accept your advice

Kamalpreet Singh - 5 years, 4 months ago

Log in to reply

Is it my question or Jerry's?

Arulx Z - 5 years, 4 months ago
Solomon Olayta
Jan 17, 2016

For each nonzero digit x, a 4-digit palindrome whose first digit is x are x00x,x11x,x22x,...x99x. Adding these numbers using each digit's place value, we will have x 00 x + x 11 x + . . . + x 99 x = 1 0 3 ( 10 x ) + 10 x + 1 0 2 ( 1 + 2 + . . . + 9 ) + 10 ( 1 + 2 + . . . + 9 ) = 1 0 4 x + 10 x + 100 ( 45 ) + 10 ( 45 ) = 1 0 4 x + 10 x + 44550 x00x+x11x+...+x99x=10^{3}(10x)+10x+10^{2}(1+2+...+9)+10(1+2+...+9)=10^{4}x+10x+100(45)+10(45)=10^{4}x+10x+44550

Ranging x from 1 to 9, then the sum of all 4-digit palindrome is given by x = 1 9 1 0 3 ( 10 x ) + 10 x + 1 0 2 ( 1 + 2 + . . + 9 ) + 10 ( 1 + 2 + . . . + 9 ) = x = 1 9 1 0 4 x + 10 x + 44550 = 495000 \sum_{x=1}^{9}{10^{3}(10x)+10x+10^{2}(1+2+..+9)+10(1+2+...+9)}=\sum_{x=1}^{9}{10^{4}x+10x+44550=495000} .

Brian Strauch
Jan 17, 2016

Write all of them out, then add them up.

Adding 90 numbers is a pretty tedious task. You can use the fact that the numbers are periodic. Check Jerry's solution for a better way.

Arulx Z - 5 years, 4 months ago
Anubhav Tyagi
Feb 12, 2016

Simpler... very very easy problem :(

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...