Author Topic: Number pairs with a remarkable property.  (Read 2508 times)

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Number pairs with a remarkable property.
« on: June 11, 2022, 09:34:43 AM »
I'm not sure which subforum this thread belongs in. It's a question with a mathematical background. The collection of the results is then done by a small program in assembly language,
written with the MASM64 SDK. There is nothing more to be said about this. I post it in the workshop. But if Hutch decides it should go somewhere else, that's okay too.

The two natural numbers m = 60 and n = 12 have a remarkable property. Their product is ten times greater than their sum. Therefore, the question is: Are there any other pairs of natural
numbers with this attribute? Yes, there are, but not many. The general solution is shown in the file sumprod.pdf. It's really not very complicated and explained in detail. The software shows
the 5 possible pairs of natural numbers and displays the results.

It'll look like this on the screen:
Code: [Select]
Number Pairs          Sum          Product
============          ===          =======

11 and 110            121          1210
12 and 60             72           720
14 and 35             49           490
15 and 30             45           450
20 and 20             40           400

Please, press any key to end the program...
If you're interested, you can take a look at the latex source I added to the archive. I hope the explanation and text are understandable.

I would be appreciated for any suggestions on how to improve it.
« Last Edit: June 12, 2022, 04:54:34 AM by Gunther »
You have to know the facts before you can distort them.

raymond

  • Member
  • ***
  • Posts: 327
    • Raymond's page
Re: Number pairs with a remarkable property.
« Reply #1 on: June 12, 2022, 02:39:17 AM »
Quote
The two natural numbers m = 60 and n = 10 have a remarkable property. Their product is ten times greater than their sum.

My grade school teachers must have shown me the wrong things.

According to them, their sum needs to be 60+10=70, and their product should be 60x10=600.
I fail to see that 600 is 10 times greater than 70, unless I misread some of the statement. :undecided:

(I agree the other example pairs match the description. :cool:)
Whenever you assume something, you risk being wrong half the time.
http://www.ray.masmcode.com/

caballero

  • Member
  • *****
  • Posts: 2160
  • Matrix - Noah
    • abre ojos ensamblador
Re: Number pairs with a remarkable property.
« Reply #2 on: June 12, 2022, 03:31:53 AM »
It's probaby a typo, what surely Gunther meant was for m = 60 and n = 12.
The logic of the error is hidden among the most unexpected lines of the program

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Number pairs with a remarkable property.
« Reply #3 on: June 12, 2022, 03:54:00 AM »
It's probaby a typo, what surely Gunther meant was for m = 60 and n = 12.

That's right. It should be n = 12. This is very unfortunate, because this error is also on p. 1 of the PDF file. I have corrected this and sumpror1.zip now contains the correct files.
Many thanks to Raymond and Caballero for their help.  :thumbsup:
You have to know the facts before you can distort them.

NoCforMe

  • Member
  • *****
  • Posts: 1124
Re: Number pairs with a remarkable property.
« Reply #4 on: June 12, 2022, 05:23:10 AM »
So is this some kind of remarkable property, or just a trivial coincidence? I don't know enough about number theory to have an opinion one way or the other.

I know there are all kinds of interesting, convoluted, strange things that happen with numbers and sequences of numbers ...

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Number pairs with a remarkable property.
« Reply #5 on: June 12, 2022, 05:58:39 AM »
NoCforMe,

So is this some kind of remarkable property, or just a trivial coincidence?

It's a matter of taste or point of view - whatever you want. But is it really just a coincidence that applies to exactly 10 of an infinite number of natural numbers?
As already Euclid proved, there are infinitely many prime numbers. These have the remarkable property of being prime. What do you think would be the correct
description for these 10 natural numbers?
You have to know the facts before you can distort them.

daydreamer

  • Member
  • *****
  • Posts: 2399
  • my kind of REAL10 Blonde
Re: Number pairs with a remarkable property.
« Reply #6 on: June 12, 2022, 11:21:13 PM »
NoCforMe,

So is this some kind of remarkable property, or just a trivial coincidence?

It's a matter of taste or point of view - whatever you want. But is it really just a coincidence that applies to exactly 10 of an infinite number of natural numbers?
As already Euclid proved, there are infinitely many prime numbers. These have the remarkable property of being prime. What do you think would be the correct
description for these 10 natural numbers?
+INF float prime?
well if you test all primes that fit into a REAL10,its maybe more correct with infinity*percentage which is primes?maybe also is infinity

my none asm creations
http://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

FORTRANS

  • Member
  • *****
  • Posts: 1238
Re: Number pairs with a remarkable property.
« Reply #7 on: June 13, 2022, 12:19:14 AM »
Hi,

