How can I check if a sequence of numbers is a fibonnaci sequence and obtain the next value In R? : <p>How can we create a function to do this? So given these numbers, how can we check whether they are in fact a fibonacci sequence and then predict the next value in the sequence?</p>

<p>1   1    2    3    5<br>
1   2    3    5    8<br>
2   3    5    8   13<br>
3   5    8   13   21<br>
5   8   13   21   34<br>
8  13   21   34   55<br>
13  21   34   55   89<br>
21  34   55   89  144<br>
34  55   89  144  233</p>
