OFFSET
1,1
COMMENTS
It may be that positive integers can be written as m^k-k (with m and k > 1) in at most one way [checked up to 10000].
All numbers < 10^16 of this form have a unique representation. The uniqueness question leads to a Pillai-like exponential Diophantine equation a^x-b^y = x-y for x > y > 1 and b > a > 1, which appears to have no solutions. - T. D. Noe, Oct 06 2004
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..10000
MATHEMATICA
nLim=1000; lst={}; Do[k=2; While[n=m^k-k; n<=nLim, AppendTo[lst, n]; k++ ], {m, 2, Sqrt[nLim]}]; Union[lst] (* T. D. Noe, Oct 06 2004 *)
PROG
(PARI) ok(n)={my(e=2); while(2^e <= n+e, if(ispower(n+e, e), return(1)); e++); 0} \\ Andrew Howroyd, Oct 20 2020
(PARI) upto(lim)={my(p=logint(lim, 2)); while(logint(lim+p+1, 2)>p, p++); Vec(Set(concat(vector(p-1, e, e++; vector(sqrtnint(lim+e, e)-1, m, (m+1)^e-e)))))} \\ Andrew Howroyd, Oct 20 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Sep 26 2000
STATUS
approved