title: Begineers learning to Fibonnaci in R. Ratios
body: <p>I am a begineer trying to learn R. I have the following code to find the 20 first Fibon</p>
  <pre><code>Fibonacci &lt;- numeric(20)
  Fibonacci[1] &lt;- Fibonacci[2] &lt;- 1
  for (i in 3:20) Fibonacci[i] &lt;- Fibonacci[i - 2] + Fibonacci[i - 1]
  print(Fibonacci)
  </code></pre>
  <p>This works and gives me the first 20 numbers. However I want to try to find the ratio between a Fibonacci number and the previous Fibonacci number for every element n in {3,..,20}. How would this simply be done? I have tried</p>
  <pre><code>Fibonacci &lt;- numeric(20)
  Fibonacci[1] &lt;- Fibonacci[2] &lt;- 1
  for (i in 3:20) Fibonacci[i] &lt;- Fibonacci[i - 2] + Fibonacci[i - 1]
  print(Fibonacci)
  q&lt;-c(Fibonacci)
  lists&lt;-c()
  for(i in 3:20)
  list[[i]] &lt;- q[i]/q[i-1]
  print(list)
  </code></pre>
  <p>Where my idea is to make a vector with the Fibonacci numbers (q) and the make a list with all the altered elements to find the ratio and then print them out. Any suggestions?</p>
  <p>New poster here and extremly new to R</p>