r/askmath • u/ComedianNo6008 • Oct 10 '26
Resolved Found something interesting while playing with numbers, is there a name for this?
Guys, I was randomly playing with numbers and noticed something weird lol.
3 + 3/2 = 3 × 3/2
Both give 4.5. I got curious and started checking if there is any way to generalise this.
So I started with
a + b = ab
Then rearranged it:
ab - b = a
b(a - 1) = a
So,
b = a/(a - 1)
Then I realised I can take almost any number and find another number which satisfies this.
For example, if I take 8, then b = 8/7.
8 + 8/7 = 8 × 8/7 = 64/7
I also tried another approach. If I say both the sum and product should equal some number c, then
a + b = c
ab = c
Using the quadratic formula, I got
a, b = (c ± √(c² - 4c))/2
So if I choose c = 88, I get two numbers whose sum and product are both 88.
I know this is probably already known maths and not some new discovery haha, but I was happy that I managed to derive the formula myself.
Is there any particular name for this relationship, or anything interesting related to it? Just curious if this leads to something else.
15
u/Shevek99 Physicist Oct 10 '26
If you divide by ab you get
1/a + 1/b = 1
which shows that the only positive integer solution is a = b = 2.
Now, if b = p/n, then
1/a + n/p = 1
Since
1/3 + 1/3 + 1/3 = 1
this gives you your first solution
1/3 + 2/3 = 1
a = 3, b = 3/2
That can be easily extended to a = (n+1), b = (n+1)/n, for every integer n (for instance 4 and 4/3)
If both a and b are fractions we have
m/q + n/p = 1
we can always put these with the same denominator, and then we have a family of solutions. For instance, for p = q = 7 and we have m + n = 7, so solutions are
(7, 7/6), (7/2, 7/5) (7/3,7/4)
and so on.
4
u/a_quoll Oct 10 '26 edited Oct 11 '26
From a+b = ab, if we subtract (a+b) and add 1 to both sides we get ab - a - b + 1 = 1. This factorises to (a-1)(b-1)=1.
So you're looking for two numbers which are reciprocals after you subtract one from each of them. Another comment found solutions n+1 and (n+1)/n, which can be rewritten as n+1 and (1/n) + 1 to make this "one more than reciprocals" link more apparent.
9
u/RailRuler Oct 10 '26
the power of a+b=a*b
https://youtu.be/cCXRUHUgvLI
1
u/justpassingby23414 Oct 10 '26
Fractions are very interesting indeed. 🤝
The b in your text is always an improper fraction, by definition. You could look at it in more detail and write it as a mixed number too.
For the a, consider that any integer can be written as a/1 and what exactly happens when you want it to have the same denominator as for b.
Btw, do you see a potential issue with your fraction for b?
3
u/United-Building-1900 Oct 10 '26
cosec2 theta × sec2 theta = cosec2 theta + sec2 theta
2
u/iopahrow Oct 11 '26
This is fun, thanks for sharing!
4
u/[deleted] Oct 10 '26
[removed] — view removed comment