### Video Transcript

Find the number of terms in the geometric sequence given the first term is 21, the last term is one and five sixteenths, and the sum of all the terms is 40 and eleven sixteenths.

In this question, weβre asked to find the number of terms in a geometric sequence. Well, weβre given some properties of the geometric sequence. Weβre told its first term is 21, its last term is one and five sixteenths, and the sum of all terms is 40 and eleven sixteenths. To answer this question, we start by recalling a geometric sequence is one where the ratio of successive terms remains constant. And in particular, if the geometric sequence has initial term π and ratio of successive terms π, then we generate the next term in the sequence by multiplying the previous by π. We get the sequence π, ππ, ππ squared, ππ cubed, and so on.

In this question, weβre told the first term of this geometric sequence is 21. So, our value of π is 21. And weβre told the last term of this geometric sequence is one and five sixteenths. So, if we say that our geometric sequence has π terms, then one and five sixteenths will be π times π to the power of π minus one since this is the expression for the πth term of the sequence. And of course, we know our value of π is 21. So, we can rewrite this as 21 times π to the power of π minus one is equal to one and five sixteenths, where weβre going to rewrite this as an improper fraction; itβs 21 divided by 16.

We might be tempted to try and solve this equation for π. However, this is an equation in two unknowns; we donβt know the value of π and we donβt know the value of π. In fact, thereβs an infinite number of solutions, so we need more information to determine these values. We need to use the third piece of information weβre given in the question. The sum of all of the terms of this geometric sequence is 40 and eleven sixteenths. And we can do this by recalling the following formula for the sum of the first π terms of a geometric sequence. This is given by π sub π is equal to π times one minus π to the πth of power all divided by one minus π provided the ratio π is not equal to one. We want to apply this to find an expression for the sum of the first π terms of this geometric sequence.

However, to do this, we do need to check if π is equal to one. And we can see that π is not equal to one. Because if π was equal to one, then every single term in our geometric sequence would be equal to π. However, weβre told in the question the first term is 21, but the last term is one and five sixteenths. These are not equal, so π cannot be equal to one. Therefore, we can apply this formula to find the sum of the first π terms. This gives us that 40 and eleven sixteenths is equal to 21 times one minus π to the πth of power all divided by one minus π. And as we did before, weβre going to write this as an improper fraction. Itβs 651 divided by 16.

We now have two equations in two variables, so we need to solve these for the values of π and π. Thereβs a few different ways of doing this. Weβre going to start by rearranging this equation. Weβll start by dividing through by 21. This gives us π to the power of π minus one is equal to one divided by 16. Now that we have an expression for π to the power of π minus one, we want to substitute this into our other equation. And we can do this by noticing π to the πth power is π multiplied by π to the power of π minus one. Therefore, if we substitute π to the power of π minus one is equal to one divided by 16 into this equation, we get 651 divided by 16 is equal to 21 multiplied by one minus π times one over 16 all divided by one minus π.

Now, we have an equation entirely in terms of π. So, we can solve this equation for π. First, weβre going to divide through by 21. This gives us the following. Next, we can cross multiply or multiply both sides of the equation through by one minus π and both sides of the equation through by 16. This gives us 31 times one minus π is equal to 16 multiplied by one minus π over 16. We can then distribute over our parentheses and simplify. We get 31 minus 31π is equal to 16 minus π. And now, we can just rearrange and solve for π. We get 15 is equal to 30π. And then, we divide through by 30 to see that π is equal to one-half. And we can substitute this value of π back into one of our equations to find the value of π. For example, we can show that one-half raised to the power of π minus one must be equal to one over 16.

And thereβs many different ways of solving this for π. One way is to rewrite one over 16 as one-half all raised to the fourth power. Therefore, we have one-half raised to the power of π minus one is equal to one-half raised to the fourth power. Thereβs a few different ways of solving this. We could take log base two of both sides of the equation or log base one-half of both sides of the equation. Or we can use rules of exponents. We know the base one-half is positive and itβs not equal to one. Therefore, for both sides of the equations to be equal, the exponents of both sides of the equation must be equal. π minus one must be equal to four, which, of course, proves π is five. And of course, π is the number of terms of the geometric sequence which we weβre asked to determine. Therefore, the answer to this question is five.