How to invoke a tail-call loop expression like Clojure's loop?

Often there are multiple ways to solve one problem. You need to give an example of what you want to do including example input, output and what you tried so far, before anybody would give you a satisfying solution.