A376686 a(n) is the unique k such that A376677(k) is the reversal of A376677(n), or -1 if no such k exists.
Examples
The first terms, alongside the corresponding terms of A376677, are: n a(n) A376677(n) A376677(a(n)) -- ---- ---------- ------------- 1 1 1 1 2 2 2 2 3 3 11 11 4 5 12 21 5 4 21 12 6 6 22 22 7 10 112 211 8 8 121 121 9 12 122 221 10 7 211 112 11 11 212 212 12 9 221 122 13 15 1121 1211 14 21 1122 2211 15 13 1211 1121 16 19 1212 2121
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10304
- Rémy Sigrist, PARI program
- Index entries for sequences related to Kolakoski sequence
Programs
-
PARI
\\ See Links section.
Comments