I have the following question: In general, is $N!$ bigger than $2^N$?
Using the R programming language, I made a plot of these $N!$ vs $2^N$:
library(ggplot2)
library(cowplot)
original_number = c(0:50)
factorials = factorial(original_number)
two_to_the_power = 2 ^ original_number
table = data.frame( original_number,factorials, two_to_the_power)
head(table)
original_number factorials two_to_the_power
1 1 1 2
2 2 2 4
3 3 6 8
4 4 24 16
5 5 120 32
6 6 720 64
g1 = ggplot(table, aes( original_number )) +
geom_line(aes(y = two_to_the_power, colour = " two_to_the_power")) +
geom_line(aes(y = factorials, colour = "factorials")) + ggtitle("Which is Bigger: Factorials or 2^n?")
g2 = ggplot(table, aes( original_number )) +
geom_line(aes(y = log(two_to_the_power), colour = " two_to_the_power")) +
geom_line(aes(y = log(factorials), colour = "factorials")) + ggtitle("Which is Bigger: Factorials or 2^n? (Log Scale)")
plot_grid(g1, g2)
Based on this plot, it seems that $N!$ is initially smaller, bu soon $N!$ becomes far bigger than $2^N$.
My Question: Suppose I did not have a calculator or a computer to plot these graphs - are there any "tricks" in math that could have been used to see which of these is bigger?
