{"id":244,"date":"2009-06-14T15:09:12","date_gmt":"2009-06-14T22:09:12","guid":{"rendered":"http:\/\/new-gro.dyn.hhhh.org\/joeboy\/blog\/?p=244"},"modified":"2010-01-25T14:06:07","modified_gmt":"2010-01-25T21:06:07","slug":"function-to-generate-the-fibonacci-numbers","status":"publish","type":"post","link":"https:\/\/www.hhhh.org\/joeboy\/blog\/?p=244","title":{"rendered":"Function to generate the Fibonacci numbers."},"content":{"rendered":"<p>Write a function to print the Fibonacci numbers.<\/p>\n<p>The fibonacci sequence is a set of numbers formed by<\/p>\n<dl style=\"width: 166px;\">\n<dd><img decoding=\"async\" class=\"tex\" src=\"http:\/\/upload.wikimedia.org\/math\/0\/c\/e\/0cebc512d9a3ac497eda6f10203f792e.png\" alt=\"F_n = F_{n-1} + F_{n-2},\\!\\,\" \/> <\/dd>\n<\/dl>\n<p>with seed values<\/p>\n<dl style=\"width: 198px;\">\n<dd><img decoding=\"async\" class=\"tex\" src=\"http:\/\/upload.wikimedia.org\/math\/9\/e\/4\/9e47cfc063b09aeee2c39ad594759dd8.png\" alt=\"F_0 = 0 \\quad\\text{and}\\quad F_1 = 1.\" \/> <\/dd>\n<\/dl>\n<p>This generates the numbers using the following set of rules&#8230;.<\/p>\n<p><img decoding=\"async\" class=\"tex\" src=\"http:\/\/upload.wikimedia.org\/math\/a\/3\/3\/a335a33b46c74aba618a5bb85a7cbb95.png\" alt=\" \\begin{align} 0 + 1 &amp;= 1 \\\\ 1 + 1 &amp;= 2 \\\\ 1 + 2 &amp;= 3 \\\\ 2 + 3 &amp;= 5 \\\\ 3 + 5 &amp;= 8 \\\\ 5 + 8 &amp;= 13 \\\\  &amp;\\;\\vdots \\end{align} \" \/><\/p>\n<p>So the fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write a function to print the Fibonacci numbers. The fibonacci sequence is a set of numbers formed by with seed values This generates the numbers using the following set of rules&#8230;. So the fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89,&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-244","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts\/244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=244"}],"version-history":[{"count":6,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions"}],"predecessor-version":[{"id":520,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=\/wp\/v2\/posts\/244\/revisions\/520"}],"wp:attachment":[{"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hhhh.org\/joeboy\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}