On absorption in semigroups and $n$-ary semigroups (Logical Methods in Computer Science, 2015)