PrepShorts · Study sheet · Class 7 Mathematics · Chapter 6, Number PlayPrepShorts

Chapter 6 · Number Play

Virahāṅka–Fibonacci numbers, and the poetry-counting problem that produced them

यह वीडियो हिंदी में भी · Watch in Hindi

Sequences and hidden digits10 min

This video could not be loaded. Reload the page to try again.

Sign in with Google

10 min.

Also recorded in Hindi.Englishहिन्दी

1, 2, 3, 5, 8, 13. The usual story is that somebody stared until they noticed the pattern. What actually produced them was Prakrit poetry.

The idea

"Add the two before it" is not a pattern somebody noticed in a list of numbers. It is forced, by one case split that a child can check: any rhythm of n beats opens with either a short syllable or a long one, those two cases cannot overlap and cannot both be missed, and whatever follows the opening is itself a rhythm — of n − 1 beats in the first case and n − 2 in the second. The sequence is the consequence, not the discovery. That is why the same numbers count staircases as well as verses, and why the person who first wrote the rule down was a Prakrit prosodist counting metres around 700 CE, roughly five centuries before the name the West attached to them.

What you should be able to do

  • State the beat values of a short and a long syllable, and read a rhythm as a sum of ones and twos
  • List every way of writing a small number as an ordered sum of ones and twos, and count them
  • Explain why the count for n beats is the count for n − 1 added to the count for n − 2, using the opening-syllable split
  • Say why that split misses nothing and double-counts nothing
  • Continue the sequence 1, 2, 3, 5, 8, 13, 21, 34, 55 and state a term several places further on
  • Find earlier terms of the sequence by subtracting instead of adding
  • Describe the repeating parity pattern of the sequence and use it to call the parity of a distant term without computing it
  • Place Piṅgala, Virahāṅka, Gopala, Hemachandra and Fibonacci in order, with approximate dates

Words to know

TermDefinition in one lineFirst introduced
Virahāṅka numbersthe sequence 1, 2, 3, 5, 8, 13, 21, 34, 55 and onwardsprinted in bold in §6.4, p.141
Virahāṅka sequencethe same numbers taken in order, named for the scholar who gave the ruleprinted in bold in §6.4, p.141
Fibonacci numbersthe name these numbers carry in the West, after a writer of 1202 CEprinted in bold in §6.4, p.141
Virahāṅka–Fibonacci numbersthe double name the chapter prefers, so that both traditions are namedprinted in bold in §6.4, p.139
short syllablea syllable held for one beatprinted in bold in §6.4, p.139
long syllablea syllable held for two beats, twice the short oneprinted in bold in §6.4, p.139
beatthe unit of time a rhythm is measured inprinted throughout §6.4, pp.139–141
rhythmone particular ordered arrangement of short and long syllablesprinted throughout §6.4, pp.139–141
paritywhether a term of the sequence is even or oddprinted in §6.4, p.142, carried over from §6.2
recurrencethe explanation's word for a rule that builds each term from earlier onesan added term; not printed in this chapter

Two cautions: First, the chapter uses the joined name so that neither tradition is dropped; keep it on first mention and let the shorter Virahāṅka numbers follow. Second, this sequence as the chapter prints it opens 1, 2, 3 — there is no repeated 1 at the front — so "the eighth element" here means

  1. Anyone carrying the more common indexing will be one place out. See Notes.

Where people slip up

  • "The rule was spotted by looking at the numbers." It was derived from the counting problem. Handing over the rule and then verifying it on a list teaches the opposite lesson from the one on p.141.
  • "Rhythms that use the same syllables are the same rhythm." Order matters: 1 + 2 and 2 + 1 are two different three-beat rhythms and the table on p.140 counts them separately. A student who treats them as one gets 2, 3, 4, 5 instead of the sequence.
  • "Fibonacci discovered these numbers." He wrote about them in 1202 CE, after Virahāṅka by about five hundred years and after Piṅgala by far longer. The chapter says plainly that several Indian scholars had already written about them before him, and the joined name exists so this is not quietly forgotten.
  • "The sequence starts 1, 1, 2, 3, 5." As this chapter prints it, it starts 1, 2, 3, 5 — because the count of one-beat rhythms is 1 and the count of two-beat rhythms is 2. Both conventions are in use; the chapter's is fixed by what is being counted, and mixing them shifts every position by one.
  • "Every flower has a Virahāṅka number of petals." The chapter says petal counts generally fall this way, and shows three daisies. That is a tendency in some species, not a law of nature, and overstating it is the commonest way this material goes wrong on the internet.
  • "Going backwards down the sequence needs a new rule." It does not — the same relation read the other way is a subtraction, which is exactly what question 7 on p.144 asks for.
  • "Poetry is a decorative wrapper on a maths problem." The chapter's whole point is the reverse: the mathematics came out of a real question that prosodists needed answered, and the answer arrived as a Prakrit verse.
Transcript1,450 words

One, two, three, five, eight, thirteen, twenty-one, thirty-four. You have probably met them before — in flowers, in spirals, in pine cones. And the usual story is that somebody stared at the list until they noticed each is the two before it added together. That is not what happened. The rule was not spotted. It was worked out — as the answer to a question that was not about numbers.

The question came from poetry. In Sanskrit and Prakrit verse, and in Tamil, Telugu, Marathi and Malayalam too, you do not count a line's syllables. You count how long it takes to say. Count that way, and you land on a question whose answer is a number. Here is all the poetry you need. Every syllable is either short or long. A short one is held for one beat. A long one is held for exactly twice as long. Two beats.

