OFFSET
1,2
COMMENTS
Charles R Greathouse IV conjectures that A107801(n) = prime(n) for n sufficiently large (and similarly for other related sequences). If that is the case, this sequence must be finite.
LINKS
Robert Israel, Table of n, a(n) for n = 1..250
EXAMPLE
a(3) = 8 is a term because the greatest prime < 10^8 and the least prime > 10^8 are 99999989 and 100000007 respectively, and these have no digits in common.
5 is not a term because the greatest prime < 10^5 and the least prime > 10^5 are 99991 and 100003 respectively, and these have digit 1 in common.
MAPLE
filter:= t -> convert(convert(prevprime(10^t), base, 10), set) intersect convert(convert(nextprime(10^t), base, 10), set) = {}:
select(filter, [$1..400]);
CROSSREFS
KEYWORD
nonn,base,new
AUTHOR
Robert Israel, Dec 16 2024
STATUS
approved