A227320 Binary XOR of proper divisors of n.
0, 1, 1, 3, 1, 0, 1, 7, 2, 6, 1, 2, 1, 4, 7, 15, 1, 15, 1, 8, 5, 8, 1, 6, 4, 14, 11, 14, 1, 6, 1, 31, 9, 18, 3, 21, 1, 16, 15, 20, 1, 26, 1, 26, 1, 20, 1, 14, 6, 21, 19, 16, 1, 6, 15, 26, 17, 30, 1, 4, 1, 28, 25, 63, 9, 58, 1, 52, 21, 38, 1, 33, 1, 38, 17, 50, 13, 54, 1
Offset: 1
Links
- Antti Karttunen, Table of n, a(n) for n = 1..16383
Programs
-
Mathematica
Array[BitXor @@ Most@ Divisors@ # &, 79] (* Michael De Vlieger, Oct 08 2017 *)
-
PARI
A227320(n) = { my(s=0); fordiv(n,d,if(d
Antti Karttunen, Oct 08 2017
Comments