Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find all perfect power representations of an integer
ResourceFunction["PerfectPower"][n] gives a list of all nontrivial integer base and exponent pairs that equal n. |
Integer base and exponent pairs that can be used to represent 16 as a perfect power:
In[1]:= |
Out[1]= |
Find all numbers less than or equal to 105 that can be represented as perfect powers of exactly three numbers:
In[2]:= |
Yet another example with a large number:
In[3]:= |
Out[3]= |
Many of Pillai's conjectures or Catalan's proof can be investigated and verified using PerfectPower. Investigating solutions for the Catalan equation:
In[4]:= |
PerfectPower[n] returns unevaluated n is negative:
In[6]:= |
Out[6]= |
1267650600228229401496703205376 decomposed into perfect powers of integers:
In[7]:= |
Out[7]= |
PerfectPower representations of a fairly large number:
In[8]:= |
Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License