Gelfand: Chunk 23 - Embedding Progressions

March 24, 2017

As I mentioned at the close of the previous chunk, this next part (Section 43) is one of Gelfand’s now-familiar “moar problems to embed and highlight subtleties and techniques from before” sections.

I used to think them a bit boring. I now realise that it’s in these that a good deal of the gold is hidden.

Consequently I’m going to go slowly. Again, possibly too slowly for some, but my aim is simply to make sure we squeeze out all the goodness and siphon it up into our brainboxes, ready for later deployment.

Problem 204

This is a nice problem to start with. Let’s begin to tackle it as we always do by taking our inputs and laying them out nicely ready for deployment in solutioning.

We know that we can represent a value in an arithmetic progressionkey point, we are going back in time a bit here as the product of a starting value (which we’ll keep calling ), the difference between terms (which we’ll keep calling ), and numbers representing the position of the terms in the progression (which we’ll call and ).

What is more, if two or more terms are to be in the same progression, then they will share the values of and - the starting value and difference respectively. (A small aside: it’s not actually this simple, progressions can have different values, but still overlap in terms of terms [sic - sorry], but this simplified view works for us here.)

With that in mind, we can specify our fractions separately in terms of this before seeing if they hang together [sic].

Note I’ve arranged the fractions in increasing order of magnitude. This means our will be positive. Things could just as easily go the other way, in which case would be negative. This just keeps things simpler I’ve found.

How can we simplify these? The easiest way might be to guess that the starting point, , was zero. That leaves us with

Now how do we shuffle these so that is isolated in each?

Nice.If you need a reminder about the rules for fiddling with fractions, take a peek back at Chunk 4 - Fractions (Urgh).

We’re able to rearrange our other starter expressions in the same way. I won’t bore you with the working for them. Instead let’s jump to laying them all out side by side as an equality:

Now, we know that in our case, , and are different values because they represent different terms in our progression. The question is, can we find values for them that mean everything still stays valid?

It’s at this point that I’m happy to make a mental leap and simplify things. I think the following is self-evident

And from this point, we can take a trick we know from finding common denominators and work out that is Or you can take this from Gelfand’s tip, but I’m trying to be good and get there without it. and from there work out , and .

We’ve actually overshot here. The question was only to find out if the three terms could exist on the same arithmetic progression. Clearly they do, at points , and where the difference is .

Was There a Shortcut?

Hell yes. Durham spotted the common-denominator trick based on the fact that before any fiddling around. I’m guessing that kind of insight comes with practice and confidence. I’m personally happy that I worked it all the way through.

Problem 205

We’ll keep going with our all-the-gory-details working for this next problem. Ignoring how Gelfand suggests we solve it for a second, let’s take a similarly slow and steady process like we did before and see where that gets us.

First up we know again that there must be a starting point .Because there always is. There must also a ratio and a number representing the position of the term in the progression (which we’ll again call and ).

Yet again, if things are to be in the same Geometric ProgressionNote we’re not in arithmetic land any more. then and must be the same in each case.

Now we can specify our terms in the form of expressions:

Let’s now try and isolate , just like we previously isolated .

Hmmm, this is about to get all kinds of complicated trying to drag out into the open on this one.

Is there another way?

There is, and Gelfand wanted to show it to us but we prevuously ignored him. Let’s admit defeat and see what he has to say.

Rather than specifying our terms in terms [sic] of the progression we know nothing about, he’s going to help us specify them in terms of each other.

This sounds like a bit of a leap, but it’s far simpler once you see it.

Firstly however, why can we do this? The answer is that we already know they are related simply because of how progressions work - each subsequent term derives from the one before it.N.b. they are part of the same progression, the question relies upon it.

Before we get to it, we need one more piece of info - the knowledge of the order in which these terms appear in our as-yet-unknown progression. It’s a safe bet to start with their being in ascending order, but remember Section 42, back in Chunk 21? There we found that sometimes in geometric progressions we can flip and flop from positive to negative and back to positive again. Don’t worry about that for now - Gelfand will come back to it later. Luckily we know that our terms are all positive, and so we are pretty safe in dealing with them in the order .

With this in mind, we can now specifiy them in terms of each other. First up is , specified in terms of

Just to be super-clear, and remembering that all progressions accumulate as you go, you can specify later terms by taking prior ones, and multiplying them by powers of q. We don’t know what power, so that’s why Gelfand has used here.

With that done we now specify in terms of

The pattern is the same - still a prior term multiplied by a certain power of the same ratio , but because we don’t know how many terms are between and we have to have a potentially different power of from the one we used before. We’ve got to represent this.

With this, evidently simpler pair of expressions we can start putting them into a form where we can compare them. First, Gelfand begins to isolate the s.

and

And then pulling them together by raising both sides of the former equality to the power of the latter, and vice versa.

and

Allows us to then combine as

And now we can drop altogether, because if we can prove that this new merged equality is valid, then we’ve proven the three starting terms can exist in a single geometric progression.

