Dynamics

A sequence that juggles its exponent

Take a number; if it is even, replace it by the whole part of its square root, and if it is odd, by the whole part of its square root cubed. Starting from 37 the sequence climbs to 24,906,114,455,136 and then falls to 1 in seventeen steps. Starting from 48,443 it climbs to a number of nearly a million digits and takes 157 steps to come down. Every start anyone has tried reaches 1, nobody can prove that every start does, and the reason to believe it lies two logarithms deep, where the orbit becomes a random walk with a gentle downward drift.

Worth reading first: The heuristic that cannot be a proof · How high an orbit climbs.

The Collatz map halves an even number and sends an odd one to 3n+13n + 1, and the question nobody can answer is whether every start eventually reaches 1. Clifford Pickover proposed a relative in the 1990s that moves much more violently. If aa is even, replace it by ⌊a⌋\lfloor \sqrt a \rfloor, the whole part of its square root; if aa is odd, replace it by ⌊a3/2⌋\lfloor a^{3/2} \rfloor, the whole part of its square root cubed. An even number shrinks to roughly its square root; an odd number grows to roughly its own size times its square root. The sequences are called juggler sequences, because the values are tossed up and caught again.

Starting from 3 the sequence is 3, 5, 11, 36, 6, 2, 1. Starting from 37 it is 37, 225, 3,375, 196,069, 86,818,724, 9,317, 899,319, 852,846,071, 24,906,114,455,136, and then down: 4,990,602, 2,233, 105,519, 34,276,462, 5,854, 76, 8, 2, 1. Seventeen steps, and at one point a fourteen-digit number. Every start that has been tried reaches 1 eventually, and as with the Collatz map there is no proof that every start does.

What the juggler map offers that the Collatz map does not is a heuristic that is exceptionally clean, because the map acts on exponents. Raising to the power 12\tfrac12 or 32\tfrac32 multiplies the logarithm by a fixed factor, so the logarithm of the logarithm moves by a fixed amount, up or down, at each step. Two logarithms down the orbit is a random walk, and the walk has a downward drift. This essay computes the orbits exactly — integer square roots of integers with up to a million digits — and holds them against that picture.

Seventeen steps from 37

The juggler orbit of 37. start 37: 17 steps, peak 14 digits at step 8; odd 10
Fig. 1 The juggler orbit of 37, drawn by the number of digits of each term. It climbs through 24,906,114,455,136, a fourteen-digit number, after eight steps and comes down by square roots to 1 after seventeen.

The figure draws the orbit of 37 by the number of digits of each term, with odd terms and even terms marked differently. The shape is the juggler’s signature. Each odd term multiplies the number of digits by about 32\tfrac32; each even term halves it. The first four terms of the orbit, 37, 225, 3,375 and 196,069, are all odd, and four consecutive multiplications by 32\tfrac32 take a two-digit number to nine digits. Then an even term halves it, an odd term multiplies again, and at step eight the orbit reaches its peak.

From the peak the descent is fast. 24,906,114,455,136 is even, so its square root, 4,990,602, follows; that is even too, and its square root is 2,233. A few more alternations, and the orbit is at 76, then 8, 2, 1. Seventeen steps in all, ten of them odd and seven even: more odd steps than even, and yet the orbit fell, because a halving of the number of digits outweighs a multiplication by one and a half.

That arithmetic is the heart of the matter. Two odd steps multiply the number of digits by 94\tfrac94; three even steps divide it by 8. A typical orbit needs only a little more than one even step for every odd one to come down: an even step undoes about 1.7 odd steps, since (32)1.71≈2\left(\tfrac32\right)^{1.71} \approx 2.

Nearly a million digits

The juggler orbit of 48,443. start 48443: 157 steps, peak 972462 digits at step 60; odd 97
Fig. 2 The juggler orbit of 48,443 by number of digits, on a logarithmic scale. A run of odd terms carries it to a number of about 972,463 digits at step 60, and square roots bring it to 1 after 157 steps.

The start 48,443 is famous among juggler sequences, and the figure shows why. Its orbit is computed here exactly, every term an integer, every square root an integer square root by Newton’s method on numbers of up to three million bits. The number of digits climbs through runs of odd terms — the vertical scale is logarithmic in the number of digits, so each odd step is an equal rise and each even step an equal fall — and at step 60 it reaches a number of about 972,463 digits. Written out, that number would fill several hundred pages.

