You're viewing a comment by Nathan and its responses.

Nathan Permalink
January 14, 2010, 20:14

If instead of

F(n+2) = F(n+1) + F(n)

you use

F(n+2) = 0.54*F(n+1) + 1.72*F(n)

Then F(n+1)/F(n) approaches 1.609, which is even better :)

Comment Responses

Lucky Agrawal Permalink
October 19, 2016, 14:21

can you please send me c# or java code for convert miles to kilometer using fibonacci seriese.

Thanks & regards,
Lucky

bill Permalink
October 26, 2017, 15:11

Heres a javascript solution:

function fib(n) {
var a = [0,1];
	while(a[a.length-1] + a[a.length-2]<=n) {
		a.push(a[a.length-1] + a[a.length-2]);
	}
	return a;
}

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "computer_181": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.