Simplifying again we can remove our fractions by multiplying the numerator of each by the denominator of the other

Now Gelfand gets clever, showing us a new trick, and one of the real points of this problem I’ll wager.

Clearly we can go no further trying to figure out and . Nor would it profit us to do so. But we could see what statements we can make about what we do have in our hands.

First up, Gelfand spots that the left hand side () must be odd. Seems like a leap? Try it out. This is because an odd number, no matter what power it is raised to, is always odd.

That’s great info. Now there are a few more moving parts on the right hand side (). What can we say about that?

We know from what we just saw, that , no matter what is, will also always be odd. That leaves the . We should now see that even numbers, when raised to any power will always be even, except when raised to the power of . E.g. in our case with

Etc.

The final piece of the puzzle are the rules for multiplication of odd and even numbers. Let’s list them as it’s easier

If we put all this together, we can see that the left side of our equality will always be odd, but the right hand side can only ever be odd when .

So, following the trail of clues like Miss Marple, we next need to look at what does happen when .

Hmmm. That can’t be right, which means we can’t have these three terms being part of the same geometric progression. Problem solved.

Tricks Arising (Pt. 1)

When Proving Equalities, Remember Fundamentals

We knew above that our equality was actually an inequality because we rememberedProdded by Gelfand I’ll admit that there are some fundamental truisms about odd and even numbers and what you get when you multiply them. There are probably others which are equally useful but I’ve not had to use them in a problem yet:

Revisiting Problem 204

It was super-useful to define the terms in terms [sic]Still sorry. of each other in Problem 205. Could we have made things simpler for ourselves by taking a similar approach in Problem 204?

Then we can isolate the s. The first equality is up first

Then the second equality

Then combining

And dropping the altogether

Then it makes sense to make the denominators of all the top-fractions equal:

And do the simple sums

And finally get to and .

A great deal of this was unnecassary, but it felt reassuring to work it all through. And to answer my own question, “yes, I think this way was easier.”

Problem 206

I got tied up on this problem for ages. But it helped be embedHence the title of this chunk progressions far more deeply as a consequence.

In this problem, Gelfand is asking us to try and think about things differently. We knowBecause he has shown us that the terms and can’t appear in a Geometric Progression in the order presented because he showed us it was so. But what about if they occurred in another order? What, asks Gelfand, should we do in these circumstances?

It makes sense to look back at the previous two posts to see what is even possible in this regard. We see our first one in Chunk 21 - Geometric Progressions section “The ‘Two Possibilities’ Subtlety”. Here we see that a negative quotient can have our terms flipping from positive to negative.

There is another alternative in the next section of the same post - “The ‘is that Really a Geometric Progression’ Subtlety”. In this one we can see that after an initial value which could be anything, the rest of the progression is made up of zeros.

And the subsequent section contains our last possibility - “Flip it and Reverse it”. It gives us the possibility that our progressions don’t have an increasing quotient , rather that it might have a decreasing one.

So which of these might change the game in our present situation? Clearly the middle possibility, that the quotient is , is out for us as we have three non-zero terms and this option allows us only one. If we were to tackle a progression of this kind it would be easy to spot.

That them leaves the other two.

The first possibility indicates we could have a negative quotient. We could still have a problem of this kind but sneakily stated only giving positive terms. Can this be happening here? The answer is “no”. Progressions of this kind must also work when the quotient is positive, and we know that this doesn’t work for us.

The last possibility is that our progression might be going in reverse because our powers ( and ) might be negative. (Remember ). However, being simply the mirror of the situation we investigated in Problem 205, it’s existence does not negate the existence of the former. Therefore, if a progression is impossible in one direction, it is impossible in the other too.

We can therefore conclude that there are no possibilities when this might be a geometric progression given these three numbers, and that after confirming that it is not a progression where the quotient is zero, our original approach sufficed to prove that the other two options were also impossible.

Tricks Arising (Pt. 2)

Removing Fractions in Equalities

Remember this leap? I’m not sure we’ve pulled it out explicitly before.

Gelfand does it himself in his solution to Problem 205. You simply taken the numerator of one side, and multiply it with the denominator of the other side. That gives you one simplification. Then you do the reverse fo the other side.

Brilliant.

Think logically - that’s Maths too!

We’re slowly building up a mental set of rules - things which we know always happen, and you can set these against each other logically to reduce the number of options you’re facing.

We saw this brilliantly in this problem. I’m betting it’ll come in handy again.

Problem 207

Not so much a problem as a statement this one. We’re back at Arithmetic Progressions again, and you’re supposed to think about the difference as we have the first two terms.

In the case mentioned, we know we start with an integer, and then we have a second term which is also an integer. That means the difference must also be an integer. And if you add integers to integers, all you ever get are integers.

That means it is impossible to have an Arithmetic Progression where the first two terms are integers, but all subsequent ones are not.

Problem 208

