$11$ | $= 3 + 4 + 4 = 4 + 3 + 4$ $= 4 + 4 + 3.$ |
$\Fib(n):$
$\quad \mathbf{if}\ n = 0\ \mathrm{or}\ n = 1\ \mathbf{then}$
$\quad \quad f = n$
$\quad \mathbf{else}$
$\quad \quad f = \Fib(n - 1) + \Fib(n - 2)$
$\quad \mathbf{return}\ f$
$\ElisaDrinksCider(n):$
$\quad \mathbf{if}\ n = 1\ \mathbf{then}$
$\quad \quad \text{then order Fibonachos}$
$\quad \mathbf{else}$
$\quad \quad \ElisaDrinksCider\left(n \middle/ 2 \right)$
$\quad \quad \mathrm{drink}\ n\ \text{bottles of cider}$
$\quad \quad \ElisaDrinksCider\left(n \middle/ 2 \right)$