From there 97 more steps bring it to 1, for 157 in all. Of the 157 terms, 97 are odd — more than three in five. The descent is a long staircase: halving a million digits takes twenty halvings to reach the single digits, but odd terms keep interrupting, each one undoing more than half of the previous halving, so the orbit wanders down slowly rather than falling.

There is no prospect of computing the orbits of all large starts this way, and no guarantee that some start does not climb for ever. The figure shows that one orbit with a peak of a million digits nonetheless returns. The climbs of Collatz orbits are mild by comparison: by the analogous heuristic a Collatz orbit rises at most to around the square of its start, while a juggler orbit can rise to something like the start raised to a power that is itself exponential in the length of an odd run.

Two logarithms down

Juggler orbits as a random walk in ln ln a. 37:17 113:16 173:32 193:73 2183:72 11229:101 15845:139 13325:166 4649:107 7847:131
Fig. 3 Ten long or high juggler orbits drawn by ln ln a. Each step adds about ln⁡32\ln \tfrac32 or ln⁡12\ln \tfrac12, and with fair parities the walk drifts down by 12ln⁡34≈−0.144\tfrac12 \ln \tfrac34 \approx -0.144 a step (dashed). The orbits wander about that line and all reach the bottom.

The juggler map is a statement about exponents, so it is natural to look at the orbit through two logarithms. If aa is large, ln⁡⌊a1/2⌋≈12ln⁡a\ln \lfloor a^{1/2} \rfloor \approx \tfrac12 \ln a and ln⁡⌊a3/2⌋≈32ln⁡a\ln \lfloor a^{3/2} \rfloor \approx \tfrac32 \ln a: each step multiplies the logarithm by 12\tfrac12 or by 32\tfrac32. Take the logarithm again, and each step adds ln⁡12≈−0.693\ln \tfrac12 \approx -0.693 or ln⁡32≈+0.405\ln \tfrac32 \approx +0.405 to ln⁡ln⁡a\ln \ln a. The figure draws ten long orbits this way, and the check behind it confirms that every step between large terms moves ln⁡ln⁡a\ln \ln a by one of those two amounts to within a small error from the rounding.

If the parities of the terms behaved like fair coin tosses — odd or even with probability one half each, independently — then ln⁡ln⁡a\ln \ln a would perform a random walk with steps −0.693-0.693 and +0.405+0.405, and its average step would be 12(ln⁡12+ln⁡32)=12ln⁡34≈−0.144\tfrac12(\ln \tfrac12 + \ln \tfrac32) = \tfrac12 \ln \tfrac34 \approx -0.144. A random walk with a negative drift goes down with probability one. So the heuristic predicts that every orbit reaches small values, and that it takes about ln⁡ln⁡a/0.144\ln \ln a / 0.144 steps to do so. The dashed line in the figure is that drift, drawn from the start of the longest climb.

This is the same kind of argument as the heuristic that cannot be a proof for the Collatz map, where the logarithm drifts down by 12ln⁡34\tfrac12 \ln \tfrac34 per odd step after the halvings are averaged. The coincidence of the constant is not an accident: in both maps a “fair” pair of steps multiplies something by 34\tfrac34 — the Collatz map multiplies the number by about 32\tfrac32 and then by 12\tfrac12, the juggler map multiplies the logarithm by the same two factors. The juggler map is the Collatz map lifted one logarithm.

Steps for every start

How many steps every juggler orbit takes. N=20000: mean 12.99 steps; max 166 at 13325
Fig. 4 The number of steps the juggler orbit of every start from 3 to 20,000 takes to reach 1, against ln ln of the start. The heuristic predicts about ln ln a / 0.144 (dashed); the mean is 13.0, the spread enormous, and the longest is 13,325’s at 166 steps.

The heuristic makes a quantitative prediction, and the figure tests it against every start from 3 to 20,000. Horizontally is ln⁡ln⁡a\ln \ln a; vertically, the number of steps the orbit takes to reach 1. The dashed line is the prediction ln⁡ln⁡a/0.144\ln \ln a / 0.144, which for starts near 20,000 is about 16 steps. The mean over all starts to 20,000 is 13.0, a little below the line, as it should be since the heuristic ignores the last few steps near 1 where the logarithms are small and the rounding dominates.

But the spread is the striking feature. Most orbits are short, a dozen steps or so, while a few run to more than a hundred: 13,325 takes 166 steps, 7,847 takes 131, 4,649 takes 107. A random walk with a small drift has exactly this kind of distribution. Its typical time to descend is set by the drift, but an early run of upward steps lifts it to a height from which the descent takes far longer, and since the walk is in ln⁡ln⁡a\ln \ln a, a modest lift there is an astronomical one in aa.