So a line of verse is a row of these, and how long it lasts is the total. Short, long, short is one beat, then two, then one. Four beats altogether. And the order is part of the line. Short-then-long and long-then-short take the same time, but they are not the same line, and no poet mixes them up. Hold on to that. It is the thing that makes this problem worth asking.

Now the question the poets actually asked. You want a line lasting exactly eight beats. How many different ways are there to build one? Here is one. Four long syllables. Two, and two, and two, and two. Here is another. Eight short ones in a row. Here is a third. Short, long, long, short, long. And a fourth. Long, long, short, short, long. All four last exactly eight beats, and all four are different lines.

So how many altogether? Right now it probably feels as though the only way to find out is to write them all out. Take the poetry away and what is left is arithmetic. Write one for a short syllable and two for a long one. Those four lines become four sums. Two plus two plus two plus two. One, eight times over. One plus two plus two plus one plus two. Two plus two plus one plus one plus two.

Every one of them comes to eight. So here is the bare question. In how many ways can you write eight as a string of ones and twos? And the order counts. One plus two and two plus one are two different answers, not one answer written twice. That decision does more work than it looks. Ignore the order and the counts run one, two, two, three, three — a duller list, and not ours.

Hard questions get answered by easy ones, so start at the bottom. One beat. There is only one way to fill it: a single short syllable. One. Two beats. A long syllable on its own, or two shorts. Two ways. Three beats. Short, short, short. Short then long. Long then short. Three ways. Four beats. Now there are five. Four shorts; a long in each of the three places it can sit; two longs.

One, two, three, five. You are itching to guess the next one already. Please do not. Guessing is how this ends up remembered as a trick instead of understood as a fact. Five beats. And we are going to answer it without writing down one new line. Take every four-beat line — all five — and put a short syllable at the front of each. Each one now lasts five beats, because we added one beat to four.

That is five five-beat lines, and it took no thought at all. Now take every three-beat line — all three — and put a long syllable at the front. Each of those lasts five beats too, because we added two beats to three. Three more. Five, and three. Eight five-beat lines, built entirely out of answers we already had. But wait. How do we know that is all of them?

We have made eight. Maybe there is a ninth we never built. Here is why there is not, and this is the part everything else rests on. Take any five-beat line at all — one you have never seen, handed to you in a sealed envelope. It begins with a syllable, and that syllable is either short or long. There is no third possibility. If it begins short, take that short away: what is left lasts four beats, so it is in our first pile.

If it begins long, take that long away: what is left lasts three beats, so it is in our second pile. Nothing escapes, because everything has a beginning. And nothing is counted twice, because no line begins in two ways at once. Now look at what that argument did not depend on. It never really used the number five. So run it again. Six beats. A short in front of every five-beat line: eight. A long in front of every four-beat line: five.

Eight and five. Thirteen. We have not written down a single six-beat line, and we know there are thirteen of them. Seven beats. Thirteen and eight. Twenty-one. Eight beats. Twenty-one and thirteen. Thirty-four. One, two, three, five, eight, thirteen, twenty-one, thirty-four. There is the list — and you know why it is that list and not another. Somebody had to do this for the first time. The method is credited to Virahanka, a scholar of Prakrit, working around the year seven hundred.

He was studying metre, and he set the rule down as a poem — a pleasing shape for a rule about poetry to arrive in. He was building on older work. Pingala, writing in Sanskrit, came about a thousand years before him. Gopala wrote about these numbers around eleven thirty-five, and Hemachandra around eleven fifty. And Fibonacci wrote about them in twelve hundred and two. That is roughly five hundred years after Virahanka, and getting on for fifteen hundred after Pingala.

The numbers usually travel under Fibonacci's name. They are older than it by half a thousand years, and they came out of a question about verse. So, back to where we started. Eight beats. Count along the list. One, two, three, five, eight, thirteen, twenty-one, thirty-four. Thirty-four. Thirty-four ways to build an eight-beat line. Listing them would cost you an afternoon — and you would still not be sure you had them all.

One warning about counting along that list, though. It begins one, two, three. Not one, one, two, three. That is because the first entry counts the one-beat lines, and there is one; the second counts the two-beat lines, and there are two. You will meet these numbers written with an extra one at the front. Both are in use. Know which you are reading, or every position you name is a place out.

Here is a question you can answer without adding anything at all. Is the hundredth number on this list odd or even? Tag them as they go. One, odd. Two, even. Three, odd. Five, odd. Eight, even. Thirteen, odd. Twenty-one, odd. Thirty-four, even. Odd, even, odd. Odd, even, odd. It goes round every three. And it has to, because of the way each one is made. Odd and even make odd. Odd and odd make even. Even and odd make odd.

So once you have an odd followed by an even, the next three are forced — and the three after those, for as long as you like. The even ones land at positions two, five, eight, eleven — every third place. A hundred is not one of those, so the hundredth is odd. And I added nothing. One last thing, and it is the best of them. Look back at the argument. It never mentioned poetry.

It needed two facts. That everything is built from ones and twos, and that everything has a first one. So. Here is a staircase of eight steps. You can take them one at a time or two at a time, in any mixture. How many ways up? You already know. Thirty-four. The same problem in different clothes. A short syllable is a single step, a long one a stride over two, a line of verse a route up the stairs.

You will also hear that petals tend to come in these numbers. Thirteen, twenty-one, thirty-four. Often they do — but tend to is as far as anyone should push it. The staircase is the honest one. Not a coincidence in nature, but the same argument twice over — because two things counted the same way come to the same count.

Where this fits

Taken from the notes each video was made from, not from the reading order — these are the ideas this one rests on and the ones that later rest on it.

Builds on

Either side of this one

The book

Open in a new tab