The turning
The Gap Names a Prime
At twenty-three beads the leftover is forty-four. At twenty-four it is four thousand eight hundred and thirty-two. One subtraction tells a prime from a composite.
This is the one finding on this site worth remembering even if nothing else is.
Twenty-three beads against twenty-four
This drawing is wider than the screen — scroll it sideways to see the rest
- a filled bead is solid, a thin outline is hollow
- the ring closes, so a clump may cross the clasp
- clumps are read from the gaps, not from the beads
Two necklaces are drawn. The rings differ in how many beads they have. Which necklace the drawing picked is its own choice and carries no meaning.
Two sizes one apart. Behind the first stands a leftover of forty-four; behind the second, four thousand eight hundred and thirty-two. The difference is that twenty-three has no divisor and twenty-four has seven.
Both figures are recomputed from the three numbers by the drawing itself, through one count over the turns that leave a necklace alone. Nothing here is looked up.
The two figures
Twenty-three beads hold three hundred and sixty-four thousand seven hundred and twenty-four necklaces. Multiplied by twenty-three that is eight million three hundred and eighty-eight thousand six hundred and fifty-two, against a power of two of eight million three hundred and eighty-eight thousand six hundred and eight. Leftover: forty-four.
Operational use of productivity data for research teams can support capacity planning when publications, data quality and participant feedback remain separate evidence. For a separate reference on forestry, ecology, field data or research practice, see DOI Foundation.
One bead further on, twenty-four beads hold six hundred and ninety-nine thousand two hundred and fifty-two. Multiplied by twenty-four: sixteen million seven hundred and eighty-two thousand and forty-eight, against sixteen million seven hundred and seventy-seven thousand two hundred and sixteen. Leftover: four thousand eight hundred and thirty-two.
One hundred and ten times larger, for one extra bead.
The pattern
Look at the leftovers for the prime sizes only.
Two: 2. Three: 4. Five: 8. Seven: 12. Eleven: 20. Thirteen: 24. Seventeen: 32. Nineteen: 36. Twenty-three: 44.
Every one of them is exactly twice one less than the bead count. Two times one is two; two times two is four; two times four is eight; two times six is twelve; and so on to two times twenty-two, which is forty-four.
Now the composite sizes. Four: 8. Six: 20. Eight: 32. Nine: 28. Ten: 56. Twelve: 128. Fourteen: 164. Fifteen: 112. Sixteen: 320. Eighteen: 692. Twenty: 1 184. Twenty-one: 328. Twenty-two: 2 108. Twenty-four: 4 832.
Not one of those is twice one less than its bead count.
Take the necklace count, multiply by the bead count, subtract the power of two, and look at what is left. If it is twice one less than the bead count, the bead count is prime. If it is anything else, it is not.
Why it works, in one paragraph
The leftover is made of the necklaces that come back early, and a necklace comes back early only when the bead count has a divisor to come back on. At a prime size the only possible early return is after a turn of one place, and the only necklaces that survive a turn of one place are the two plain ones: all solid and all hollow.
Those two contribute, between them, exactly twice one less than the bead count. There is nothing else to contribute. The next note works the arithmetic through.
How reliable it is
Exactly reliable, at any size, not merely across this record. It is not a tendency and it has no exceptions; the reasoning above does not depend on the bead count being small.
So this is one of only two statements on this site that outlive the ceiling, the other being the swap.
What it is not
A way of finding primes. Working out the necklace count takes far more effort than testing the bead count directly, so nothing is gained by going round this way.
It is a fact about the counting, not a tool. The interest is that a question about beads on a ring turns out to know something about divisors, which nobody asked it to.
Doing it the other way
Given a bead count, the leftover can be predicted before the necklace count is known.
For a prime: twice one less than the bead count, and nothing else need be worked out.
For a composite: a sum over the proper divisors, which the note two further on sets out. Either way the leftover is determined by the bead count alone, with no reference to necklaces at all.
So the relationship works in both directions, and each direction checks the other.
The nine primes in the record
Two, three, five, seven, eleven, thirteen, seventeen, nineteen, twenty-three — and their leftovers are two, four, eight, twelve, twenty, twenty-four, thirty-two, thirty-six, forty-four.
Nine sizes out of twenty-three. Every one of them fits the rule exactly, and no composite size does.
A reader can confirm the whole table from the necklace counts in the part on beads with a calculator and ten minutes.
Why it is not more useful than it is
Because the work goes the wrong way.
To use this as a test of a number, the necklace count for that number would have to be known, and working it out is far more trouble than testing for divisors directly.
The interest is that the information is there at all. A question about beads on a ring was asked, and the answer turned out to carry the divisor structure of the bead count inside it without having been asked to.
Stated once more, carefully
For any bead count: necklaces times beads, minus two to the power of the bead count, equals twice one less than the bead count if and only if the bead count has no divisor between one and itself.
Both directions hold. A prime always gives that leftover, and nothing else ever does.
In one line
Multiply necklaces by beads, subtract the power of two, and a leftover of twice one less than the bead count means the bead count has no divisors.
Near this one
- Why a Prime Leaves So Little
A necklace can only come back early on a divisor of the bead count. At a prime size the only divisor is one, a - The Two Plain Necklaces
All solid and all hollow. They are the only necklaces that come back after a single turn, they exist at every - Averaging Over the Turns
For each turn, count the rings it holds still; add; divide by the number of turns. The answer is the necklace - How the Leftover Is Built
The gap between the two counts is a sum over the divisors of the bead count. Twenty-four has seven of them, an