OFFSET
1,2
COMMENTS
It may be that positive integers can be written as n = m^k - k (with m and k > 1) in at most one way [checked up to 10000] as well as with k = 1 and m = n+1.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 3 since 5 = 2^3 - 3.
MAPLE
N:= 200: # for a(1)..a(N)
V:= Vector(N, 1):
for k from 2 while 2^k-k <= N do
for m from 2 do
v:= m^k-k;
if v > N then break fi;
V[v]:= k;
od;
od:
convert(V, list); # Robert Israel, Sep 04 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Sep 26 2000
STATUS
approved