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”).

A337013
Prime numbers arising in A336817.
3
3, 7, 3, 5, 7, 3, 13, 2, 3, 2, 5, 2, 3, 2, 31, 2, 3, 2, 7, 2, 3, 2, 13, 2, 3, 2, 5, 2, 3, 2, 61, 2, 3, 2, 5, 2, 3, 2, 13, 2, 3, 2, 5, 2, 3, 2, 31, 2, 3, 2, 7, 2, 3, 2, 13, 2, 3, 2, 5, 2, 3, 2, 127, 2, 3, 2, 7, 2, 3, 2, 13, 2, 3, 2, 5, 2, 3, 2, 31, 2, 3, 2, 7
OFFSET
1,1
COMMENTS
This sequence contains large runs of consecutive terms that are repeated later on.
LINKS
FORMULA
a(n) = A336817(n) XOR A336817(n+1) (where XOR denotes the bitwise XOR operator).
EXAMPLE
a(7) = A336817(7) XOR A336817(8) = 7 XOR 10 = 13.
PROG
(PARI) s=0; v=1; for (n=1, 83, s+=2^v; for (w=1, oo, if (!bittest(s, w) && isprime(p=bitxor(v, w)), print1 (p ", "); v=w; break)))
CROSSREFS
Sequence in context: A101636 A193534 A096247 * A362026 A122583 A001265
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Nov 21 2020
STATUS
approved