Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
#2: Post edited by user avatar Snoopy‭ · 2024-08-11T16:31:13Z (2 months ago)
  • If unfamiliar with Stirling's formula, one can still get a rough approximation for $n!$ using elementary calculations.
  • The basic idea is to consider $\log(n!)$, which converts products into a sum that can then be analyzed using integrals. Observe that:
  • $$
  • \log(n!) = \sum_{m=1}^n\log m
  • $$
  • This sum is a Riemann sum approximation to the integral $\displaystyle \int_1^n\log(x)\ dx$:
  • $$
  • \int_1^n\log(x)\ dx \le \sum_{m=1}^n\log m \le \log(n) + \int_1^n\log(x)\ dx
  • $$
  • By finding an antiderivative for $\log(x)$ and applying the fundamental theorem of calculus, and then rearranging, one gets:
  • $$
  • en^ne^{-n} \le n! \le en \cdot n^n e^{-n}
  • $$
  • This leads to:
  • $$
  • \frac{n^n}{n!}e^{-n} \ge \frac{1}{en}
  • $$
  • Given the divergence of the harmonic series and comparison test, we can conclude that the series diverges.
  • If unfamiliar with Stirling's formula, one can still get a rough approximation for $n!$ using elementary calculations.
  • The basic idea is to consider $\log(n!)$, which converts products into a sum that can then be analyzed using integrals. Observe that:
  • $$
  • \log(n!) = \sum_{m=1}^n\log m
  • $$
  • This sum is a Riemann sum approximation to the integral $\displaystyle \int_1^n\log(x)\ dx$:
  • $$
  • \int_1^n\log(x)\ dx \le \sum_{m=1}^n\log m \le \log(n) + \int_1^n\log(x)\ dx
  • $$
  • By finding an antiderivative for $\log(x)$ and applying the fundamental theorem of calculus, and then rearranging, one gets:
  • $$
  • en^ne^{-n} \le n! \le en \cdot n^n e^{-n}\tag{*}
  • $$
  • This leads to:
  • $$
  • \frac{n^n}{n!}e^{-n} \ge \frac{1}{en}
  • $$
  • Given the divergence of the harmonic series and comparison test, we can conclude that the series diverges.
  • **Note**: the lower bound for $n!$ is unnecessary for this problem. Stirling's formula shows that $n!$ actually lies roughly at the [geometric mean](https://en.wikipedia.org/wiki/Geometric_mean) of the two bounds in (*).
#1: Initial revision by user avatar Snoopy‭ · 2024-08-11T16:24:56Z (2 months ago)
If unfamiliar with Stirling's formula, one can still get a rough approximation for $n!$ using elementary calculations.

The basic idea is to consider $\log(n!)$, which converts products into a sum that can then be analyzed using integrals. Observe that:
$$
\log(n!) = \sum_{m=1}^n\log m
$$
This sum is a Riemann sum approximation to the integral $\displaystyle \int_1^n\log(x)\ dx$:
$$
\int_1^n\log(x)\ dx \le \sum_{m=1}^n\log m \le \log(n) + \int_1^n\log(x)\ dx
$$
By finding an antiderivative for $\log(x)$ and applying the fundamental theorem of calculus, and then rearranging, one gets:
$$
en^ne^{-n} \le n! \le en \cdot n^n e^{-n}
$$
This leads to:
$$
\frac{n^n}{n!}e^{-n} \ge \frac{1}{en}
$$
Given the divergence of the harmonic series and comparison test, we can conclude that the series diverges.