RMO Practice Problems - Number theory #1

Find the sum of all integers n n such that n ! + 5 n! +5 is a perfect cube.

Details and Assumptions:

  • n ! = 1.2.3..... n n! = 1.2.3.....n .

Try this set RMO Practice Problems


The answer is 5.

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.

5 solutions

Chew-Seong Cheong
Sep 25, 2015

We note that there is no n ! + 5 n!+5 a perfect cube for n < 5 n<5 . And for n 5 n \ge 5 , n ! n! has at least a trailing zero, then the last digit of n ! + 5 n!+5 is 5 5 . And we know that the perfect cube must end with 25 25 . Since, n ! n! has at least two tailing zeros for n 10 n\ge 10 , then the last two digits of n ! + 5 n!+5 are 05 05 , therefore, 4 < n < 10 4 < n < 10 . For 4 < n < 10 4 < n<10 , there are only three n ! + 5 n!+5 end with 25 25 ; 5 ! + 5 = 125 5!+5=125 , 6 ! + 5 = 725 6!+5 = 725 and 8 ! + 5 = 40325 8!+5 = 40325 and only one n ! + 5 = 125 n!+5=125 is a perfect cube. Therefore the answer is 5 \boxed{5} .

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

Aman thegreat - 2 years, 11 months ago

Log in to reply

Just work out the numbers n ! + 5 = 6 , 7 , 11 , 29 n!+5=6, 7, 11, 29 for n = 1 , 2 , 3 , 4 n=1, 2, 3, 4 .

Chew-Seong Cheong - 2 years, 11 months ago
Patrick Corn
Sep 25, 2015

If n n is at least 7 7 , then n ! + 5 5 n!+5 \equiv 5 mod 7 7 , but the only cubes mod 7 7 are 0 , 1 , 6 0,1,6 , so no such n n work. It's easy to check the values of n n less than 7 7 . The only one that works is n = 5 n = \fbox{5} .

You only need to check all n n less than 6 6 (instead of 7 7 ) if you use mod 9 9 .

mathh mathh - 5 years, 8 months ago

Same solution! Similar to Brocard's problem .

Nihar Mahajan - 5 years, 8 months ago

Nice solution! Similar approach :)

Mehul Arora - 5 years, 8 months ago

worked with mod8

Dev Sharma - 5 years, 8 months ago

Log in to reply

How? 5 is a cube mod 8.

Patrick Corn - 5 years, 8 months ago
Alan Yan
Sep 25, 2015

Alternatively, you can use m o d 9 mod 9 . Perfect cubes must be 1 , 0 , 1 -1, 0 , 1 . Therefore, if n ! 0 (mod 9) n! \equiv 0 \text{ (mod 9)} , there are no solutions. Thus, we only need to check n = 5 , 4 , 3 , 2 , 1 n = 5 , 4, 3, 2, 1 and n = 5 n = \boxed{5} is the only one that works.

Akshay Yadav
Sep 26, 2015

You only need to check up to 9,

Because n ! + 5 n!+5 , where n > 9 n>9 ,

Then it will end with last digits 805 , 605 , . . . , 005 805,605,...,005 ,

For cube of a number ending with 5 it must have its last digits as 625 625 or 125 125 ,

Clearly,

n = 5 n=\boxed{5}

Samarth Hegde
May 26, 2018

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

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...