+INF float prime?

   Not really.  Primes are integers.  While there are an infinite number of
real numbers, and a countable infinity of those are integer primes, that
seems a convoluted way of thinking about them.

Quote
well if you test all primes that fit into a REAL10,its maybe more correct with infinity*percentage which is primes?maybe also is infinity

   No.  REAL10 contains a finite number of bits.  Therefore only a finite
number of numbers are possible.  And since the exponent and sign bits
can be ignored, there are only 64 bits left to encode an integer.  Definitely
only a finite number of primes can be represented in a REAL10.  Or REAL*10
for us FORTRAN types.

Cheers,

Steve N.

HSE

  • Member
  • *****
  • Posts: 2502
  • AMD 7-32 / i3 10-64
Re: Number pairs with a remarkable property.
« Reply #8 on: June 13, 2022, 02:26:51 AM »
Gunther,

... a remarkable property. Their product is ten times greater than their sum. Therefore, the question is: Are there any other pairs of natural
numbers with this attribute?

 :thumbsup:

The property can be expanded to m · n = q · (m + n)

                                              then m = q + q ^ 2 / (n − q)

                                               and m = n = 2 · q

Interesting thing is that this hyperbolic function is close to more complex Lorentzian, that I use a lot fitting biological functions. I have to see if that can be replaced with this.  :biggrin:

HSE
Equations in Assembly: SmplMath

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Number pairs with a remarkable property.
« Reply #9 on: June 13, 2022, 02:45:08 AM »
Daydreamer,

I think FORTRANS has already explained the essence of the matter. Here are some additional informations: The number M82589933 = 282589933 - 1 is probably the
largest known prime number. That's what we know so far. It has more than 24 million decimal digits. This would then also somewhat overwhelm the REAL10 type.

The number was found within the framework of GIMPS (Great Internet Mersenne Prime Search). Mersenne prime numbers have the form Mn = 2n - 1. They are
named after Marin Mersenne (1588-1648), a French theologian and mathematician, and are especially well suited to search for large prime numbers.

The smallest Mersenne primes are: M2 = 22 - 1 = 3, M3 = 23 - 1 = 7 and M5 = 25 - 1 = 31. If M82589933 passes all subsequent tests, it would be the 51st Mersenne
prime number that was found.
You have to know the facts before you can distort them.

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Number pairs with a remarkable property.
« Reply #10 on: June 13, 2022, 02:51:36 AM »
HSE,

thank you for your interesting reply.  :thumbsup:

Interesting thing is that this hyperbolic function is close to more complex Lorentzian, that I use a lot fitting biological functions. I have to see if that can be replaced with this.  :biggrin:

A biologist who knows mathematics. Excellent. Do you need such functions to solve Lotka-Volterra differential equations?
You have to know the facts before you can distort them.

HSE

  • Member
  • *****
  • Posts: 2502
  • AMD 7-32 / i3 10-64
Re: Number pairs with a remarkable property.
« Reply #11 on: June 13, 2022, 05:15:40 AM »
Gunther,

Do you need such functions to solve Lotka-Volterra differential equations?

No. But you remember me a classic: Noy-Meir. 1975. Stability of grazing systems: an application of predator-prey graphs. (I read that an eternity ago  :biggrin:)

HSE
Equations in Assembly: SmplMath

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Number pairs with a remarkable property.
« Reply #12 on: June 13, 2022, 05:55:36 AM »
HSE,

But you remember me a classic: Noy-Meir. 1975. Stability of grazing systems: an application of predator-prey graphs. (I read that an eternity ago  :biggrin:)

This must be Imanuel Noy-Meir, right? An interesting guy.
You have to know the facts before you can distort them.

HSE

  • Member
  • *****
  • Posts: 2502
  • AMD 7-32 / i3 10-64
Re: Number pairs with a remarkable property.
« Reply #13 on: June 13, 2022, 07:09:01 AM »
Gunther,

This must be Imanuel Noy-Meir, right? An interesting guy.

Exactly. Just a couple of years before he died I saw him personally and I learned he born close here :biggrin:.

HSE.

Equations in Assembly: SmplMath

Gunther

  • Member
  • *****
  • Posts: 4198
  • Forgive your enemies, but never forget their names
Re: Number pairs with a remarkable property.
« Reply #14 on: June 13, 2022, 08:22:04 AM »
HSE,

Exactly. Just a couple of years before he died I saw him personally and I learned he born close here :biggrin:.

you were lucky to see him in a personal way with this. He was born in a hard time. That wasn't easy.
You have to know the facts before you can distort them.