On 18 Jun 2008, at 6:36 pm, Andreas Hillqvist wrote: > I can not see how the code will terminate for a negative N? Yes, my stupid mistake. Of course unary minus is available. http://www.erlang.org/doc/reference_manual/part_frame.html Select section 6.12 "Arithmetic expressions" from the table of contents on the left.