That is why the juggler orbits are so much wilder than the Collatz orbits even though both obey the same heuristic. For the Collatz map the walk is in ln⁡a\ln a, so a lift of ten units multiplies the number by about twenty thousand. For the juggler map it is in ln⁡ln⁡a\ln \ln a, and a lift of ten units raises the number to the power twenty thousand.

Are the parities fair?

How often a juggler term is odd. 1+: 0.346/107747 3+: 0.473/112907 10+: 0.495/27034 30+: 0.508/8898 100+: 0.475/2242 300+: 0.504/663 1000+: 0.498/263 runs1 0.518 runs2 0.260
Fig. 5 Every term of every juggler orbit from 2 to 20,000, sorted by number of digits, and the share that are odd. From ten digits on the share is close to one half; odd runs of one and two terms occur 52 and 26 per cent of the time.

The heuristic rests on one assumption, that the parity of a large term is as likely to be odd as even and does not depend on what came before. The figure tests it. It collects every term of every orbit from 2 to 20,000 — about a quarter of a million terms — sorts them by their number of digits, and reports the share that are odd. Among terms of one or two digits the share is far from one half, because the same few small numbers appear at the end of every orbit. From ten digits on it is close: 0.495, 0.508, 0.475, 0.504, 0.498 in successive ranges of size.

The runs of odd terms behave like a fair coin’s runs too. A run of exactly one odd term between even ones occurs 52 per cent of the time, a run of exactly two 26 per cent, near the halves and quarters a coin would give. There is a plausible reason. The parity of ⌊a3/2⌋\lfloor a^{3/2} \rfloor depends on the fractional part of a3/2a^{3/2} to many digits — on bits far below the leading ones — and there is no evident mechanism linking those bits to the parity of aa itself. The same is true of ⌊a⌋\lfloor \sqrt a \rfloor.

But plausibility is all it is. The bits in question are completely determined by aa, and a proof that they behave randomly along every orbit would be a statement about the fine structure of powers and roots of integers far beyond anything known. That is the gap between the heuristic and a theorem, and it is the same gap that separates the Collatz heuristic from a proof, as the map that is a coin made precise for the 2-adic integers.

Records

Records among juggler orbits. height 2:1d/1 3:2d/6 9:3d/7 25:5d/11 37:14d/17 113:27d/16 173:82d/32 193:271d/73 2183:5929d/72 11229:8201d/101 15065:11723d/66 15845:23889d/139; steps 2:1 3:6 9:7 19:9 25:11 37:17 77:19 163:43 193:73 1119:75 1155:80 4065:88 4229:96 4649:107 7847:131 13325:166
Fig. 6 Record-setters among juggler orbits from 2 to 20,000: starts whose orbits climb higher than any smaller start’s, with the digits of the largest term and the steps, and starts whose orbits are longer than any smaller start’s.

The records summarise how wild the orbits can be for small starts. The height records below 20,000 — starts whose orbits climb higher than any smaller start’s — are 37 (14 digits), 113 (27), 173 (82), 193 (271), 2,183 (5,929), 11,229 (8,201), 15,065 (11,723) and 15,845 (23,889). Between 193 and 2,183 nothing beats a 271-digit peak; then a start in the two-thousands leaps to nearly six thousand digits. Records arrive in jumps because a height record requires a long run of odd terms early in the orbit, and such runs are rare events of a random walk.

The length records are a different list: 163 with 43 steps, 193 with 73, 1,155 with 80, 4,065 with 88, 4,229 with 96, 4,649 with 107, 7,847 with 131, 13,325 with 166. Only 193 appears in both lists. A high orbit climbs on a run of odd terms and then descends steadily; a long orbit has a balanced mixture of odd and even terms, never climbing very far but taking a long time to come down. The random-walk picture predicts exactly this separation, between the walk’s maximum and its time to absorption, which are correlated but far from the same.

The same distinction runs through Collatz records, and through the reverse-and-add orbits that grow until they happen to become palindromes: a map with no proof of termination is characterised as much by its record-setters as by its typical orbits, because the records are where a counterexample would have to hide.

Could there be a cycle?

