Generalization of Catalan's conjecture

1 visualización (últimos 30 días)
Jesús Zambrano
Jesús Zambrano el 29 de Mzo. de 2020
Comentada: Jesús Zambrano el 3 de Abr. de 2020
I would like to have a simple MATLAB code that can give the solutions for the generalization of the Catalan's conjecture for a given n.
This conjecture and the generalization can be found in the following link
The link includes a table with the solutions I would like to get with a code.

Respuesta aceptada

Athul Prakash
Athul Prakash el 3 de Abr. de 2020
You may explore File Exchange for solutions or related code from which you can build your own solution.
If you are attempting to come up with your own algorithm, have a look at 'factorIntegerPower'
You can use that to find all the perfect powers in a given sequence of numbers as follows:
a = 1:100;
b = findIntegerPower(a);
result = a(a~=b); % +result is a row vector containing all the perfect powers in the given range.
This can be a starting point for your solution.
Hope it helps!
  1 comentario
Jesús Zambrano
Jesús Zambrano el 3 de Abr. de 2020
Thanks, Athul!
That is a good start but still a long way to go.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Automotive en Help Center y File Exchange.

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by