Say that a magma $\mathcal{M}=(M;*)$ is unary-rich iff for every function $f:M\rightarrow M$ there is a (one-variable, parameter-free) term $t_f$ such that $t_f^\mathcal{M}=f$. For example:
The one-element magma (and the empty magma if we permit such) is trivially unary-rich.
A bit less trivially, there is a two-element unary-rich magma (in fact exactly 0ne up to isomorphism): namely $M=\{a,b\}$ and $*$ given by $$a*a=b, a*b=a, b*a=a, b*b=b$$ via the terms, $x, xx, (xx)x,$ and $(xx)(xx)$.
My question is:
Are there unary-rich magmas of every (or at least arbitrarily large) finite cardinality?
Of course every unary-rich magma is finite since there are only countably many terms. Note that if $\vert M\vert=n<\omega$ then $M$ is unary-rich iff $M$ has $n^n$-many distinct one-variable terms up to equality-as-functions.
Already the case of $3$-element magmas seems interesting and difficult to brute-force.
G. Rousseau, Completeness in finite algebras with a single operation, Proc. Amer. Math. Soc. 18 (1967) 1009-1013
This paper proves that a finite algebra with one $n$-ary operation, $n>1$, is primal iff it has no proper subalgebra, no non-identity automorphism, and no proper nontrivial congruence. Therefore the following are equivalent for a finite algebra with one binary operation: