TITLE: singly-generated monoids in mathematics
QUESTION [13 upvotes]: There are many, many examples in mathematics of operations $s$ satisfying $ss = s$ (i.e., idempotent operations).
Not quite as common, but still numerous, are operations $s$ satisfying $sss = s$, specifically, Galois connections from a poset to itself; see my recent post Abstract nonsense attribution and the articles referred to in replies to that post.
My (casual) question is, are there examples of important operations satisfying other relations of this kind, such as $sss = ss$?  (This particular relation reminds me of the story of an article by X that ends with three footnotes: "The author thanks Y for translating the preceding article", "The author thanks Y for translating the preceding footnote", and "The author thanks Y for translating the preceding footnote"; infinite regress is avoided because, as X explained, "While I may not be able to translate a sentence I can certainly copy one!" Can anyone provide a web-reference for this? I think it's in Littlewood's Miscellany.)

REPLY [5 votes]: While reading your question I was reminded of Kuratowski's closure-complement problem.  Here we start with an arbitrary subset $X$ of a topological space, and are allowed to apply the two operations of closure and complement.  It turns out that for any $X$, we get at most 14 distinct sets by applying these two operations.  If we let $k$ denote the closure operator and $c$ denote the complement operator, then the following relations imply the result

$kk=k$
$cc=id$, and 
$kckckck=kck$.

So, to answer the question, if we set $s=ck$ (take the closure of a set and then take the complement of the result), we get the relation $ssss=ss$.
I'll end by mentioning that there do exist $X$ where all 14 sets are possible.  For example, under the usual topology of the reals,
$(0,1) \cup (1,2) \cup \{3\} \cup ([4,5] \cap \mathbb{Q})$
is one such set.