🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.graph-ti
Article #263

Re: Graph-TI - Finonacci Program

#263
From: Conrad Walter Curry
Date: Mon, 31 Oct 1994 15:31
30 lines
1689 bytes
Daniel G Millar (dmillar@sas.upenn.edu) wrote:
: Although I did not read the original post, I thought I may be able to
: assist Mr. Dunton with an easy program to find the nth Finonacci number.
: Pat Mara showed an intuitive recursive method- so I shall address a
: NONrecursive method.  There is the program I quickly wrote on my TI-81.

: (1+5^(1/2))/2->A
: (1-5^(1/2))/2->B
: Disp "Fib Num?"
: Input N
: (1/5^(1/2))(A^N-B^N)->X
: Disp X

: The output is the Nth Fibonacci number.


: ...Dan
: dmillar@mail.sas.upenn.edu

	What you have programmed is part of a Lucas Sequence and finding
the Nth Fibonacci number can actually be found more easily if you use
matrices.

	If you define a matrix as

                        | 1  1 |
                        | 1  0 |

 and raise it to the N power the upper right and lower left numbers will
be the Nth Fibonacci numbers.
Technical Details
Message-ID: <3932jp$imk@server.st.usm.edu>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!darwin.sura.net!nntp.st.usm.edu!whale.st.usm.edu!cwcurry
References: <9410280003.AA25244@mail1.sas.upenn.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 104512,593fe677ec60fb68
X-Google-Attributes: gid104512,public
X-Google-ArrivalTime: 1994-10-31 21:44:32 PST
Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-ulm.de!news.belwue.de!zib-berlin.de!zrz.TU-Berlin.DE!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!darwin.sura.net!nntp.st.usm.edu!whale.st.usm.edu!cwcurry
From: cwcurry@whale.st.usm.edu (Conrad Walter Curry)
Newsgroups: bit.listserv.graph-ti
Subject: Re: Graph-TI - Finonacci Program
Date: 31 Oct 1994 15:31:05 GMT
Organization: University of Southern Mississippi
Lines: 30
Message-ID: <3932jp$imk@server.st.usm.edu>
References: <9410280003.AA25244@mail1.sas.upenn.edu>
NNTP-Posting-Host: whale.st.usm.edu
X-Newsreader: TIN [version 1.2 PL1]