OFFSET

1,2

COMMENTS

The partial XOR sums are given by A295907.

This sequence is a "binary" variant of A019444.

This sequence has connections with A286681; graphically, both sequences have similar fractal features; in the scatterplot of the current sequence, the rays emerging from the origin correspond to the numerous terms a(n) that are multiples of n.

LINKS

Rémy Sigrist, Table of n, a(n) for n = 1..10000

Rémy Sigrist, Scatterplot of the first 2500000 terms

PROG

(PARI) s = 0; x = 0; for (n=1, 65, for (k=1, oo, if (!bittest(s, k) && (xx=bitxor(x, k))%n==0, x = xx; s += 2^k; print1 (k ", "); break)))

CROSSREFS

KEYWORD

AUTHOR

Rémy Sigrist, Dec 04 2017

STATUS

approved