OFFSET
0,6
COMMENTS
Sequence A133925 counts the equivalence classes with exactly one element.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Problem posed on the Art of Problem Solving forum, String Replacement
FORMULA
a(n) = a(n-2) + a(n-3) - a(n-6). - Franklin T. Adams-Watters, Oct 12 2013
G.f.: 1/(1-x^2-x^3+x^6). [Joerg Arndt, Oct 12 2013]
EXAMPLE
a(5) = 2 because the two compositions 23 and 32 are inequivalent. a(6) = 1 because the two compositions 222 and 33 are equivalent.
MATHEMATICA
a=b=c=d=e=0; Delete[Table[z=a+b+c-e+1; a=b; b=c; c=d; d=e; e=z, {n, 100}], {{1}, {2}}] (* Vladimir Joseph Stephan Orlovsky, Feb 27 2011 *)
PROG
(PARI) Vec( 1/(1-x^2-x^3+x^6) +O(x^66) ) \\ Joerg Arndt, Oct 12 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Joel B. Lewis, Jan 07 2008, Jan 23 2008
EXTENSIONS
More terms from Joerg Arndt, Oct 12 2013
STATUS
approved