Nothing Special   »   [go: up one dir, main page]

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

A318457
a(n) = n XOR A001065(n), where XOR is bitwise-xor (A003987) and A001065 = sum of proper divisors.
13
1, 3, 2, 7, 4, 0, 6, 15, 13, 2, 10, 28, 12, 4, 6, 31, 16, 7, 18, 2, 30, 24, 22, 60, 31, 10, 22, 0, 28, 52, 30, 63, 46, 54, 46, 19, 36, 48, 54, 26, 40, 28, 42, 4, 12, 52, 46, 124, 57, 25, 38, 26, 52, 116, 38, 120, 46, 26, 58, 80, 60, 28, 22, 127, 82, 12, 66, 126, 94, 12, 70, 51, 72, 98, 122, 12, 94, 20, 78, 58, 121, 126, 82, 216, 66
OFFSET
1,2
FORMULA
a(n) = A003987(n, A001065(n)).
a(n) = A000203(n) - 2*A318458(n).
MATHEMATICA
Array[BitXor[#, DivisorSigma[1, #] - #] &, 100] (* Paolo Xausa, Dec 16 2024 *)
PROG
(PARI) A318457(n) = bitxor(n, sigma(n)-n);
CROSSREFS
Cf. A000396 (positions of zeros).
Sequence in context: A165794 A075270 A067872 * A198501 A230072 A345947
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Aug 26 2018
STATUS
approved