+ 1

How to find number of a Factorial?

If N! is given. How to find N?

21st Jul 2017, 11:09 AM
Deep chand
Deep chand - avatar
12 Respostas
21st Jul 2017, 1:34 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 4
Saw this late but here's my solution https://code.sololearn.com/cMrWxqZW8Xvp/?ref=app
22nd Jul 2017, 9:09 PM
Garikai
Garikai - avatar
+ 2
use this method and give it a Number 👇 public static void findRoot(int num){ for(int i=1;;++i){ if(num%i==0) num/=i; else if(num==1){ i--; // The Result is : i | the num = i! . System.out.println( i + "!"); break; }else{ System.out.println(" the Number that you Entered is not Factorial of a Number! :."); break; } } https://code.sololearn.com/cYB146T3bsfO/?ref=app
22nd Jul 2017, 6:06 AM
Mahdi sg
Mahdi sg - avatar
+ 1
https://code.sololearn.com/cgD2IkZ3POXK/?ref=app
21st Jul 2017, 11:22 AM
LordGhostX
LordGhostX - avatar
21st Jul 2017, 2:34 PM
Shervin Jarrahi
Shervin Jarrahi - avatar
+ 1
Thank you everyone :')
23rd Jul 2017, 6:19 AM
Deep chand
Deep chand - avatar
+ 1
I was stuck into programming and what I could do was this. https://code.sololearn.com/c02BANSBNA6h/?ref=app
25th Jul 2017, 10:39 AM
Leo
Leo - avatar
17th Nov 2017, 9:41 AM
#RahulVerma
#RahulVerma - avatar
0
I'm at first with programming stuff, but I'm very good at maths! So, what you have to do is to factorize the number given (example: 120=2^(3)*3*5) and suddendly rescue all the hidden factors (example: 2^(3) can be rewrite like 2*2^(2)=2*4 and you have that 120=1*2*3*4*5)
21st Jul 2017, 1:17 PM
Leo
Leo - avatar
0
@Leonardo Can you write a code for that? Real quick, please.
21st Jul 2017, 1:19 PM
Deep chand
Deep chand - avatar
17th Nov 2017, 11:01 AM
Hamza Boudouche