How to answer with formula
Good Question! After 6 years of math classes in college, and 30+ years of teaching (during which I took many summer classes) I've never seen an explicit formula for the nth term of the Fibonacci sequence. Study more math and maybe you can discover the explicit formula that you want.
The nth hexagonal number is given by the formula: hn = 2n * (2n - 1) / 2
Formula for nth termTn = a + (4n - 1) {where a is the first term and n is natural number}
The nth triangular number is 0.5*n*(n+1)
How to answer with formula
what? Assuming you wanted an algorithm to find the nth number in the Fibonacci sequence: double Fib(int i) { double x = 1; double y = 1; if (i
Good Question! After 6 years of math classes in college, and 30+ years of teaching (during which I took many summer classes) I've never seen an explicit formula for the nth term of the Fibonacci sequence. Study more math and maybe you can discover the explicit formula that you want.
The nth hexagonal number is given by the formula: hn = 2n * (2n - 1) / 2
x(n)=x(n-1)+x(n-2) n, n-1 and n-1 are subscript.
No, it will be a formula, because "the nth term" means that you have not defined exactly which term it is. So, you make a formula which works for ANY term in the sequence.
Formula for nth termTn = a + (4n - 1) {where a is the first term and n is natural number}
The nth formula is Un = 1422303846 for all n.
The nth triangular number is 0.5*n*(n+1)
This is the Fibonacci sequence, where the number is the sum of the two preceding numbers. The nth term is the (n-1)th term added to (n-2)th term
The Fibonacci seuqnce is defined iteratively as follows: U1 = 1, U2 = 1 and Un = Un-2 + Un-1 for n>2
the first seven Fibonacci numbers are 1,1,2,3,5,8,13. 13 is a Fibonacci number.