• Caught warning in the question code: Division by zero on line 9 in Common Control
  • Caught warning in the question code: A non-numeric value encountered on line 215 in fractions.php
  • Caught warning in the question code: Division by zero on line 10 in Common Control
  • Caught warning in the question code: A non-numeric value encountered on line 215 in fractions.php

Use f(0)=1\displaystyle {f{{\left({0}\right)}}}={1} and f(1)=1\displaystyle {f{{\left({1}\right)}}}=-{1} to compute f(4)\displaystyle {f{{\left({4}\right)}}}  given:

 f(n+2)=1f(n)+1f(n+1)\displaystyle {f{{\left({n}+{2}\right)}}}=\frac{{1}}{{f{{\left({n}\right)}}}}+\frac{{1}}{{f{{\left({n}+{1}\right)}}}} 

 f(4)=\displaystyle {f{{\left({4}\right)}}}=