login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A098964 Number of elements in the free semigroup on 2 generators x, y which can be constructed from x and y using at most n multiplications. 0
2, 6, 18, 62, 266, 1494, 10862 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
EXAMPLE
a(2)=18 because we can construct the following 18 elements using at most 2 multiplications: x, y (0 multiplications), xy, yx, x^2, y^2 (1 multiplication), xyx, yx^2, x^3, y^2x, xy^2, yxy, x^2y, y^3, (xy)^2, (yx)^2, x^4, y^4 (2 multiplications). Note that despite being a word of length 4, (xy)^2 can be produced in just two multiplications; first calculate z=xy then calculate z^2.
PROG
(GAP) # Calculate the list [ a(1) ... a(n) ] semigroupcount := function(n) local G, x, y, f, ans; G := FreeSemigroup("x", "y"); x := G.1; y := G.2; ans := List([1..n+1], x->[]); f := function(wds) local i, j, l, w, newwds; l := Length(wds); if l > 2 then AddSet(ans[l-1], wds[l]); fi; if l < n + 2 then for i in [1..l] do for j in [1..l] do w := wds[i] * wds[j]; if not w in wds then newwds := Concatenation(wds, [w]); f(newwds); fi; od; od; fi; end; f([x, y]); return List(ans, x->Size(x) + 2); end;
CROSSREFS
Sequence in context: A150055 A150056 A204686 * A079469 A150057 A150058
KEYWORD
nonn
AUTHOR
Simon Nickerson (simonn(AT)maths.bham.ac.uk), Oct 22 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)