(12C) Fibonacci Numbers and Develop the Fibonacci sequence
10-17-2017, 11:42 AM (This post was last modified: 10-27-2017 09:56 AM by Gamo.)
Post: #1
 Gamo Senior Member Posts: 429 Joined: Dec 2016
(12C) Fibonacci Numbers and Develop the Fibonacci sequence
Finding the Fibonacci Number by using program on HP 12C

Code:
 01 ENTER 02 5 03 SQR 04 STO 1 05 ENTER 06   1 07   + 08   2 09   / 10   X<>Y 11   Y^X 12   RCL 1 13   / 14   Fix 0 15   GTO 00

Example: 12 R/S result 144

Result accuracy is best below n<39

Develop the Fibonacci sequence with f1 = 1, f2 = 1
Answer: 1, 1, 2, 3, 5, 8, 13, 21, ...

Program:
Code:
 ENTER ENTER R↓ R↓ +

Instruction: 1 ENTER 1 R/S result 2 and continue pressing R/S
result 3, 5, 8, 13, 21, 34, 55, 89, 144, ..

Instruction: 89 ENTER 144 R/S result 233 and continue pressing R/S
result 377, 610, 987, ...

To develop Fibonacci Numbers automatically add [PSE] and GTO 01 at the end of the program.

Gamo
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)