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

A359947
a(n) = n XOR A359946(n) (where XOR denotes the bitwise XOR operator).
2
3, 3, 7, 7, 3, 3, 13, 3, 5, 13, 3, 5, 3, 3, 31, 31, 3, 3, 7, 7, 3, 3, 13, 3, 5, 13, 3, 5, 3, 3, 61, 3, 5, 61, 3, 5, 3, 3, 13, 3, 5, 13, 3, 5, 3, 3, 31, 31, 3, 3, 7, 7, 3, 3, 13, 3, 5, 13, 3, 5, 3, 3, 127, 127, 3, 3, 7, 7, 3, 3, 13, 3, 5, 13, 3, 5, 3, 3, 31, 31
OFFSET
1,1
COMMENTS
All terms are prime.
LINKS
EXAMPLE
a(42) = 42 XOR A359946(42) = 42 XOR 39 = 13.
PROG
(PARI) { s = 0; for (n = 1, 80, for (v = 1, oo, if (!bittest(s, v) && isprime(p = bitxor(n, v)), print1 (p", "); s += 2^v; break))) }
CROSSREFS
Cf. A359946.
Sequence in context: A000199 A243099 A324877 * A201932 A161771 A160515
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 19 2023
STATUS
approved