A057895 Nonnegative numbers which can be written as m^k-m [with m and k nonnegative and 0^0 taken as 1].
0, 1, 2, 6, 12, 14, 20, 24, 30, 42, 56, 60, 62, 72, 78, 90, 110, 120, 126, 132, 156, 182, 210, 240, 252, 254, 272, 306, 336, 342, 380, 420, 462, 504, 506, 510, 552, 600, 620, 650, 702, 720, 726, 756, 812, 870, 930, 990, 992, 1020, 1022, 1056, 1122, 1190, 1260
Offset: 0
Keywords
Examples
a(8)=30 is in the sequence since 30=2^6-2 (and also =6^2-6).
Links
- Robert Israel, Table of n, a(n) for n = 0..10000
Programs
-
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