Idempotent functions

2020 VietMX 0

Some time ago Leonid have known about idempotent functions. Idempotent function defined on a set {1, 2, …, n} is such function , that for any  the formula g(g(x)) = g(x) holds. Let’s denote as f (k)(x) the function f applied k times to the value x. […]