How to use Sterling's approximation with calculator

Click For Summary
The discussion focuses on using Stirling's approximation to calculate the number of ways to distribute 2 indistinguishable particles into 100 distinguishable boxes without sharing. The user attempts to apply the formula ln(n!) = nln(n) - n for both 100! and 98!, but struggles with the final calculation due to calculator limitations. It is noted that calculating 100!/98! directly can simplify the process without needing to compute large factorials. The conversation suggests that using Stirling's formula may not be explicitly required for the solution. Overall, the key point is finding an efficient method to compute the distribution without complex calculations.
leroyjenkens
Messages
615
Reaction score
49

Homework Statement


w!/(w-n)! = number of ways of distributing n* distinguishable particles in w distinguishable states

w = number of distinguishable states
n = number of indistinguishable particles

How many ways are there to put 2 particles in 100 boxes, with no particles sharing a box.

Homework Equations


ln(n!) = nln(n) - n

The Attempt at a Solution



I get ln(n!) = 100ln(100) - 100 = 360.5 and
ln(98!) = 98ln(98) - 98 = 351.3

I need to raise both of those numbers to e to get the final answer, but my calculator can't do that. The final answer is a relatively small answer that a calculator can handle, but getting to that answer is impossible unless you do some intermediate step. That step involves doing something with these numbers before I raise them to e. I can't figure out what that step is. Thanks.
 
Physics news on Phys.org
Well, you don't really need to compute the factorials to compute 100!/98!. Have you been told explicitly to use Stirling's formula?
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
4K
Replies
2
Views
5K