OFFSET
1,1
COMMENTS
Conjecture: every prime eventually appears in the sequence.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(4) = 5 because 5 is a prime that has not yet occurred in the sequence, a(4) + 5 = 12 = 2^2^3 is a triprime; the only other prime (3) that has not yet occurred does not work because a(4) + 3 = 10 = 2*5 is not a triprime.
MAPLE
R:= 2: p:= 2: P:= select(isprime, [seq(i, i=3..10000, 2)]):
do
found:= false;
for k from 1 to nops(P) do
q:= P[k];
if numtheory:-bigomega(q+p) = 3 then
found:= true; p:= q; R:= R, p; P:= subsop(k=NULL, P); break
fi
od;
if not found then break fi;
od:
R;
MATHEMATICA
s3={2}; p=2; Do[q=3; While[MemberQ[s3, q]||3!=PrimeOmega[p+q], q=NextPrime[q]]; AppendTo[s3, p=q], {999}]; s3 (* Vincenzo Librandi, Mar 04 2025 *)
PROG
(Magma) PrimeOmega := function(n)
return &+[t[2] : t in Factorization(n)];
end function;
s3 := [2];
p := 2;
for i in [1..999] do
q := 3;
while (q in s3) or (PrimeOmega(p + q) ne 3) do
q := NextPrime(q);
end while;
Append(~s3, q);
p := q;
end for;
s3; // Vincenzo Librandi, Mar 04 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov and Robert Israel, Mar 04 2023
STATUS
approved
