OFFSET

0,2

LINKS

Rémy Sigrist, Table of n, a(n) for n = 0..8192

FORMULA

Conjecture: a(n) = 1 iff n > 0 and n belongs to A000918.

EXAMPLE

The first terms, alongside the corresponding rows of A355320, are:

n a(n) n-th row of A355320

- ---- -------------------------------------------------------------

0 0 1

1 3 1 (0 0 0) 1

2 1 1 0 0 1 (2) 1 0 0 1

3 3 1 0 0 2 3 (2 0 2) 3 2 0 0 1

4 3 1 0 0 3 4 3 1 (6 8 6) 1 3 4 3 0 0 1

5 7 1 0 0 4 5 4 3(12 16 12 6 12 16 12) 3 4 5 4 0 0 1

PROG

(PARI) { rr = 0; r = 1; for (n=0, 76, print1 (max(0, 2*valuation(r >> (2*n), 2)-1)", "); [rr, r] = [r, bitxor(bitxor(r, r<<4), bitxor(rr<<3, rr<<5))]) }

CROSSREFS

KEYWORD

nonn

AUTHOR

Rémy Sigrist, Jun 29 2022

STATUS

approved