OFFSET
0,1
COMMENTS
a(n) is the least even number k such that there are exactly n unordered pairs of primes (p,q) with p + q = k and p and q have the same last decimal digit.
LINKS
Robert Israel, Table of n, a(n) for n = 0..2000
EXAMPLE
a(3) = 86 because 86 = 3 + 83 = 13 + 73 = 43 + 43, all summands being prime with last digit 3, and 86 is the least even number that works.
MAPLE
f:= proc(m) local d, p;
if m mod 10 = 0 then return 0 fi;
d:= chrem([m/2 mod 5, 1], [5, 2]);
nops(select(p -> isprime(p) and isprime(m-p), [seq(p, p=d..m/2, 10)]))
end proc:
f(4):= 1:
M:= 100: # to get a(0)..a(M)
V:= Array(0..M): count:= 0:
for m from 2 by 2 while count < M+1 do
v:= f(m);
if v <= M and V[v] = 0 then V[v]:= m; count:= count+1 fi
od:
convert(V, list);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. M. Bergot and Robert Israel, Aug 07 2022
STATUS
approved