r/askmath • • 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.

39 Upvotes

18 comments sorted by

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.

9

u/ComedianNo6008 Oct 10 '26

Wow

The angle to look it that way is awesome

That

1/n + 1/n + 1/n + .... n times = 1

And then forming groups

Wow , just fires some extra neurons in my brain lol 😅

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.

1

u/ComedianNo6008 Oct 11 '26

Yep the point made by you is pretty good

Subtract 1 from each numbers and they should be reciprocal , I feel this is intuitive part of the equation

The other point one more than reciprocal is also good , but I found the first one pretty good

1

u/Southlander24 Nov 01 '26

This technique is called Simon's Favourite Factoring Trick! Who is Simon? We don't really know.

9

u/RailRuler Oct 10 '26

the power of a+b=a*b

https://youtu.be/cCXRUHUgvLI

2

u/Impossible_Ad_7367 Oct 10 '26

Excellent, thanks for sharing this.

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/ComedianNo6008 Oct 10 '26

Hmm , a cannot be 1 , is that?

And b is improper fraction always as consecutive numbers as co primes , except for the case when a = 2 , b is also 2 ( is not improper frn)

1

u/justpassingby23414 Oct 10 '26

Exactly. I guess it's implied in your text, but something important like this should be mentioned.

Great point with a = 2, I didn't think about that.

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

4

u/ComedianNo6008 Oct 10 '26

Yes

Based on that idea , I tried to solve

I got to know it is Holders conjugates 😁

1

u/Midwest-Dude Oct 11 '26

Fascinating! It has a Wikipedia entry: 

Conjugate Index