OFFSET
0,3
EXAMPLE
a(2) = 2^2 xor 2*3/2 = 4 xor 3 = 7.
MATHEMATICA
Table[BitXor[n^2, (n(n+1))/2], {n, 0, 60}] (* Harvey P. Dale, Aug 11 2017 *)
PROG
(Python)
for n in range(99):
print((n*n) ^ (n*(n+1)//2), end=", ")
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Jun 08 2013
STATUS
approved