I Minimize |n-2^x*3^y| over the integer

  • I
  • Thread starter Thread starter a1call
  • Start date Start date
  • Tags Tags
    Integer
a1call
Messages
90
Reaction score
5
Hi,
Is there a way to formulate the solution of minimization of:
abs(n-2^x*3^y)
Over integers x and y for any given integer n?
A numeric example that I found by trial and error is:
|6859-2^8*3^3|=53

Thanks in advance.
 
Mathematics news on Phys.org
a1call said:
Hi,
Is there a way to formulate the solution of minimization of:
abs(n-2^x*3^y)
Over integers x and y for any given integer n?
A numeric example that I found by trial and error is:
|6859-2^8*3^3|=53

Thanks in advance.
That's hardly a minimum value. If n = x = y = 1, the result is |-5| = 5
If n = 6 and x = y = 1, the result is 0, which would be minimum value for the parameter n = 6.

Have you studied calculus? In particular multivariate calculus? There are a couple of techniques that can be used to function the minimum or maximum of a function of two variables. There is also the technique of Lagrange multipliers.
 
Hi Mark44,
n is not meant to be a variable. It is a known integer value and the problem is to solve for integer variables x and y such that the result has smallest integer value. So for my numeric example n can only be 6859. x and y can be any integers. the minimization solution is x=8 and y= 3, because no other integer values of x and/or y will result in a number less than 53.
As far as I know calculus does offer solutions over the rational field but not over the integer field.
Would the Lagrange multipliers offer a general solution for this?
Thank you for the reply.
 
Last edited:
I don't expect there to be a known solution for this. I am just looking for expert-confirmation or authoritative-reference on the subject.
 
Positive integers? Otherwise there is no minimum.

Minimizing abs(2^x-3^y) apart from the case |8-9|=1 is still an open problem. Your problem doesn't look easier.

log(n)=x*log(2)+y*log(3) and some approximation techniques could help to reduce the number of cases to test.
 
Thank you for the reply mfb.
The log formula is very interesting.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
I'm interested to know whether the equation $$1 = 2 - \frac{1}{2 - \frac{1}{2 - \cdots}}$$ is true or not. It can be shown easily that if the continued fraction converges, it cannot converge to anything else than 1. It seems that if the continued fraction converges, the convergence is very slow. The apparent slowness of the convergence makes it difficult to estimate the presence of true convergence numerically. At the moment I don't know whether this converges or not.
Back
Top