Find the sum of all integers n such that n ! + 5 is a perfect cube.
Details and Assumptions:
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.
Sir, did you get there is no perfect cube for n<5 by hit and trial method or is there a logical explanation to it
Log in to reply
Just work out the numbers n ! + 5 = 6 , 7 , 1 1 , 2 9 for n = 1 , 2 , 3 , 4 .
If n is at least 7 , then n ! + 5 ≡ 5 mod 7 , but the only cubes mod 7 are 0 , 1 , 6 , so no such n work. It's easy to check the values of n less than 7 . The only one that works is n = 5 .
You only need to check all n less than 6 (instead of 7 ) if you use mod 9 .
Same solution! Similar to Brocard's problem .
Nice solution! Similar approach :)
worked with mod8
Alternatively, you can use m o d 9 . Perfect cubes must be − 1 , 0 , 1 . Therefore, if n ! ≡ 0 (mod 9) , there are no solutions. Thus, we only need to check n = 5 , 4 , 3 , 2 , 1 and n = 5 is the only one that works.
You only need to check up to 9,
Because n ! + 5 , where n > 9 ,
Then it will end with last digits 8 0 5 , 6 0 5 , . . . , 0 0 5 ,
For cube of a number ending with 5 it must have its last digits as 6 2 5 or 1 2 5 ,
Clearly,
n = 5
Well I checked for divisibility by 7... Usually Factorials either have remainders 1,6,4,0 (mod 7) ..We also notice that all numbers after 7 has 0(mod7)... So when we solve n! +5 (mod7) we get n! = 1,3,6,2(mod 7) So we notice that number is less than 7.. Then we try all numbers from 1-6 and get answer as 5
Problem Loading...
Note Loading...
Set Loading...
We note that there is no n ! + 5 a perfect cube for n < 5 . And for n ≥ 5 , n ! has at least a trailing zero, then the last digit of n ! + 5 is 5 . And we know that the perfect cube must end with 2 5 . Since, n ! has at least two tailing zeros for n ≥ 1 0 , then the last two digits of n ! + 5 are 0 5 , therefore, 4 < n < 1 0 . For 4 < n < 1 0 , there are only three n ! + 5 end with 2 5 ; 5 ! + 5 = 1 2 5 , 6 ! + 5 = 7 2 5 and 8 ! + 5 = 4 0 3 2 5 and only one n ! + 5 = 1 2 5 is a perfect cube. Therefore the answer is 5 .