← All projects / Do You Like Jazz?

Do you like jazz?

It started on a sheet of paper beside a circle of fourths. Write the best-known chord run in jazz as numbers, 1 4 7 3 6 2 5 1. Read it backwards and add the two. Out comes 2 9 9 9 9 9 9 2. Cast out the nines and that is 2 0 0 0 0 0 0 2: a 1null1, doubled. This page is why that happens, which widths do it, what the row does as place values for binary, and the counting line with no tens that fell out along the way.

The row

Number the notes of a major scale 1 to 7 and build a chord on each. Jump up a fourth every time and the chords go 1, 4, 7, 3, 6, 2, 5 and home to 1. It's the run under Autumn Leaves and Fly Me to the Moon. Up a fourth is three notes on. Past 7 the count wraps round, which is the same as coming down a fifth: four notes back.

Direction

The chords are in C major. Green notes are the multiples of 3. The orange ring is home. Played with plain tones, so it will not sound much like a jazz band.

Read it backwards and add

Backwards, the row is 1 5 2 6 3 7 4 1, which is the same walk in fifths. Line the two up and add each column. Under each row is what its numbers leave when divided by 3.

a multiple of 3home, the 1 at each endnot a multiple of 3

exact

Every inside pair makes 9

Each note sits over its mirror partner: 4 over 5, 7 over 2, 3 over 6. A fourth and a fifth turn into each other when flipped over, and musicians know the rule: an interval and its inversion add to 9. Only home sits over itself, so the ends are 1 + 1.

exact

Why the neighbours wake up

Stepping by 3 keeps what a number leaves by 3 until the count passes 7, and each pass knocks it down by one. So the row is three laps: 1 4 7 leave 1, then 3 6 leave 0, then 2 5 leave 2. Backwards, the laps swap sides. In the middle a 0 meets a 0. Next to it a 1 meets a 2, and 1 + 2 is 3. At the ends a 1 meets a 1 and stays dead.

exact

What's left dead is a 1null1

Before the fold the multiples of 3 sit at 00011000. After it they sit at 01111110, a null1null, the 126 that marks the start of every HDLC frame. The dead ones are 10000001: a 1 at each end and nothing between, one of the 1null1s.

only a label

The 9 is 7 + 2

Seven notes, plus 2 because both rows start counting at 1. Call home 0 and the same row folds to 0 7 7 7 7 7 7 0. A five-note scale gives 7s and all twelve notes give 14s. So the 9 isn't the special part. The shape is: home, six pairs that cancel, home.

Any number of bits

Put x − 1 notes round the circle with home at both ends, so the row is x long. The whole thing hangs on one condition: the number you divide by has to divide x + 1.

Divide by

Green notes are multiples of the divisor. The orange ring is home. The squares are the row and the folded row, read left to right.

Every width at once

Each line below is one width, from 4 bits at the top to 40 at the bottom, stepping by the divisor (or by 1 where that walk would come home early). On the left, the multiples in the row. On the right, the multiples after the fold. Pick a line to load it above.

Divide by

Move over a line to read it off.

Why the left side looks like noise

Stepping by the divisor goes round the circle in laps, as many laps as the divisor. Inside one lap every note leaves the same amount when divided by the divisor, so the multiples always sit together in a single lap, as one block. The only question is which lap, and there is an exact rule for it: the block sits in the lap whose number, times the count of notes, leaves 1 by the divisor. The lap that starts at home never has it.

Divide by

Which lap, width by width

Each column is one width, 4 bits on the left to 40 on the right. Each line is one lap, the home lap at the top. The green square is the lap that holds the block. Faint columns are the widths where stepping by the divisor would come home early, so the walk steps by 1 and has no laps. The outlined line is the centre lap: a block there is dead centre, and that is exactly the widths that radiate. Pick a column to load it above.

exact

The fold doesn't care about the step

A note and its mirror partner always add to x + 1, whichever step you walk by. So the folded row is 2, then x + 1 all the way along, then 2. If the divisor divides x + 1 the inside is alive and the ends are dead: a null1null.

exact

The first row is always a palindrome

When the divisor divides x + 1, a note and its partner are alive together or dead together. So the pattern of multiples in the row reads the same backwards, for any step. Try step 1 or 2 above: scattered, but still a mirror.

exact

Stepping by the divisor bunches them

Step by the divisor and every lap keeps one remainder, so the multiples all fall in one lap. A palindrome with one block has to have it dead centre. For 3 that is every third width: 5, 8, 11, 14 and so on.

counted

It is one jump, not a spread

The folded row is a palindrome, so folding it again only doubles it and nothing new wakes up. Every width up to 40 bits was tried with every divisor and every step. Nothing radiates unless the divisor divides x + 1.

