OFFSET
1,1
COMMENTS
All numbers in the sequence are of one of the forms, base 3:
a. 2
b. 10...02, where there are 0 or more 0's
c. 20...0x, where there are 0 or more 0's, and x is of the form b or c
There is always exactly one 1 in the number, base 3.
All numbers end in a 2, base 3.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
569 is in the sequence, as 569=210002_3 and its base-3 suffixes are 10002_3=83 and 2_3=2, both of which are prime.
MAPLE
F[1]:= [2]:
for m from 2 to 11 do
F[m]:= [op(F[m-1]), op(select(isprime, [seq(seq(i*3^
(m-1)+x, x=F[m-1]), i=[1, 2])]))]
od:
F[11]; # Robert Israel, Jan 22 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Randy L. Ekl, Nov 26 2016
STATUS
approved