How to solve equation with factorial using algebra?

211 Views Asked by At

I bring this sample in order to ilustrate

$$x! = 2^x + 8$$

I know the answer is $x=4$ but I dunno how to prove it. I mean, if i put the number 4 by observation, tryal and error, I can get the results, but I dunno how to solve it isolating x like this:

(1) $x (x-1)! = 2^x +8$

(2) $x = \dfrac{2^x+8}{(x-1)!}$

(3) $x = \dfrac{2^x + 2^3}{(x-1)!}$

(4) $x = \dfrac{2\cdot2^{x-1}+2^3}{(x-1)!}$

From that point on I dunno how to procee using algebra

I would not know how to proceed if I come across another equation that its resolutions is not so easy to solve, like that one by trial and error.

2

There are 2 best solutions below

0
On

I think trial and error is the way to go. You can guess that the solution should be small since factorial dominates exponentials.

3
On

Nothing much changes, even if you ask $$ x! = 2^y + 8. $$ As soon as $x \geq 6,$ we have $x!$ divisible by $16.$ As soon as $y \geq 4,$ we know $2^y + 8$ is not divisible by $16.$ Since $6! = 720,$ we would need $y \geq 9,$ guaranteed failure.

So $x \leq 5.$

As pointed out by @marty the same reasoning applies to $$ x! = 2^y - 8, $$ with solution $x=5, y=7,$ also $x=4, y=5.$