#!/usr/bin/env ruby def fib(n) if n<2 return n else a, b=0, 1 m=n-1 i=0 while i