login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A342962
a(n) is the least prime that starts a string of exactly n distinct primes p_1, p_2, ..., p_n where p_{i+1} = p_i+A085563(p_i), but p_n+A085563(p_n) is either not prime or equal to p_n.
1
2, 29, 229, 5639, 35969, 54191353
OFFSET
1,1
COMMENTS
No further terms up to 10^9.
EXAMPLE
a(3) = 229 because 229, 229+A085563(229) = 233, and 233+A085563(233) = 241 are prime but 241+A085563(241) = 243 is not.
MAPLE
f:= n -> n + convert(select(isprime, convert(n, base, 10)), `+`):
F:= proc(n) option remember; local t, x;
x:= f(n);
if x = n or not isprime(x) then 1 else 1+procname(x) fi
end proc:
V:= Vector(6): count:= 0: p:= 1:
while count < 6 do
p:= nextprime(p); v:= F(p);
if v <= 6 and V[v] = 0 then V[v]:= p; count:= count+1 fi
od:
convert(V, list);
CROSSREFS
Sequence in context: A020460 A178000 A036939 * A342971 A124301 A276196
KEYWORD
nonn,base,more
AUTHOR
J. M. Bergot and Robert Israel, Mar 31 2021
STATUS
approved