<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Padovan sequence - Page 4 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Padovan_sequence&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Padovan_sequence&amp;p=5">3.Next</a>
</p>
<p>as they are discovered,one can create an infinite number of further recurrences by repeatedly replacing  by </p>

<p>The <a href="page.php?w=Perrin_pseudoprime">Perrin sequence</a> satisfies the same recurrence relations as the Padovan sequence, although it has different initial values.</p>

<p>The Perrin sequence can be obtained from the Padovan sequence by the following formula:</p>

<p>
:</p>

<p><big>Extension to negative parameters</big></p>
<p>As with any sequence defined by a recurrence relation, Padovan numbers P(m) for m<0 can be defined by rewriting the recurrence relation as</p>

<p>
:</p>

<p>Starting with m = -1 and working backwards, we extend P(m) to negative indices:</p>

<p>
:</p>

<p><big>Sums of terms</big></p>
<p>The sum of the first n terms in the Padovan sequence is 2 less than P(n&nbsp;+&nbsp;5), i.e.</p>

<p>
:</p>

<p>Sums of alternate terms, sums of every third term and sums of every fifth term are also related to other terms in the sequence:</p>

<p>
: </p>

<p>
:</p>

<p>
: </p>

<p>
:</p>

<p>
:</p>

<p>
: </p>

<p>Sums involving products of terms in the Padovan sequence satisfy the following identities:</p>

<p>
:</p>

<p>
:</p>

<p>
:</p>

<p><big>Other identities</big></p>
<p>The Padovan sequence also satisfies the identity</p>

<p>
:</p>

<p>The Padovan sequence is related to sums of <a href="page.php?w=binomial_coefficient">binomial coefficient</a>s by the following identity:</p>

<p>
:</p>

<p>For example, for k = 12, the values for the pair (m,&nbsp;n) with 2m&nbsp;+&nbsp;n = 12 which give non-zero binomial coefficients are (6,&nbsp;0), (5,&nbsp;2) and (4,&nbsp;4), and:</p>

<p>
:</p>

<p><big>Binet-like formula</big></p>
<p>The Padovan sequence numbers can be written in terms of powers of the <a href="page.php?w=root_of_a_polynomial">roots</a> of the equation</p>

<p>
:</p>

<p>This equation has 3 roots; one <a href="page.php?w=real_number">real</a> root p (known as the <a href="page.php?w=plastic_ratio">plastic ratio</a>) and two <a href="page.php?w=complex_conjugate">complex conjugate</a> roots q and r. Given these three roots, the Padovan sequence can be expressed by a formula involving p, q and r&thinsp;:</p>

<p>
:</p>

<p>where a, b and c are constants.</p>

<p>Since the <a href="page.php?w=absolute_value">absolute value</a>s of the <a href="page.php?w=complex_number">complex</a> roots q and r are both less than 1 (and hence p is a <a href="page.php?w=Pisot-Vijayaraghavan_number">Pisot-Vijayaraghavan number</a>), the powers of these roots <a href="page.php?w=limit_of_a_sequence">approach</a> 0 for large n, and  tends to zero.</p>

<p>For all , P(n) is the <a href="page.php?w=nearest_integer">integer closest</a> to . Indeed,  is the value of constant a above, while b and c are obtained by replacing p with q and r, respectively.</p>

<p>The ratio of successive terms in the Padovan sequence approaches p, which has a value of approximately 1.324718. This constant bears the same relationship to the Padovan sequence and the <a href="page.php?w=Perrin_sequence">Perrin sequence</a> as the <a href="page.php?w=golden_ratio">golden ratio</a> does to the <a href="page.php?w=Fibonacci_sequence">Fibonacci sequence</a>.</p>

<p><big>Combinatorial interpretations</big></p>
<p>
* P(n) is the number of ways of writing n&nbsp;+&nbsp;2 as an ordered sum in which each term is either 2 or 3 (i.e. the number of <a href="page.php?w=composition_%28number_theory%29">compositions</a> of n&nbsp;+&nbsp;2 in which each term is either 2 or 3). For example, P(6) = 4, and there are 4 ways to write 8 as an ordered sum of 2s and 3s:</p>

<p>
::2 + 2 + 2 + 2  ;  2 + 3 + 3  ;  3 + 2 + 3  ;  3 + 3 + 2</p>

<p>
* The number of ways of writing n as an ordered sum in which no term is 2 is P(2n&nbsp;&minus;&nbsp;2). For example, P(6) = 4, and there are 4 ways to write 4 as an ordered sum in which no term is 2:</p>

<p>
::4  ;  1 + 3  ;  3 + 1  ;  1 + 1 + 1 + 1</p>

<p>
* The number of ways of writing n as a palindromic ordered sum in which no term is 2 is P(n). For example, P(6) = 4, and there are 4 ways to write 6 as a palindromic ordered sum in which no term is 2:</p>

