News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Number pairs with a remarkable property.

Started by Gunther, June 11, 2022, 09:34:43 AM

Previous topic - Next topic

Gunther

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:

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.
You have to know the facts before you can distort them.

raymond

QuoteThe 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.
https://masm32.com/masmcode/rayfil/index.html

avcaballero

It's probaby a typo, what surely Gunther meant was for m = 60 and n = 12.

Gunther

Quote from: caballero on June 12, 2022, 03:31:53 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

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 ...
Assembly language programming should be fun. That's why I do it.

Gunther

NoCforMe,

Quote from: NoCforMe on June 12, 2022, 05:23:10 AM
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

Quote from: Gunther on June 12, 2022, 05:58:39 AM
NoCforMe,

Quote from: NoCforMe on June 12, 2022, 05:23:10 AM
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
https://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

Hi,

Quote from: daydreamer on June 12, 2022, 11:21:13 PM
+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.

Quotewell 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

Gunther,

Quote from: Gunther on June 11, 2022, 09:34:43 AM
... 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

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

HSE,

thank you for your interesting reply.  :thumbsup:

Quote from: HSE on June 13, 2022, 02:26:51 AM
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

Gunther,

Quote from: Gunther on June 13, 2022, 02:51:36 AM
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

HSE,

Quote from: HSE on June 13, 2022, 05:15:40 AM
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

Gunther,

Quote from: Gunther on June 13, 2022, 05:55:36 AM
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

HSE,

Quote from: HSE on June 13, 2022, 07:09:01 AM
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.