Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    \$\begingroup\$ Oh god. It took me much longer than it should have to realize why you were "commenting out" that 20 on the second line :P \$\endgroup\$ Commented Jan 4, 2017 at 13:14
  • \$\begingroup\$ @xnor, Any reference to this magic formula? \$\endgroup\$ Commented Jan 4, 2017 at 13:43
  • \$\begingroup\$ @TheChetan: possibly a(n) = (-10 + (5-3*sqrt(5))*(2-sqrt(5))^n + (2+sqrt(5))^n*(5+3*sqrt(5)))/20 (Colin Barker, Nov 26 2016) from the OEIS page \$\endgroup\$ Commented Jan 4, 2017 at 13:50
  • \$\begingroup\$ @TheChetan bit late, but it's Binet's formula \$\endgroup\$ Commented Nov 6, 2022 at 14:16