Skip to content

Instantly share code, notes, and snippets.

@colmmacc
Last active May 12, 2016 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colmmacc/b7dd13db41745d8fe6a08de78d3e61fe to your computer and use it in GitHub Desktop.
Save colmmacc/b7dd13db41745d8fe6a08de78d3e61fe to your computer and use it in GitHub Desktop.
Factorial problem

Problem statement

x! = (7!)! / 7!  # solve for x

Solution

Let 7! be N. Re-express as

x! = N! / N

that's the same as

x! = (N - 1)!

so

x  = (N - 1)

ergo

x = 7! - 1

which is

5039
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment