| 1 | initial version |
When you define A, the (1,4)(2,3) looks using the tuple (1,4) as a function to be called at (2,3), which explains your error.
If you want A be a list of elements of G you must make it explicit:
sage: A=[G((1,2)), G((1,3,2)), G((1,4)), G([(1,4),(2,3)]),G((2,4)),G((2,4,3)),G((3,4)),G((2,3,4))]
sage: A
[(1,2), (1,3,2), (1,4), (1,4)(2,3), (2,4), (2,4,3), (3,4), (2,3,4)]
Then, you can do:
sage: b=[G((1,5))*a for a in A]
sage: b
[(1,5,2),
(1,5,3,2),
(1,5,4),
(1,5,4)(2,3),
(1,5)(2,4),
(1,5)(2,4,3),
(1,5)(3,4),
(1,5)(2,3,4)]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.