<?xml version="1.0" encoding="UTF-8"?>

<record version="1" id="6769">
 <title>example of closed form</title>
 <name>ExampleOfClosedForm</name>
 <created>2005-02-17 21:00:59</created>
 <modified>2005-02-17 21:00:59</modified>
 <type>Example</type>
<parent id="666">closed form</parent>
 <creator id="3" name="drini"/>
 <author id="3" name="drini"/>
 <classification>
	<category scheme="msc" code="11B99"/>
 </classification>
 <preamble>\usepackage{graphicx}
%\usepackage{xypic} 
\usepackage{bbm}
\newcommand{\Z}{\mathbbmss{Z}}
\newcommand{\C}{\mathbbmss{C}}
\newcommand{\R}{\mathbbmss{R}}
\newcommand{\Q}{\mathbbmss{Q}}
\newcommand{\mathbb}[1]{\mathbbmss{#1}}
\newcommand{\figura}[1]{\begin{center}\includegraphics{#1}\end{center}}
\newcommand{\figuraex}[2]{\begin{center}\includegraphics[#2]{#1}\end{center}}
\newtheorem{dfn}{Definition}</preamble>
 <content>Consider the recurrence given by
$x_0 = 7$ and $x_n = 2 x_{n-1}$. Then it can be proved by induction that
$x_n = 2^n\cdot 7$.

The expression $x_n = 2^n \cdot 7$ is a closed form expression the  recurrence given, since it depends exclusively on $n$ , whereas the recurrence depends on $n$ and $x_{n-1}$ (the previous value).
\bigskip

Now consider Fibonacci's recurrence:
\[
f_n = f_{n-1}+ f_{n-2},\qquad f_0 = 1.
\]

It is not a closed formula, since if we wanted to compute $f_{10}$ we would need to know $f_9$, $f_8$ (and for knowing them, the previous terms too). However, such recurrence has a closed formula, known as Binet formula:
\[
f_n = \frac{\left(\frac{1+\sqrt5}{2}\right)^n -\left(\frac{1-\sqrt5}{2}\right)^n }{\sqrt5}.
\]
Binet formula is closed, since if we wanted to compute $f_n$ we only need to substitute $n$ on the previous formula, and no additional information is required.</content>
</record>
