# Factorial equations issues

**URL:** <https://community.wolfram.com/t/factorial-equations-issues/8882>\
**Category:** Questions\
**Tags:** equation-solving\
**Created:** [July 9, 2016, 5:47am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882 "2016-07-09T05:47:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 5:47am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/1 "2016-07-09T05:47:40Z")

</div>

A very simple equation: x!=\frac{(7!)!}{7!}

It’s easy to find the solution:

```
x = 7! - 1 = 5039

```

I used Mathematica to solve this equation:

```
Solve[x! == (7!)!/7!, x]
Reduce[x! == (7!)!/7!, x]

```

No one of these functions gives the solution!

Can someone comment this strange?

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 5:51am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/2 "2016-07-09T05:51:14Z")

</div>

> [@Inverse Of Gamma Function?](https://wolfram.discourse.group/t/8846/1):
>
> Exact Inverse of (gamma function) = ? --------------\> for example: Exact Inverse of (?x) = x²

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 6:04am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/3 "2016-07-09T06:04:34Z")

</div>

???

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 6:26am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/4 "2016-07-09T06:26:10Z")

</div>

u can use this formula:

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 6:38am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/5 "2016-07-09T06:38:47Z")

</div>

Or this formula:

floor(3/4+e^(1+ProductLog(-(1+log((2 ?)/x^2))/(2 e))))

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 6:45am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/6 "2016-07-09T06:45:44Z")

</div>

Dear Mohamad,

Thank you for your comments!

But my question is more deep… Mathematica is aimed for different users, including children. Can you imagine their reactions when such a powerful system as Mathematica can’t solve a very simple problem?

What are the real issues which don’t permit Mathematica to solve such problems?

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 7:36am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/7 "2016-07-09T07:36:13Z")

</div>

You’re welcome. well, I think the Problem isn’t simple. we only write: solve(x!=a) but the problem is: there is not an standard mathematical formula to inverse of factorial function, you know. for example when we write: x!=a=\>x=? and when we use (=) , we only want exact solution of problem but which function can calculate inverse of factorial? none. so we can only use special functions for special conditions or approximate solutions.

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 7:51am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/8 "2016-07-09T07:51:30Z")

</div>

It’s important to observe that Mathematica can treat such type of equation, e.g.,

```
Solve[x! == 7!/7, x]

```

It gives the correct solution x = 6.

As I understand the equation

```
x! == (7!)!/7!

```

may be reduced to equation

```
 x! == 5039!

```

by simplifications, and then it may give the correct result.

Why Mathematica doesn’t make such transformations?

---

<div class="post-metadata">

**Author:** ![bgodwin](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@bgodwin](https://community.wolfram.com/u/bgodwin)\
**Post date:** [July 9, 2016, 7:52am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/9 "2016-07-09T07:52:58Z")

</div>

Try this:

```
Solve[(7!)!/(7!) == x!, x, Integers]

```

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 7:56am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/10 "2016-07-09T07:56:11Z")

</div>

Thank you, Louis!

For me is somewhat strange that if we do not specify that x is integer, then we do not obtain the result…

**The Set of Reals doesn’t contain the Set of Integers?**

**What is the principle that governs the execution of Solve function?**

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 8:16am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/11 "2016-07-09T08:16:28Z")

</div>

Thank you, too. if you know which mathematical formula is used to solve x!=5039! please tell me. Regards

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 8:27am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/12 "2016-07-09T08:27:01Z")

</div>

for **x** Real : x?1

**a = x! =\> x = ?**

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 8:43am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/13 "2016-07-09T08:43:41Z")

</div>

I don’t know surely how the Mathematica system solves this equation. I can suppose only that the Mathematica system uses methods of discrete mathematics and it obtains the result by applying its principles of expression representation in the “simplest” form. So, in this case we can’t discuss about an inverse function of factorial. Once again, it’s only my opinion!

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 9:11am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/14 "2016-07-09T09:11:59Z")

</div>

thanks.

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 9:23am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/15 "2016-07-09T09:23:36Z")

</div>

could you please tell me exactly :

for **x** Real : x?1

- **x! = a =\> x = ?**

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 9:34am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/16 "2016-07-09T09:34:34Z")

</div>

You are welcome!

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 9:54am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/17 "2016-07-09T09:54:21Z")

</div>

Mohamad, may be the answer to you questions is in [Gamma[] function](https://en.wikipedia.org/wiki/Gamma_function) as an extension of the factorial function.

```
In[29]:= Solve[Gamma[x] == 24, x]

During evaluation of In[29]:= Solve::ifun: Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution information. >>

Out[29]= {{x -> 5}}

In[34]:= Solve[Gamma[x] == 10, x]

During evaluation of In[34]:= Solve::ifun: Inverse functions are being used by Solve, so some solutions may not be found; use Reduce for complete solution information. >>

Out[34]= {{x -> 
   Root[{-10 + Gamma[#1] &, 4.39007765083314189217115670719}]}}

```

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 10:48am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/18 "2016-07-09T10:48:52Z")

</div>

I humbly thank you but how do the computer calculate integral or series to infinity?

are the calculation of mathematica using integral or taylor series approximate formulas?

---

<div class="post-metadata">

**Author:** ![vaungureanu](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/vaungureanu/32/23129_2.png) [@vaungureanu](https://community.wolfram.com/u/vaungureanu)\
**Post date:** [July 9, 2016, 11:02am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/19 "2016-07-09T11:02:48Z")

</div>

Sure Mathematica can calculate [Improper Integrals!](https://en.wikipedia.org/wiki/Improper_integral)

Mathematica is a computer algebra system, i.e., it was, from its creation, designed by Stephen Wolfram to deal with symbolic calculus.

---

<div class="post-metadata">

**Author:** ![mhfard1370](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mhfard1370/32/467_2.png) [@mhfard1370](https://community.wolfram.com/u/mhfard1370)\
**Post date:** [July 9, 2016, 11:31am UTC](https://community.wolfram.com/t/factorial-equations-issues/8882/20 "2016-07-09T11:31:29Z")

</div>

thanks a lot.

[Next page](https://community.wolfram.com/t/factorial-equations-issues/8882.md?page=2)
