It's no error, it stems from the fact that there are two different ways to compose permutations (and functions, more generally).
Each person/book/article has their own convention about whether functions act on the left or on the right. That is, if you want to apply a function $f$ to a point $x$, do you choose the more universal $f(x)$, or the "backwards" $(x)f$ way that is essentially unique to (some) algebraists?
One benefit of the latter is that $f \circ g$ really means "do $f$ first, then $g$": we would compute $(x)(f \circ g) = ((x)f)g$. It's also a bit nicer for permutations, in some sense. We always work left to right. Anyone choosing this convention is going against the grain, and should be specifying this somewhere in the book.
As a personal anecdote, a few of my algebra professors were students of the group-theorist Martin Isaacs, Isaacs being the biggest proponent of the "functions act on the right" convention (that I'm personally aware of). They preferred his notation, accordingly. In the basic abstract algebra courses, they used the usual "on the left" convention (as do most textbooks, including the one we were using). But then when the courses reached the graduate level, they switched to their more familiar "on the right" style. Because of this slightly-jarring transition, I've been rather aware of the issue. I learned somewhat recently that one of the classic algebra texts also use this "algebraist's" convention; I think it's Hungerford, but I'm not sure (hopefully somebody can remind me).
Now that I think about it, this explains why the following is the second exercise in Isaacs' Algebra:
Let $G$ be any group. For $x \in G$, let $r_x$ and $l_x$ be the mappings $G \to G$ defined by $$(g)r_x = gx \quad \text{and} \quad (g)l_x = xg,$$ or in other words, by right and left multiplication by $x$ on $G$. Let $R = \{r_x \mid x \in G\}$ and $L = \{l_x \mid x \in G\}.$ Show that $R$ and $L$ are permutation groups on $G$ and that $R \cong G \cong L$.
to show that the two different conventions are equivalent in the sense that they yield isomorphic groups!
See here for the discussion on MathOverflow.
p^sreturns the image of the pointpunder the permutations, and this conveniently ensures that(p^s)^t=p^(s*t). For example, both(1^(1,2))^(2,3)and1^((1,2)*(2,3))return 3. – Olexandr Konovalov May 18 '16 at 18:42