Why is 0!=1??

Danish Amjad
1 min readDec 10, 2017

--

Why is 0!=1? why I publish this story? so the reason is….
Recently I had an interview & the interviewer asked me to have you ever searched for why is 0!=1? but unfortunate I knew the reason :-D
so what’s the reason of “0” Factorial is equal’s to one….
Let’s start with an example.

1!=1x1=1
2!=2x1=2
3!=3x2x1=6
4!=4x3x2x1=24
& so on….

How to solve this!!!!

Step1:
Start with the reverse order
First, divide 24/4 it becomes 6
Step2:
Second divide 6/3 it becomes 2
Step3:
Third divide 2/2 it becomes 1
Step4:
Fourth divide 1/1 it becomes 1
so finally we get 1 in the end that’s why 0!=1

Thanks for reading this article. Be sure to click ❤ below to recommend this article if you found it helpful. It means a lot to me.

If you need any help then Join me on Twitter, Linkedin, Github and Facebook.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Danish Amjad
Danish Amjad

Written by Danish Amjad

Android Engineer | Kotlin | Java | Open Source Contributor | Technical Writer, ✉️ Dani.amjad12@gmail.com 🔗 https://danishamjad12.github.io

No responses yet

Write a response