Pages

Thursday, 6 July 2017

Lucas Series

Lucas Numbers similar to the Fibonacci series that often occurs when working with the Fibonacci series. Edouard Lucas (1842-1891) (who gave the name "Fibonacci Numbers" to the series written about by Leonardo of Pisa) studied this second series of numbers: 2, 1, 3, 4, 7, 11, 18, .. called the Lucas numbers in his honour. On this page we examine some of the interesting properties of the Lucas numbers themselves as well as looking at its close relationship with the Fibonacci numbers. The following page generalises further by taking any two starting values.

/* #######    Girfa Student Help ###############
      Lucas Sequesnce Program
      for more program visit : https://girfahelp.blogspot.in/p/c-language-assignment.html
  ##############################################  */
#include<stdio.h>
void main()
{
    int a,b,c;
    clrscr();
    a=1;

    b=3;
    printf("\n\t%d\t%d",a,b);
    c=0;
    while(c<50)
    {
    c=a+b;
     a=b;
     b=c;

     printf("\t%d",c);
    }
   
}

                                  Download Source

No comments:

Post a Comment