%I #12 Dec 12 2022 12:15:09
%S 0,1,2,1,3,4,2,5,4,5,6,8,2,11,2,13,6,14,10,9,9,12,14,16,2,24,6,29,5,
%T 23,3,27,12,23,9,26,17,13,26,19,15,32,4,46,2,51,1,45,6,48,6,49,7,41,9,
%U 47,10,49,17,37,21,38,23,36,24,49,30,48,24,52,22,45
%N a(0) = 0, and for any n >= 0, a(n+1) is the number of ways to write a(n) = a(i) XOR ... XOR a(j) with 0 <= i <= j <= n (where XOR denotes the bitwise XOR operator).
%C This sequence is a variant of A331614 and A332518; here we use binary XOR, there addition and multiplication, respectively.
%C This sequence is unbounded (if the sequence was bounded, with greatest value m, then, by the pigeonhole principle, some value, say v, would appear infinitely many times, and the next value after the (m+1)-th occurrence of v would be > m, a contradiction).
%H Rémy Sigrist, <a href="/A358799/b358799.txt">Table of n, a(n) for n = 0..10000</a>
%H Rémy Sigrist, <a href="/A358799/a358799.txt">C program</a>
%H Rémy Sigrist, <a href="/A358799/a358799.png">Scatterplot of the first 250000 terms</a>
%e The first terms, alongside the corresponding pairs (i,j)'s, are:
%e n a(n) (i,j)'s
%e -- ---- ---------------------------------------------------------
%e 0 0 N/A
%e 1 1 (0,0)
%e 2 2 (0,1), (1,1)
%e 3 1 (2,2)
%e 4 3 (0,1), (1,1), (3,3)
%e 5 4 (0,2), (1,2), (2,3), (4,4)
%e 6 2 (2,5), (5,5)
%e 7 5 (0,3), (1,3), (2,2), (3,4), (6,6)
%e 8 4 (0,5), (1,5), (4,6), (7,7)
%e 9 5 (2,5), (3,6), (4,8), (5,5), (8,8)
%e 10 6 (0,5), (1,5), (3,8), (4,6), (7,7), (9,9)
%e 11 8 (0,8), (1,8), (2,6), (3,5), (3,10), (5,6), (6,9), (10,10)
%e 12 2 (6,11), (11,11)
%o (C) See Links section.
%Y Cf. A331614, A332518.
%K nonn,base
%O 0,3
%A _Rémy Sigrist_, Dec 06 2022