# Solving an equation involving factorials

Splitting the reciprocal of a factorial into a sum of reciprocals of positive integer

I'm interested in finding all positive integers x, y such that ${1 \over x} + {1 \over y} = {1 \over N!}$, $N \in \mathbb{N}$. I think it's best to gather as many properties of solutions as possible, to make this problem as computationally simple as possible. I'm not sure if there's a closed form solution for (x, y) here. This is trivial for small N, but let's take N > 2.

If x, y are solutions for a given N!, we immediately get ${{x + y} \over {xy}} = {1 \over N!} \implies {{xy} \over {x + y}} = N!$. Since the right-side is an integer, we get $x + y \mod xy = 0$. Also, x = y always gives the solution x = y = 2N!, so let's assume without losing generality that x > y > 1.

Anything else ...? Maybe even a rapid solution?

Last edited:

Without loss of generality, we can assume that x>y., But then

$$\frac{2}{y}\geq \frac{1}{x}+\frac{1}{y}=\frac{1}{N!}$$

So $$2N!\geq y$$.

So this shows that there are a finite number of solutions, and that all solutions must have

$$y\in \{1,2,...,2N!\}$$

Of course, this is only a small step and won't help in solving the general case.

No, the number of solutions is a pretty cool result. Thanks!

I'm interested in finding all positive integers x, y such that ${1 \over x} + {1 \over y} = {1 \over N!}$, $N \in \mathbb{N}$. I think it's best to gather as many properties of solutions as possible, to make this problem as computationally simple as possible. I'm not sure if there's a closed form solution for (x, y) here. This is trivial for small N, but let's take N > 2.

If x, y are solutions for a given N!, we immediately get ${{x + y} \over {xy}} = {1 \over N!} \implies {{xy} \over {x + y}} = N!$. Since the right-side is an integer, we get $x + y \mod xy = 0$. Also, x = y always gives the solution x = y = 2N!, so let's assume without losing generality that x > y > 1.

Anything else ...? Maybe even a rapid solution?
For a given N, whenever ${-yN! \over N! - y}$ is an integer you should have a solution. Just solved for x.

OK, let's delve some deeper. I suggest reading http://mathcircle.berkeley.edu/BMC4/Handouts/elliptic/node4.html [Broken]

In general, you want to know the integer solutions to

$$N! x+N! y-xy=0$$

You already know such a solution (0,0). Now there's an easy way to find all the rational solutions (of which there are infinitely many).

We consider all lines through (0,0) with rational slope. These lines have the form y=tx or x=0. Each of these lines will intersect our conic in another point, which will be rational. In fact, let's calculate the intersection of y=tx and our conic $$N! x+N! y-xy=0$$

Substiting y=tx in the equation of the conic yields

$$N! x+t N! x- tx^2=0$$

Thus

$$x((1+t)N!-tx)=0$$

thus x=0 or $x=\frac{(1+t)N!}{t}$. The corresponding y is $y=(1+t)N!$.

So all the rational solutions are of the form

$$x=\frac{(1+t)N!}{t}~\text{and}~y=(1+t)N!$$

with t rational.

Last edited by a moderator: