<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mathematics on Rohit Jha</title><link>https://www.rohitjha.dev/tags/mathematics/</link><description>Recent content in Mathematics on Rohit Jha</description><generator>Hugo</generator><language>en-US</language><copyright>© Rohit Jha. Articles licensed under CC BY-SA 4.0 unless noted.</copyright><lastBuildDate>Thu, 23 Jul 2026 16:53:18 +0530</lastBuildDate><atom:link href="https://www.rohitjha.dev/tags/mathematics/index.xml" rel="self" type="application/rss+xml"/><item><title>0x0012 - Fibonacci sequence – Part 2</title><link>https://www.rohitjha.dev/blog/fibonacci-sequence-part-2/</link><pubDate>Tue, 03 Jan 2012 18:50:27 +0000</pubDate><guid>https://www.rohitjha.dev/blog/fibonacci-sequence-part-2/</guid><description>&lt;p&gt;In this post we’ll compare the various methods of generating Fibonacci sequence terms and implementing the code to recognize Fibonacci terms and to determine index of these terms. These have been discussed mathematically in the &lt;a href="https://www.rohitjha.dev/blog/fibonacci-sequence/"&gt;previous post&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id="generating-fibonacci-terms"&gt;Generating Fibonacci Terms&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Method 1&lt;/strong&gt; – Iterative method&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Using the basic concept of the Fibonacci sequence, that each term is the sum of the previous two terms, the following function in Python generates the &lt;em&gt;n&lt;/em&gt;th term:&lt;/p&gt;</description></item><item><title>0x0011 - Fibonacci sequence</title><link>https://www.rohitjha.dev/blog/fibonacci-sequence/</link><pubDate>Mon, 21 Nov 2011 19:06:33 +0000</pubDate><guid>https://www.rohitjha.dev/blog/fibonacci-sequence/</guid><description>&lt;p&gt;The Fibonacci sequence in mathematics is the following sequence of numbers:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233 …&lt;/strong&gt;&lt;/p&gt;
&lt;h3 id="representation"&gt;Representation&lt;/h3&gt;
&lt;p&gt;By definition, the first two terms are &lt;em&gt;0&lt;/em&gt; and &lt;em&gt;1&lt;/em&gt;, and each of the terms following them are the sum of two previous terms. So, if we say &lt;em&gt;Fn&lt;/em&gt; is the nth term in the Fibonacci sequence, then we can express the sequence recursively as:&lt;/p&gt;</description></item></channel></rss>