OFFSET
1,1
COMMENTS
Searching up to 10^22, the largest term for n <= 1000 is a(618) = 421351^3 = 74805251419106551. - T. D. Noe, Apr 21 2011
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..10000
MATHEMATICA
nextPerfectPowers[n_] := Block[{k = n + 1}, While[GCD @@ Last /@ FactorInteger@ k == 1, k++ ]; k]; t = Table[0, {100}]; t[[3]] = 1; m = 0; While[m < 14400000, n = nextPerfectPowers@ m; d = n - m; If[d < 100 && t[[d]] == 0, t[[d]] = m; Print[{d, m}]]; m = n]; t (* Robert G. Wilson v, May 29 2009 *)
(* checked against *) mx = 14400000; pp = Union[ Join[{1}, Flatten[ Table[n^i, {n, 2, Sqrt@mx}, {i, 2, Log[n, mx]}]]]]; d = Rest@ pp - Most@ pp; pp[[ # ]] & /@ Flatten[ Table[ Position[d, n, 1, 1], {n, 56}] /. {{} -> {0}}] /. {List -> 0} (* Robert G. Wilson v, May 29 2009 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved