OFFSET
0,3
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
EXAMPLE
a(8)=30 is in the sequence since 30=2^6-2 (and also =6^2-6).
MAPLE
N:= 1000: # to get all entries up to N
S:= {0, 1}:
for m from 2 to floor((1+sqrt(1+4*N))/2) do
S:= S union {seq(m^k - m, k=2 .. floor(log(N+m)/log(m)))}
end do:
S; # Robert Israel, Feb 12 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Sep 26 2000
STATUS
approved