OFFSET
1,1
COMMENTS
EXAMPLE
a(4) = 45 because 45 = 3^2 * 5 and 2 * 3^1 + 5^1 = 11, 2 * 3^2 + 5^2 = 43, 2 * 3^3 + 5^3 = 179 and 2 * 3^4 + 5^4 = 787 are primes but 2 * 3^5 + 5^5 = 3611 = 23 * 157 is not a prime power.
MAPLE
g:= proc(n) local F, t, d;
F:= ifactors(n)[2];
if nops(F) = 1 then return -1 fi;
for d from 1 do
if nops(ifactors(add(t[1]^d * t[2], t=F))[2]) <> 1 then return d-1 fi
od
end proc:
V:= Vector(9): count:= 0:
for n from 2 while count < 9 do
v:= g(n);
if v > 0 and V[v] = 0 then V[v]:= n; count:= count+1 fi
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Will Gosnell and Robert Israel, Nov 16 2025
STATUS
approved
