With looping I mean that the identity is returned after deriving a function $n$ times.
I know the following examples:
n=1:
$$f(x)= e^x = f'(x) $$
n=2:
$$f(x) = e^{-x} = f''(x) $$
n=4:
$$ f(x) = \sin(x) = f''''(x)$$ with $$f''''(x) = f'''(\cos(x)) = f''(-\sin(x)) = f'(-\cos(x)) =\sin(x)$$
What about $n=3$ in particular? Do you know other loops that work?