Skip to content

Instantly share code, notes, and snippets.

@keevie
Created January 2, 2017 01:55
Show Gist options
  • Save keevie/f277001045d8ee953fe867369fd33da2 to your computer and use it in GitHub Desktop.
Save keevie/f277001045d8ee953fe867369fd33da2 to your computer and use it in GitHub Desktop.
def fibs_sum(n)
return 1 if n == 1
return 2 if n == 2
fibs_sum(n - 1) + fibs_sum( n - 2) + 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment