Fibonacci

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.

Answer:

5 + 8 = 13

Fibonacci

Smokestack in Turku, Finland

 

This problem was studied and solved by a famous mathematician, Fibonacci. The numbers of rabbits form the Fibonacci series. This series has important applications in several problems that have nothing to do with rabbits. Call the N'th number in the series fib(N):

Fibonacci Series
N12345 678910
fib(N)11235 813213455

Here is the rule for filling the chart, rewritten for fib(N):

fib( N ) = fib( N-1 ) + fib( N-2 )

Look at the chart to verify that the rule works.

QUESTION 15:

Is the rule a correct recursive definition?