Near-narcissistic number

Logic Level 3

Define F F as a five-digit positive integer with distinct digits such that the cube of the sum of its digits equals to F F itself. Find F F .

Details and Assumptions :

  • No, this is not a Computer Science problem.

Bonus : Find the other solution if the digits may not be distinct.


The answer is 19683.

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.

1 solution

Yash Singhal
Jun 7, 2015

Since F F is a 5 5 digit number with all its digits distinct, the maximum value of the digit sum of F F can be ( 9 + 8 + 7 + 6 + 5 ) = 35 (9+8+7+6+5)=35 .

Since F F is the cube of its digit sum, the maximum value that F F can achieve is 3 5 3 = 42875 35^{3}=42875 . So, our upper bound is 42875 42875 which is obtained by the maximum possible digit sum.

Now, since F F is a 5 5 digit number as well as a perfect cube of an integer, the smallest value that F F can achieve is 2 2 3 = 10648 22^{3}=10648 because this is the smallest 5 5 digit perfect cube. So, the lower bound of the digit sum is 22 22 and the lowest number is 10648 10648 .

Now, we are left with finding F F such that the digit sum of F F lies between 22 22 and 35 35 inclusive and is equal to the cube of the digit sum. Now, we also know that F F lies between 10648 10648 and 42875 42875 inclusive.

Checking these 14 14 cases, we can easily obtain F = 19683 F=19683 when the digit sum is 27 27 .

Bonus: The other solution is 17576 17576 with digit sum 26 26 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...