|
|
A256739
|
|
Unique sequence satisfying SumXOR_{d divides n} a(d) = n for any n>0, where SumXOR is the analog of summation under the binary XOR operation.
|
|
9
|
|
|
1, 3, 2, 6, 4, 6, 6, 12, 10, 12, 10, 12, 12, 10, 8, 24, 16, 30, 18, 24, 16, 30, 22, 24, 28, 20, 18, 20, 28, 24, 30, 48, 40, 48, 32, 60, 36, 54, 40, 48, 40, 48, 42, 60, 40, 58, 46, 48, 54, 36, 32, 40, 52, 54, 56, 40, 40, 36, 58, 48, 60, 34, 32, 96, 72, 120, 66
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Replacing "SumXOR" by "Sum" in the name leads to the Euler totient function (A000010).
Replacing "SumXOR" by "Product" in the name leads to the exponential of Mangoldt function (A014963).
a(p) = p-1 for any prime p>2.
a(2^k) = 2^k+2^(k-1) for any k>0.
The graph of this sequence is quite remarkable. - N. J. A. Sloane, Apr 09 2015
Xor-Moebius transform of natural numbers, A000027. See A295901 for a list of some of the properties of this transform. - Antti Karttunen, Dec 29 2017
|
|
LINKS
|
|
|
FORMULA
|
a(n) = n XOR ( SumXOR_{d divides n and d < n} a(d) ) for any n>0.
(End)
|
|
MATHEMATICA
|
a = Table[0, {16383}];
Do[pa = n; Do[pa = BitXor[pa, a[[d]]], {d, Divisors[n]}]; a[[n]] = pa, {n, Length[a]}];
|
|
PROG
|
(PARI) See Links section.
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|