Crazy palindrome

I call a palindrome crazy if it is a prime and has an even number of digits.

If m m is the sum of all crazy palindromes, enter your answer as m m

Note if no such palindrome exists, enter 37 37


The answer is 11.

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.

3 solutions

Vedant Saini
Mar 7, 2019

Let the number be x 1 x 2 x 3 . . . x n x n . . . x 3 x 2 x 1 x_1x_2x_3...x_{n}x_{n}...x_3x_2x_1

This number is divisible by 11 because the sum of alternating digits is the same.

Also, the number is prime which implies that the number must be 11 \boxed{11}

Jesse Li
Mar 6, 2019

The divisibility rule of 11 is that the sum of alternating digits, starting with the first, minus the sum of the other digits, gives a result that’s divisible by 11.

Let’s consider a palindrome a b b a abba . It’s divisible by 11 because a b + b a = 0 a-b+b-a=0 . 0 is divisible by 11.

The same applies to all other crazy palindromes, EXCEPT for 11 itself, which is prime.

Therefore, the answer is 11 \boxed{11} .

Mr. India
Mar 6, 2019

Let's consider a crazy palindrome of 4 digits a b b a abba

a b b a = 1001 a + 110 b = 11 ( 91 a + 20 b ) abba=1001a+110b=11(91a+20b)

So,it isn't prime as it is divisible by 11

6 digits : a b c c b a abccba

a b c c b a = 100001 a + 1001 b + 11 c = 11 ( 991 a + 91 b + c ) abccba=100001a+1001b+11c=11(991a+91b+c)

It is also not prime

Same holds true for other even numbers greater than 2 because of divisibility rule of 11 .

2 digits : a a aa

a a = 11 a aa=11a , when a = 1 a=1 we get 11 11 which is prime

So m = 11 \boxed{m=11}

Surprisingly, it is the only crazy prime in any base

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...