counted

17 bits does it in three stages

18 is a multiple of 9 as well as 3. Stepping by 3, only the centre is a multiple of 9, the middle five are multiples of 3, and the fold lights fifteen. 26, 35, 44 and 53 bits were tried with every step and none of them does it.

Fibonacci on the circle

The jazz row steps by 3 round 7 notes. Swap in Fibonacci numbers, 1 1 2 3 5 8 13 21 34, and put a Fibonacci number of notes on the circle, stepping by the one before it: 8 notes by 5, 13 by 8, 21 by 13. The walk always closes, because two Fibonacci neighbours never share a factor. The circle is always less than twice the step, so the step's own note is the only multiple of the step on it. It is the green one. The question is which lap of the walk it lands in.

Circle

Which lap the green note lands in

exact

The Fibonacci jazz row

Stepping by 5 round 8 notes gives 1 6 3 8 5 2 7 4 1. Read it backwards and it is 1 4 7 2 5 8 3 6 1, the 8-note jazz walk by 3. So 3, 5 and 8, three Fibonacci numbers, are all in one row. It radiates by 5: the only multiple of 5 is dead centre, and the fold is 2, then 10 all the way along, then 2.

not new

Every other Fibonacci number, twice

The lap the green note lands in is always a Fibonacci number: 2, 2, 5, 5, 13, 13, 34, 34, 89, 89. The reason is Cassini's identity: a Fibonacci number squared is always one more or one less than its two neighbours multiplied, so it leaves 1 or the step less 1. Put that into the lap rule and out comes the lap. The identity is from 1680.

exact

Only 8 notes is dead centre

For the green note to be dead centre, its lap has to be exactly half of one less than the step. The lap is always the Fibonacci number two or three back, and that can only be half way when the Fibonacci number four back is 1. That happens at 8 notes and nowhere else, for any size.

exact

Fibonacci has its own signal

Fibonacci numbers go odd, odd, even for ever, so as a signal they are 110110110. Every third Fibonacci number is even. It is the 3 again, the same three laps the jazz row walks in.

The row as place values

This is the move from From Ten to the 369: keep the 1s and 0s where they are and change what the places are worth. Here the eight places are worth 1 4 7 3 6 2 5 1, and the reading is the sum of the places that hold a 1.

Read the answer again, places as written

Read the answer again, places from the right

How many strings share each reading

256 strings go in and only 30 readings come out, 0 to 29, so most readings are shared. The bar for the number above is the solid one.

Move over a bar to see which numbers read as that value.

All 256 at once

Light up

0 to 255, sixteen to a row. Move over a square, or pick one to load it above.

exact

Forwards plus backwards only sees the ends

Read a string with the places as written, read it again with the places from the right, and add. That is the same as reading it once in 2 9 9 9 9 9 9 2. So the total is 2 for each end that is switched on, plus 9 for each 1 inside. By 9, only the two end bits are left.

exact

A string and its bit-swap make 29

The eight places add to 29. Swap every bit and the two readings fill each other in. So a 1null1 and its null1null always pair to 29: 10000001 reads 2 and 01111110 reads 27.

counted

It is nowhere near one to one

Only 0 and 29 have a single string. The readings 13, 14, 15 and 16 have 16 strings each. The counts are a known row of numbers, the ways to make a total from 1 to 7 used at most once each, added to itself one step along because this row has a second 1.

counted

Everything falls into 6, 7, 8

With the places as written, 253 of the 255 numbers end in the loop 6, 7, 8, and 1 and 128 stop at 1. With the places from the right, 14 and 15 read as themselves, and the rest go round 3, 5, 8 or 7, 12, 10.

counted

Two rows in 720

There are 720 ways to put 2 to 7 between two 1s. 48 of them fold to 2 9 9 9 9 9 9 2. 16 of those also have the 3 and the 6 in the middle. Only 2 of those move by a steady step: the row in fourths and the row in fifths.

Counting without the tens

On the same sheet the adding skipped every ten: 8, 9, 11, 12. Nine numbers to a line, with no 10, no 20 and no 30. The 369 Without a 10 takes out only the 10. This takes out all of them.

Every
every third number countedalso a multiple of 3 the ordinary way33not counted

Move over a number to see where it comes in the count.

exact

Every third number ends in 3, 6 or 9, for ever

3, 6, 9, 13, 16, 19, 23, 26, 29, 33 and on. There are nine numbers to a line and 9 is a multiple of 3, so every third one lands in the same three columns on every line. Checked past a million. It holds too if no number with a 0 anywhere is counted.

exact

By 9 it is one column, by 5 and 7 it is every column