<p>
::6  ;  3 + 3  ;  1 + 4 + 1  ;  1 + 1 + 1 + 1 + 1 + 1</p>

<p>
* The number of ways of writing n as an ordered sum in which each term is <a href="page.php?w=parity_%28mathematics%29">odd</a> and greater than 1 is equal to P(n&nbsp;&minus;&nbsp;5). For example, P(6) = 4, and there are 4 ways to write 11 as an ordered sum in which each term is odd and greater than 1:</p>

<p>
::11 ; 5 + 3 + 3 ; 3 + 5 + 3 ; 3 + 3 + 5</p>

<p>
* The number of ways of writing n as an ordered sum in which each term is <a href="page.php?w=modular_arithmetic">congruent</a> to 2 mod 3 is equal to P(n&nbsp;&minus;&nbsp;4). For example, P(6) = 4, and there are 4 ways to write 10 as an ordered sum in which each term is congruent to 2 mod 3:</p>

<p>
::8 + 2  ;  2 + 8  ;  5 + 5  ;  2 + 2 + 2 + 2 + 2</p>

<p><big>Generating function</big></p>
<p>The <a href="page.php?w=generating_function">generating function</a> of the Padovan sequence is</p>

<p>
:</p>

<p>This can be used to prove identities involving products of the Padovan sequence with <a href="page.php?w=geometric_series">geometric terms</a>, such as:</p>

<p>
:<br/>
:</p>

<p><big> Generalizations </big></p>
<p>In a similar way to the <a href="page.php?w=Fibonacci_number">Fibonacci number</a>s that can be generalized to a set of <a href="page.php?w=polynomial">polynomial</a>scalled the <a href="page.php?w=Fibonacci_polynomials">Fibonacci polynomials</a>, the Padovan sequence numbers can be generalized toyield the <a href="page.php?w=Padovan_polynomials">Padovan polynomials</a>.</p>

<p><big> Padovan L-system </big></p>
<p>If we define the following simple grammar:</p>

<p>
:     <b>variables</b> :   A  B  C<br/>
:     <b>constants</b> :   none<br/>
:     <b>start</b>     :   A<br/>
:     <b>rules</b>     :   (A &rarr; B), (B &rarr; C), (C &rarr; AB)</p>

<p>then this Lindenmayer system or <a href="page.php?w=L-system">L-system</a> produces the following sequence of strings:</p>

<p>
:     n = 0 : A<br/>
:     n = 1 : B<br/>
:     n = 2 : C<br/>
:     n = 3 : AB<br/>
:     n = 4 : BC<br/>
:     n = 5 : CAB<br/>
:     n = 6 : ABBC<br/>
:     n = 7 : BCCAB <br/>
:     n = 8 : CABABBC</p>

<p>and if we count the length of each string, we obtain the Padovan numbers:</p>

<p>
:    1, 1, 1, 2, 2, 3, 4, 5, ...</p>

<p>Also, if you count the number of As, Bs and Cs in each string, then for the nthstring, you have P(n&nbsp;-&nbsp;5) As, P(n&nbsp;-&nbsp;3) Bs and P(n&nbsp;-&nbsp;4) Cs.  The count of BB pairsand CC pairs are also Padovan numbers.</p>

<p><big> Cuboid spiral </big></p>
<p>A spiral can be formed based on connecting the corners of a set of 3-dimensional <a href="page.php?w=cuboid">cuboid</a>s.This is the <a href="page.php?w=Padovan_cuboid_spiral">Padovan cuboid spiral</a>. Successive sides of this spiral have lengths that arethe Padovan numbers multiplied by the <a href="page.php?w=square_root_of_2">square root of 2</a>.</p>

<p><big> Pascal's triangle </big></p>
<p><a href="page.php?w=Erv_Wilson">Erv Wilson</a> in his paper The Scales of Mt. Meru observed certain diagonals in <a href="page.php?w=Pascal%27s_triangle">Pascal's triangle</a> (see diagram) and drew them on paper in 1993. The Padovan numbers were discovered in 1994. Paul Barry (2004) observed that these diagonals generate the Padovan sequence by summing the diagonal numbers.</p>

<p><big> Geometric analogies </big></p>
<p>It is also analogous to the <a href="page.php?w=Fibonacci_sequence">Fibonacci sequence</a> in the geometric sense; the Fibonaccis make a square spiral and the Padovans make a triangular one.</p>

<p><big>References</big></p>
<p>
* Ian Stewart, A Guide to Computer Dating (Feedback), Scientific American, Vol. 275, No. 5, November 1996, Pg. 118.</p>

<p><big>External links</big></p>
<p>
*<br/>
*</p>

<p></p>
<p>
<a accesskey="1" href="page.php?w=Padovan_sequence&amp;p=3">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Padovan_sequence&amp;p=5">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
