15.08.2013 Views

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

General Computer Science; Problems and Solutions for ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Problem 1.22 (A function on natural numbers)<br />

Figure out the function on natural numbers defined by the following equations:<br />

Solution:<br />

The function η halves its argument.<br />

η(o) = o<br />

η(s(o)) = o<br />

η(s(s(n))) = s(η(n))<br />

23<br />

15pt<br />

5min

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!