OFFSET
1,3
COMMENTS
The conjecture in A276711 implies that a(n) > 1 for all n > 2 except for n = 11^3 = 1331.
Note that for any integer n > 2 neither n^2 nor n^2 - 1 could be a prime.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..5000
EXAMPLE
a(2) = 1 since neither 2^2 - 2 nor 2^2 -3 has the form x^k with x and k integers greater than one.
a(3) = 5 since 5 is a prime with 3^2 - 5 = 2^2 but neither 3^2 - 2 nor 3^2 - 3 is a perfect power.
a(4913) = 23613281 since 23613281 is a prime with 4913^2 - 23613281 = 2^19, and 4913^2 - p is not a perfect power for any prime p < 23613281.
MATHEMATICA
Do[Do[If[IntegerQ[(n^2-Prime[j])^(1/k)], Print[n, " ", Prime[j]]; Goto[aa]], {j, 1, PrimePi[n^2-2]}, {k, 2, Log[2, n^2-Prime[j]]}]; Print[n, " ", 1]; Label[aa]; Continue, {n, 1, 60}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Sep 16 2016
STATUS
approved