An orbit that never reaches 1 would either climb for ever or fall into a cycle of some other numbers, and the second possibility can be examined directly. A cycle would have to return to its starting value, so the product of its multipliers on ln⁡a\ln a would have to be very nearly 1: with uu odd steps and dd even ones, (32)u(12)d≈1\left(\tfrac32\right)^u \left(\tfrac12\right)^d \approx 1, which means u/d≈ln⁡2/ln⁡32≈1.71u/d \approx \ln 2 / \ln \tfrac32 \approx 1.71. Since ln⁡2/ln⁡32\ln 2 / \ln \tfrac32 is irrational, the product is never exactly 1, and the rounding in the floors would have to absorb the difference exactly at every step. For large numbers that rounding is far too small to do so, which is the juggler counterpart of the argument in how short a cycle could be bounding Collatz cycles by continued fractions of the same ratio.

So the only cycles possible are among small numbers, where the floors matter, and a direct check finds none except the fixed point 1: every start up to 20,000 reaches 1, ending 2→12 \to 1. The real uncertainty is therefore the other possibility, an orbit that climbs without end, and that is exactly the event a random walk with negative drift has probability zero of producing, and exactly what a deterministic sequence can never be shown, by probability alone, to avoid.

The walk has a floor and no ceiling, the opposite arrangement from a fair game between two barriers, where a walk is certain to hit one of two absorbing walls. Here the floor is the number 1 and the drift points towards it; a walk with downward drift and an absorbing floor reaches it with probability one, and its time to do so has an exponential tail, which is the shape of the steps figure. The juggler map and the happy-number map are cousins of opposite temperament: the second can be settled completely because it shrinks large numbers, while the first cannot, because it does not.

Twenty thousand orbits and no proof

Every orbit drawn here reaches 1, and that is the extent of what is proved about them. The figures cannot show that the juggler map has no cycle other than the fixed point 1 among numbers too large to search, nor that no orbit climbs for ever. Unlike the Collatz map, the juggler map has not been verified to anything like the same range; orbits of quite small starts already involve numbers of millions of digits, so exhaustive checking reaches far less far than it does for the Collatz map.

The random-walk figure shows orbits wandering about a line of slope −0.144-0.144, and that is a picture of the heuristic, not evidence of a theorem. A walk in ln⁡ln⁡a\ln \ln a that drifts down will reach the bottom; but the actual sequence of parities is deterministic, and a single start whose parities are biased towards odd for long enough would escape. The parity figure shows no such bias in a quarter of a million terms, which is reassuring and proves nothing about the next quarter of a million. In this respect the juggler map is exactly as open as the Collatz problem, and arguably harder, since no partial results comparable to Terras’s or Tao’s — almost every number comes down — are known for it.

Still open: whether every orbit comes down

The central question is the obvious one: does every juggler sequence reach 1? The heuristic says yes with overwhelming probability for any single start, and computation says yes for every start that has been tried. A proof would need to control the parity of ⌊a3/2⌋\lfloor a^{3/2} \rfloor along orbits, which is a question about the binary digits of powers of integers — the same territory as the open question of whether the digits of (3/2)n(3/2)^n are equidistributed, a famously intractable problem related to Waring’s problem.

There are sharper questions within reach of computation. How does the number of steps grow on average with the start, and does the ratio to ln⁡ln⁡a/0.144\ln \ln a / 0.144 tend to 1? The figure’s mean of 13.0 against a prediction of 16 near 20,000 suggests the correction from the final small steps is large at this scale, and it is not known how quickly it fades. And are there starts whose orbits climb to more than a million digits below 48,443, or is 48,443 the first? The records figure stops at 20,000, and the search between there and 48,443 is a computation of a few hours rather than a mathematical question — but it is the kind of computation that, for a map like this, can turn up a surprise.

A coin in the exponent

The juggler map sends an even aa to ⌊a⌋\lfloor \sqrt a \rfloor and an odd one to ⌊a3/2⌋\lfloor a^{3/2} \rfloor, and every start tried reaches 1: 37 in 17 steps through 24,906,114,455,136, and 48,443 in 157 through a number of about 972,463 digits. Each step multiplies ln⁡a\ln a by 12\tfrac12 or 32\tfrac32, so ln⁡ln⁡a\ln \ln a takes steps of −0.693-0.693 or +0.405+0.405, and with fair parities that is a random walk with drift 12ln⁡34≈−0.144\tfrac12 \ln \tfrac34 \approx -0.144 — the Collatz heuristic lifted one logarithm. Starts to 20,000 take 13.0 steps on average and up to 166; terms of ten digits or more are odd almost exactly half the time, with odd runs behaving like a coin’s. Nothing proves that every orbit comes down; the coin is in the exponent, and nobody knows how to read it.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

ConjectureDriftHeuristicInteger square rootIterationOrbitRandom walk