A169675 Lexicographically earliest de Bruijn sequence for n = 3 and k = 2.
0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0
Offset: 0
Examples
Periodic with period 8, the period being 00010111.
Links
- Frank Ruskey, Generate de Bruijn sequences
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,1).
Programs
-
Mathematica
LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 1},{0, 0, 0, 1, 0, 1, 1, 1},99] (* Ray Chandler, Aug 25 2015 *) PadRight[{},120,{0,0,0,1,0,1,1,1}] (* Harvey P. Dale, Aug 01 2024 *)
Comments