This is a similar problem to 207, but we’re now talking about Geometric Progressions. We saw in our discussion for Problem 206 (above) that Geometric Progressions can go backwards, and that when the powers of the quotient flip from positive to negative then we enter the realm of fractions with a numerator of , and stay there. And what is such a fraction not? An integer, that’s what.

Problem 209

We’ve flipped back to Arithmetic Progressions again. Remember that in this type, the difference must always be the same, and if the second term is less than the first, but also less than the third, then this doesn’t hold true, because as Gelfand points out, the difference, which might be of the same magnitude, would be positive and negative at the same time, which is verboten.

Problem 210

Geometric Progression once again. Now it is handy to recall Problem 205 again. Geometric Progressions can flip-flop, from positive to negative, when the quotient is negative. That means it is possible to have a Geometric Progression where the second term is less than the first term, and also less than the third term.

Problem 211

Now we’re back on our own again. Well, almost. Gelfand does give us a hint, but let’s see what we can make of things before we take him up on it.

First let’s lay out what we know:

Following this logic through, that means that to achieve this, then the difference between terms must be zero ().

Does that tell us what our starting point needs to be? Nope, we can pick anything we want (i.e. can be anything).

Let’s see how that plays out:

Etc. Etc. ad infinitum.

It seems that you can have an Arithmetic Progression which contains exactly one integer term.

But there is a problem with this. Have we misunderstood the question? Does Gelfand really mean that we want to find an Arithmetic Progression which has one integer term, and all other terms are non-integers?

If that is the case, then it’s time to take him up on his offer of the hint.

Again, let’s start by laying out what we know:

Given all this, then the th term will be . It is essential that this be a non-integer when (i.e. all subsequent terms) if we are to find the progression Gelfand is looking for.

We can simplify this, stating that all terms other than the first (i.e. where ) will be in the form .

It is in this that we need to find our solution, well, actually the reason that this is our solution. How do we know that will never give us an integer?

We can approach this from the reverse angle. If, instead of our was an integer, clearly our progression would contain lots more integers, which is a failure. If on the other hand, our was a Rational Number (a number that can be written as a ratio, i.e. as a fraction) then eventually, as we moved through the progression, we would get to a multiple of that fraction which was a whole number, an integer, and we woulf fail again.

What we need then is a number which no matter how many times you multiply it, it never becomes an integer. For that we need an Irrational Number. The simplest one of these that we know of is . That’s why Gelfand picked it.

This all seems a little mind-bending. We’ll get around to Irrational Numbers in a later chunk so please trust me and don’t worry about it too much for now.

Problem 212

Given what we’ve seen, it’s now quite clear why Gelfand answers this problem with a single word - “no”. There is no which we can use in an arithmetical progression which will give us one more integer after the starting figure , and then never give us one again.

Problem 213

This one is a simple Geometric Progression, but with a little bit of fiddling after the fact.

Remember this from “Chunk 21 - Geometric Progressions”?

Which came from

Here, our numbers are just one less than that. I.e.

Which means the th term will be .

Problem 214

I’ll come back to this once I get to Quadratic Equations which Gelfand points out in his Hint.

Problem 215

The Fibbonacci sequence (which will be incredibly familiar to anyone who does any form of agile software development) is a geometric sequence which follows the pattern identified in Problem 214.

So what are we being asked to obtain in this problem? Gelfand wants us to find out what , and are.

The simplest way to do this is the approach taken by Durham (but here using my characteristic, every-microscopic-step-shown style). We know that this / formula helps you work out any given term in the Fibbonacci sequence if you know it’s position (i.e. it’s ).

We also know some of the answers already, and so given that we can plug our , and our result into this formula for two scenarios and then cross-reference the results.

For us, that means calculating using the simplest two knowns which are the first and second terms: (when ) and (when ).

Here’s our starting formula. We’ll begin by using it with the first term ( with the corresponding of ):

Let’s rearrange for first. We begin by plugging in what we know (a result of and an of )

And then we can remove our powers of 1

And them remove the parentheses

Then multiply everything by

Then rearrange

Now let’s rearrange for . We begin again by just plugging in what we know (this time a result of but an of )

And then we can apply our powers of

And them remove the parentheses

Then multiply everything by

Now we have these two pieces we can try and put them together. The first equation is equal to , but the second is equal to , so let’s double the first equation

Now we can put both our equations together

If we then simplify by subtracting from both sides we get this

Phew! That’s quite a simplification. Now that we know what and are in terms of each other, we can go back to the first of our rearranged equalities and obtain first , and then from that .

Taking

and swapping each for we get

And from there getting

We could equally have done first and from there obtained , but I followed Durham to keep everything predictable.

Another (Non-)Conclusion

Blimey! That was a lot. You’re probably reeling from the shock of it all. I’d suggest re-reading all this again, perhaps working through some other options of th last problem, and then taking a break.

See you in the next chunk.

Gelfand: Chunk 23 - Embedding Progressions - March 24, 2017 - {"name"=>"Andrew Harmel-Law", "github"=>"andrewharmellaw", "twitter"=>"al94781"}