OFFSET
0,1
LINKS
Robert Israel, Table of n, a(n) for n = 0..4400
EXAMPLE
a(2) = 5 because 5*2^2+7*3^2 = 83 is prime, while 3*2^2+5*3^2 = 57 and 2*2^2+3*3^2 = 35 are not.
MAPLE
f:= proc(n) local p, q;
q:= 2;
do
p:= q; q:= nextprime(q);
until isprime(p*2^n+q*3^n);
p
end proc:
map(f, [$0..100]);
PROG
(PARI) a(n) = my(p=2, q=nextprime(p+1)); while(! isprime(p*2^n+q*3^n), p=q; q=nextprime(p+1)); p; \\ Michel Marcus, Jan 21 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jan 20 2021
STATUS
approved