OFFSET
0,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 0..1000
EXAMPLE
a(0) = 35 = 2^3 + 3^3 = 2^0 * 35 with 2 and 3 prime and 35 odd.
a(1) = 54 = 3^3 + 3^3 = 2^1 * 27 with 3 and 3 prime and 27 odd.
a(2) = 468 = 5^3 + 7^3 = 2^2 * 117 with 5 and 7 prime and 117 odd.
a(3) = 152 = 3^3 + 5^3 = 2^3 * 19 with 3 and 5 prime and 19 odd.
a(4) = 16 = 2^3 + 2^3 = 2^4 * 1 with 2 and 2 prime and 1 odd.
MAPLE
f:= proc(n) local p, q, b, t, r;
r:= infinity;
for b from 1 by 2 while 2^(3*n-2)*b^3 < r do
t:= 2^n*b;
p:= nextprime(t/2);
while p > 3 do
p:= prevprime(p);
q:= t-p;
if p^3 + q^3 > r then break fi;
if isprime(q) then r:= p^3 + q^3; break fi;
od
od;
r
end proc:
f(0):= 35: f(4):= 16:
map(f, [$0..30]);
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert Israel, Jan 01 2023
STATUS
approved