← The 369 Rabbit Hole Math curiosities · Start here

Math curiosities

Which magic numbers are real math?

Four real, one convention

Most of them. 6174, 142857, the Collatz sequence and the repeating Fibonacci digits are real mathematics that anyone with a calculator can check. 432 Hz is the odd one out: it is a choice of tuning, not a property of numbers. The quickest test of any magic number is to count in a different base. Some patterns survive, some turn into a different value, and some vanish.

The base switchBase 10
10

    • Holds
    • Changes into something else
    • Gone

    How to tell

    What makes a pattern real

    It holds every time, and someone has shown why. Midy’s theorem explains why 142 + 857 = 999, and a finite list like Kaprekar’s can simply be run to the end, which is what the scorecard below does. Collatz sits in between, checked by computer below about 271 and still unproved.

    Then ask whether it depends on counting in tens. 142857, 6174, 12345679 and the 1089 trick only look the way they do because we count in tens. The theorems behind them hold in other counting systems too, where they produce different digits. Collatz and the Fibonacci repeats do not care how you write numbers at all. The same test sorts vortex math: its arithmetic is real, and it moves when the base moves.

    432 Hz is a different kind of claim. A hertz is one vibration per second, and the second is a human unit. The digits of 432 add to 9, but so do the digits of every multiple of 9. The tuning page sorts its history from its legend.

    Scored by brute force

    How often each claim holds when a computer checks it

    We wrote one short Python script and pointed it at every claim in this section. Each claim got the largest input set we could run in a few seconds, and its score is the share of those inputs where the claim came out true. That puts a schoolbook trick, an open problem and a tuning legend on the same ruler.

    Share of tested inputs where each magic number claim holdsLollipop chart. 142857, 12345679, Fibonacci remainders and Collatz below ten million hold in 100 percent of tested cases, 6174 in 99.9, the 1089 trick in 90, one Kaprekar constant per base in 16.7 percent of bases 5 to 16, and whole-hertz notes at A = 432 on 9.1 percent of piano keys. 0% 25% 50% 75% 100% 142857 × 1 to 6 rotates 6 / 6 · 100% 12345679 × 9k = kkkkkkkkk 9 / 9 · 100% Fibonacci remainders repeat 999 moduli · 100% Four digits reach 6174 8,991 / 9,000 · 99.9% The 1089 trick 810 / 900 · 90% Collatz falls to 1 10M starts · 100% One constant in every base 2 / 12 · 16.7% A = 432 gives whole notes 8 / 88 keys · 9.1%
    • Holds, proved or fully checked
    • Holds with a condition or without proof
    • Legend

    The 6174 run took 4.68 steps on average and never more than seven. Its nine misses are the repdigits 1111 to 9999, which collapse to zero. The 1089 trick fails on the 90 numbers whose first and last digits match, and if you forget to write 99 as 099 it works for only 640 of the 900.

    Collatz held for all ten million starts. The longest flight under that line belongs to 8,400,511, which needs 685 steps to reach 1, and the full score still says nothing about numbers past ten million, so its bar is drawn in the unproven color. Fibonacci remainders repeated for every modulus from 2 to 1,000, and no cycle ran longer than six times its modulus (mod 10 it is 60 long).

    The two legend claims sink when they are tested. Across the twelve bases from 5 to 16, Kaprekar’s four digit routine finds one constant for every start only in 5 and 10. Tuning A to 432 Hz gives a whole-hertz frequency to eight of the 88 piano keys in equal temperament, every one of them an A, and 440 manages seven. Middle C at A = 432 comes out at 256.87 Hz, short of the 256 the legend promises.

    Three quick ones

    Small curiosities with simple reasons

    12345679 × 9 = 111111111

    Times 18 gives 222222222 and the run goes on to times 81. It works because 12345679 is 111111111 divided by 9, and the missing 8 is swallowed by a carry in 1/81 = 0.012345679...

    The 1089 trick

    Take a three digit number whose first and last digits are different. Reverse it and subtract the smaller from the larger. Reverse the answer and add. 732 − 237 = 495, and 495 + 594 = 1089. It always gives 1089 as long as a difference of 99 is written 099. We checked all 810 such numbers.

    Digit ladders

    1 × 8 + 1 = 9, 12 × 8 + 2 = 98, 123 × 8 + 3 = 987, all the way to 123456789 × 8 + 9 = 987654321. Its sister ladder: 1 × 9 + 2 = 11, 12 × 9 + 3 = 111, up to 12345678 × 9 + 9 = 111111111. Both are plain arithmetic identities, and both fall apart in any other base.

    Real vs legend

    Every magic number claim, sorted

    ClaimStatus
    Every four digit number (digits not all the same) reaches 6174.Real · Checked
    142857 × 1 to 6 gives the same digits, rotated.Real · Proven
    12345679 × 9 = 111111111.Real
    The 1089 trick always works.Mostly · first and last digits must differ
    Every number reaches 1 under Collatz.Unproven · checked past 271
    Fibonacci digits repeat forever.Real · Proven
    432 Hz is a natural or ancient pitch.Legend
    These patterns prove numbers are cosmic.Legend · they move with the base

    Questions

    Magic numbers

    Is there such a thing as a magic number in math?

    Not in a mystical sense. Mathematicians use words like fixed point and cycle. 6174 is a fixed point of Kaprekar’s routine: 7641 − 1467 gives 6174 again. 142857 is the repeating block of 1/7. Those are real properties, and they have ordinary explanations.

    Why does 12345679 skip the 8?

    Because 12345679 is 111111111 divided by 9, which ties it to 1/81 = 0.012345679012345679... In that decimal the 8 is swallowed by a carry from the 9 next to it. Multiply 12345679 by 9 and you get 111111111 back.

    Does the 1089 trick always work?

    For any three digit number whose first and last digits are different, yes, as long as a difference of 99 is written as 099 before you reverse it. We checked all 810 such numbers and all of them give 1089.

    Do these tricks work in other number bases?

    The theorems behind them do, but the numbers change. In base 12, the fraction 1/5 gives a cyclic number that plays the part of 142857. Kaprekar’s routine runs in any base but lands on different constants or loops. Collatz and the Fibonacci repeats behave the same whatever system you count in.

    Does Kaprekar’s routine settle on one constant in every base?

    No. We ran the four digit routine in each base from 5 to 16. Only 5 and 10 send every start to a single fixed number. In the other ten the starts fall into a repeating loop, or split between several endings.

    Which famous number patterns are still unproven?

    The Collatz conjecture. Computers have checked each start below about 2 to the power 71, and all of them reach 1. Nobody has proved that the rest do.

    Is 432 a special number in math?

    Not especially. Its digits add to 9, but so do the digits of every multiple of 9. 432 Hz is a choice of tuning pitch, and the hertz depends on the second, a unit people invented. It is not a Fibonacci number either: the sequence jumps from 377 to 610.

    Sources

    Where this comes from

    1. Kaprekar’s routine, decimal constants 495 and 6174: Wikipedia. Yutaka Nishiyama, “Mysterious number 6174,” Plus magazine, 2006.
    2. Cyclic numbers and why 142857 is the only one in decimal: Wikipedia.
    3. Midy’s theorem, which works in any radix: Wikipedia.
    4. Collatz conjecture and its verification limit: Wikipedia.
    5. Pisano periods, Fibonacci remainders repeat for every modulus: Wikipedia.
    6. The 1089 trick: Wikipedia.
    7. 12345679 × 9, NCERT Exemplar Class 8 exercise: Cuemath.
    8. Digit ladder 1 × 8 + 1 = 9, NCERT Class 6: Careers360.
    9. Scorecard: our own brute force run over all the inputs named in the chart (Python, 2026-11-14). Piano key frequencies use twelve tone equal temperament with A4 as key 49: Wikipedia.
    Keep itFree

    4K wallpaper

    The seven curiosities in the base you picked, at 2160 × 3840.

    Getting the file adds you to our email list. Unsubscribe anytime. Privacy policy.

    Share

    An image of which magic numbers survive your base. Copy link reopens it.

    Poster

    Every magic number, real or legend, on one print.