Factorial for large number and its division to another large factorial number

4 views (last 30 days)
Hello everyone,
I have been trying to solve a complicated problem for probability with some permutation rules . Anyway, I am stuck to solve the following formula:
(365!/(365-30)!) / 365 ^ 30
I have used Stirling's formula to solve factorial for a large number but I got nothing. In addition, I have used the bigfactorial function and got answers for each number (365! and 340!). However when I divide it I got inf. or Nan
Please anyone helps me with many thanks.

Accepted Answer

Matt J
Matt J on 7 Sep 2013
Edited: Matt J on 7 Sep 2013
>> prod( (336:365)./365 )
ans =
0.2937

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!