1 1 2 1 4 1 N Formula
Program to find the sum of the series 1 a 2 a 2 3 a 3 n a n.
1 1 2 1 4 1 n formula. Multiplying s n by 2 reveals a useful relationship. The sum of the geometric series 1 1 2 1 4 asked by krishna srinivasan on friday dec 22 1995. As n approaches infinity s n tends to 1. I can give you a good approximation if you would prefer.
1 2 1 4 1 8 1 16. 2 c program to find sum of the square of all natural numbers from 1 to n. It contains well written well thought and well explained computer science and programming articles quizzes and practice competitive programming company interview questions. Sum of the reciprocals sum r 1 n 1 r h n where h n is the nth harmonic number.
Find a formula for the general term of the sequence assuming that the pattern of the first few terms continues. . As with any infinite series the infinite sum is defined to mean the limit of the sum of the first n terms as n approaches infinity. Program to find sum of the series 1 3 3 5.
What i want to do in this video is come up with an expression for finding the sum from i equals 0 to n of i squared. I won t go into a full explanation as it too complex. Ln n 1 le sum i 1 n frac1i le ln n 1 this is a rather tight upper limit and lower limit you can use to approximate your answer. Subtracting s n from both sides.
So if i were to expand this out this is equal to 0 squared plus 1 squared plus 2 squared plus 3 squared. A computer science portal for geeks. Program to find length of bridge using speed and length of train. I m now in grade 12.