OFFSET
1,2
COMMENTS
Cycle b-> c-> b and a-> b-> c-> a to get 6 similar words in A006156(n+1).
REFERENCES
N. Wirth, Systematisches Programmieren, 1975, ch. 15.4, table 15.68
LINKS
Robert Shelton, Aperiodic words on three symbols, J. Reine Angew. Math. 321 (1981), 195--209. MR0597989 (82m:05004a). See Table 1 on page 207. - N. J. A. Sloane, Jun 22 2014
FORMULA
a(n) = A006156(n+1)/6. [corrected by Michel Marcus, Nov 26 2020]
EXAMPLE
ab~ac (cycle b,c), ab~bc~ca and ac~ba~cb (cycle a,b,c) => a(1) = 6/6 = 1.
MATHEMATICA
(* This program is not convenient for a large number of terms *) a[n_] := a[n] = (1/6)*Length[ DeleteCases[ Tuples[ Range[3], n + 1], {a___, b__, b__, c___}]]; Reap[ Do[ Print["a[", n, "] = ", a[n]]; Sow[a[n]], {n, 1, 12}]][[2, 1]] (* Jean-François Alcover, Jul 24 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank Ellermann, Apr 19 2001
STATUS
approved