# Questions tagged [factorial]

Involving calculation or other usage of factorials

23 questions
Filter by
Sorted by
Tagged with
94answers
5k views

### The vanilla factorial challenge

Task Given a non-negative integer $n$, evaluate the factorial $n!$. The factorial is defined as follows: $$n!=\begin{cases}1 & n=0\\n\times(n-1)!&n>0\end{cases}$$ Rules All default I/...
9answers
639 views

### Prime Modified Z-Factorials

Let me explain one by one the above terms... We will call $\text{Z-Factorial}(n)$ of a positive integer $n$, $n!$ (i.e. $n$ factorial) without any trailing zeros. So, $\text{Z-Factorial}(30)$...
36answers
3k views

### Reverse factorial function

Given a number n, find x such that x! = n, where both x and n are positive integers. Assume the input n will always be the factorial of a positive integer, so something like n=23 will not be given as ...
18answers
6k views

### Bad factorial joke

Sometimes I make bad jokes... And a bad joke I like to make involves interpreting exclamation marks in sentences as the factorial sign. Task Your task is to write a program that receives a sentence ...
36answers
5k views

### Repeated! Factorials!

Not to be confused with Find the factorial! Introduction The factorial of an integer n can be calculated by $$n!=n\times(n-1)\times(n-2)\times(...)\times2\times1$$...
21answers
2k views