OFFSET
1,1
COMMENTS
Computing the range of A055012(n) up to some upper limit using A179239 might help reduce the search space for finding terms. - David A. Corneth, Oct 11 2019
LINKS
Robert Israel, Table of n, a(n) for n = 1..2400
EXAMPLE
a(3) = 12130 is included because 12130 is composite and 12130 + 1^3 + 2^3 + 1^3 + 3^3 + 0^3 = 12167 = 23^3 and 23 is prime.
MAPLE
filter:= proc(n) local x, t, F;
if isprime(n) then return false fi;
x:= n + add(t^3, t = convert(n, base, 10));
F:= ifactors(x)[2];
nops(F)=1 and F[1][2]=3
end proc:
F:= proc(p, lastp) local n0;
n0:= max(p^3 - 9^3*(1+ilog10(p^3)), lastp^3+1);
select(filter, [$n0 .. p^3]);
end proc:
seq(op(F(ithprime(i), ithprime(i-1))), i=2..50);
PROG
(PARI) (scan(a, b)=forcomposite(n=max(a, b-9^3*(logint(b, 10)+1))+1, b, n+A055012(n)==b && printf(n", "))); forprime(p=1+o=2, 234, scan(o^3, p^3)) \\ M. F. Hasler, Oct 11 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Will Gosnell and Robert Israel, Oct 11 2019
STATUS
approved