Every ninth number counted ends in 9: 9, 19, 29, 39, for ever. Every fifth goes 5, 11, 16, 22, 27, 33, 38, 44, 49, 55, so it visits all nine endings and starts over every 45 numbers. Every seventh does the same every 63. With nine numbers to a line, only 3 and 9 divide the line evenly. Ordinary counting is what keeps 5 tidy, ending in 0 or 5, and taking the tens out takes that away.

exact

33 is the first time home

33 is the 30th number counted. Three tens are gone by then, so the name is 3 ahead of the count. Read as ordinary numbers, 3 6 9 leave 0 by 3, then 13 16 19 leave 1, then 23 26 29 leave 2, and 33 36 39 leave 0 again. Those are the three laps of the jazz row, one skipped ten for each trip past 7. It comes round every 30: 63, 93, 123.

exact

The line is the list of fold values

The widths that radiate by 3 fold to 6, 9, 12, 15, 18. Written with no tens, those are 6, 9, 13, 16, 19. So 8 bits fold to 9, 11 bits fold to 13, and 29 bits fold to 33.

The reverse register

Take the line of threes up to some number, read it backwards, and add, with the tens left out of the adding or put back in.

Stop at

Three ways out of 33

Counting on from 33 by ones, by twos and by threes, with no tens. All three meet again at 39. Going back by threes is the reverse register: it walks over the same stones down to 3.

From seven notes to ten

Start from the jazz row and add notes to the circle one at a time, still stepping by 3 and still counting with no tens, so the tenth note is called 11. Each new note comes in just before home.

Notes

The ten-wide rows from the sheet

counted

1 4 7 11 6 9 5 8 4 1

The row as drawn. Added with no tens, the inside is 16 and a second dead ring of 8s appears inside the 2s. That's because this walk isn't a closed loop: it visits 4 twice and never visits 2 or 3.

exact

1 4 7 11 3 6 9 2 5 8 1

The closed walk by 3 round ten notes. It folds to 2, then 13 all the way along, then 2. The 13 is the ordinary 12 with the ten skipped: the 3 6 9 13 again.

A near miss with powers of ten

The line of threes climbs 10 every 3 terms. The number of binary places a power of ten needs climbs by 3.3219 a time, because 1,024 is so close to 1,000. So for a while the two lists are the same list. Each square below is one term, thirty to a line: lit where the nth number in the line of threes is exactly one less than the number of bits in 10 to the n.

Move over a square to compare the two.

exact

Skipping the ten is what makes it last

Plain "10 every 3" goes 3, 6, 10 and is wrong at the third term, because 1,000 needs 10 bits and one less than that is 9. The line with no tens lands on 9 at exactly that spot, and then stays right for thirty terms.

not new

The exact list wins in the end

The exact list is called the Beatty sequence for the logarithm of 10 to base 2. It never repeats. The line of threes repeats every three terms, which is why it has a pattern and also why it drifts: it gains about 1 every 88 terms and never comes back.

What's already known

Each list on this page was looked up in the OEIS, the catalogue of number sequences. The building blocks are all in it. The rows and the readings are not, which doesn't make them new: a reading depends on which row you picked, and the catalogue rarely lists those.

WhatStartsCatalogue
Counting without the tens1 2 ... 9 11 12A067251
Counting with no 0 anywhere1 2 ... 9 11 ... 99 111A052382
The walk by 3 round 7, home called 00 3 6 2 5 1 4A111952
The 1null1s3 5 9 17 33A000051
The null1nulls0 2 6 14 30A000918
Widths that radiate by 35 8 11 14 17A016789
How many rows fold, by size1 2 8 48 384A000165
Strings per reading, places 1 to 71 1 1 2 2 3 4 5A053632, row 7
Bits in a power of ten, less one3 6 9 13 16 19A066343
The line of threes itself3 6 9 13 ... 99 103not listed
The readings, 0 to 2550 1 5 6 2 3 7 8not listed

not new

The arithmetic is old

The chord run, and inversions adding to 9, are standard music theory. Underneath it is clock arithmetic on 7: stepping by 3 and stepping by 4 undo each other because 3 + 4 is 7. Nothing on this page needed a new idea, only a fold nobody had asked for.

counted

Nothing here finds primes

The row was repeated along the bits and 14.5 million primes were set against 7.2 million look-alikes, numbers with no small factor that are not prime, matched on size. Four readings, each by 2, 3, 7, 9 and 10. The biggest gap was 3.1 spreads, in the fold by 10, where shuffling gives anything from 1.9 to 3.5. On fresh numbers up to 2 to the 30 it fell to 2.5 and the biggest of all was 2.6. A real effect would have grown.