Find $a$,$b$ if $\frac{1}{a}+\frac{1}{b}=\frac{1}{2008}$, where $a$ and $b$ are positive integers.
When I set the Range
to 10 000, Mathematica never seems to stop.
When I set the Range
to 1000 000, there was insufficient memory available to complete the computation.
list1 = Range[10000];
f[{a_, b_}] := 1/a + 1/b;
Pick[Tuples[list1, 2], f[#] & /@ Tuples[list1, 2], 1/2008]
Is there anyone who can solve this fuss? I have 16GB of RAM. I thought that is enough to find the answer below 10000
Reduce[1/a + 1/b == 2008 && a > 0 && b > 0, {a, b}, Integers]
? $\endgroup$False
. $\endgroup$Solve[1/a + 1/b == 1/2008 && 0 < a <= b, {a, b}, Integers]
. $\endgroup$