Markov Number Calculator
Number Theory
- Markov numbers are the values that appear in positive integer solutions of x^2 + y^2 + z^2 = 3xyz. The smallest are 1, 2, 5, 13, 29, 34, 89, 169.
- From (1, 1, 1), replacing one component z by 3xy - z (Vieta jumping) generates every solution exactly once, so the tree search up to the candidate is exhaustive.
- A witness triple is (1, 13, 34): 1^2 + 13^2 + 34^2 = 1,326 and 3 x 1 x 13 x 34 = 1,326.
- Whether every Markov number is the largest member of exactly one triple is the famous unicity conjecture - still open after a century.
In 1879 Andrey Markov studied the Diophantine equation x^2 + y^2 + z^2 = 3xyz and found that its positive integer solutions form a single branching tree. The numbers that appear in any solution are the Markov numbers: 1, 2, 5, 13, 29, 34, 89, 169, 194, 233, 433, 610, 985 - thirteen of them below 1,000, each one a small miracle of an equation balancing perfectly.
This calculator tests membership by growing the Markov tree from its root (1, 1, 1) using Vieta jumping, exactly as the theory prescribes, and for members it exhibits a witness triple - for 34, the triple (1, 13, 34), where 1 + 169 + 1,156 = 1,326 = 3 x 1 x 13 x 34. A 'no' is equally rigorous: the tree generates every solution, so a number the tree never reaches occurs in no triple at all.
Hovering over the whole subject is the unicity conjecture: that every Markov number is the largest member of exactly one triple. It has been open for over a century, resisting sustained attack - a reminder that an equation a child can verify can still defeat the profession.
Worked examples
Test 34 - Markov, in the triple (1, 13, 34)
(Test a number · 34 · 1000)
| Markov number result | Yes - 34 is a Markov number |
| Equation | x^2 + y^2 + z^2 = 3xyz |
| Tested value | 34 |
| Count up to 1,000 | 13 |
Test 35 - not a Markov number
(Test a number · 35 · 1000)
| Markov number result | No - 35 is not a Markov number |
| Equation | x^2 + y^2 + z^2 = 3xyz |
| Tested value | 35 |
| Count up to 1,000 | 13 |
List Markov numbers up to 1,000
(List numbers up to a bound · 34 · 1000)
| Markov number result | 13 Markov numbers up to 1,000 |
| Largest in range | 985 |
| Count | 13 |
| Equation | x^2 + y^2 + z^2 = 3xyz |
The equation and its seed
Check the seed by hand: 1 + 1 + 1 = 3 and 3 x 1 x 1 x 1 = 3. The triple (1, 1, 1) solves the equation, and it is the only solution with equal components. Markov's theorem says every other solution grows from this one by a single move, applied over and over: in any triple, one component can be replaced by a new value computed from the other two.
The move exists because the equation is quadratic in each variable. Fix x and y and view it as a quadratic in z: if z is one root, the other root is 3xy - z (the sum of the roots is 3xy). So from (1, 1, 1), replacing a 1 gives 3 x 1 x 1 - 1 = 2, and (1, 1, 2) is born: 1 + 1 + 4 = 6 = 3 x 1 x 1 x 2. Every solution is reachable this way, and the solution graph is a tree - no loops, one root.
Growing the tree
From (1, 1, 2) the moves give (1, 2, 5). From (1, 2, 5), replacing each component in turn gives (2, 5, 29) and (1, 5, 13) - the tree forks. From (1, 5, 13) come (5, 13, 194) and (1, 13, 34); from (2, 5, 29) come (5, 29, 433) and (2, 29, 169). The Markov numbers are simply every value that appears anywhere in this tree.
The calculator grows the tree exhaustively up to your candidate or bound, collecting values as it goes. Because Markov proved the tree contains all solutions, exhaustion is a proof technique here, not a heuristic: membership and non-membership are both settled facts when the generation finishes.
The witness triple
For a member, the calculator exhibits one triple containing it - the first the tree produced. For 34 that is (1, 13, 34), and you can verify it with a pencil: 1 + 169 + 1,156 = 1,326, and 3 x 1 x 13 x 34 = 1,326. Witnesses matter because they convert a database claim ('34 is in the list') into a checkable fact ('here is the equation balancing').
Most Markov numbers appear in several triples - 5 sits in (1, 2, 5), (1, 5, 13) and (2, 5, 29) - as the middle or smallest member. The unicity question is only about the largest slot: can two different triples share the same maximum? Nobody knows, and the calculator's witness for a large candidate is therefore 'a' triple, possibly not 'the' triple, in exactly the way the conjecture cares about.
The unicity conjecture
Order each triple increasingly. The conjecture claims the largest component determines the whole triple: given a Markov number m as the maximum, the other two components are forced. Verified computationally to enormous bounds and proven for Markov numbers that are prime powers and a few other families, it remains unproven in general - one of those statements whose simplicity mocks its difficulty.
The conjecture matters beyond pride: Markov numbers index rational approximations and the Markov spectrum in Diophantine approximation, where uniqueness would tidy deep structure. Frobenius stated the conjecture in 1913. It has outlived him by more than a century and counting.
Markov numbers and Fibonacci
Run down the tree always replacing the current largest-adjacent component in one direction and a pattern emerges: 1, 2, 5, 13, 34, 89, 233, 610 - every other Fibonacci number. The triples (1, F, F') along that spine satisfy the equation because of a Fibonacci identity, Cassini's in disguise. The other great spine, through 1, 5, 29, 169, 985, follows the Pell numbers' rhythm instead.
These spines explain the sequence's irregular texture: 13 below 1,000 the values run 1, 2, 5, 13, 29, 34, 89, 169, 194, 233, 433, 610, 985 - two interleaved growth patterns plus their cross-branches. Lists from other sources should match this exactly; the tree leaves no room for editorial discretion.
Using the calculator
Test mode grows the tree to your candidate and reports membership with a witness. List mode collects every Markov number to your bound - 13 up to 1,000, as the theory requires. Both are exact; there is no approximation anywhere in the page, because the equation's integer nature admits none.
If you are exploring, try the near-misses: 35, sitting between 34 and 89, is not a Markov number, and neither is 100, 500 or 1,001. The family is sparse and getting sparser - gaps grow roughly in step with the values themselves - which is why each member's witness triple is worth displaying rather than asserting.
Where Markov found the equation
Markov's 1879 work was not recreational: he was studying how well real numbers can be approximated by rationals, and the equation arose from the theory of binary quadratic forms - specifically, from forms whose minimum values are unusually large relative to their discriminant. The Markov spectrum, the set of values this theory produces, begins with a discrete part generated by exactly these triples before dissolving into a continuous part related to the Lagrange spectrum.
That origin explains the equation's peculiar shape. The 3xyz term is not decoration: it is the condition for a form to sit at the extremal edge of approximation quality, and the tree of solutions is the family tree of the worst-approximable numbers. The calculator tests the arithmetic shadow of a deep approximation theorem.
Vieta jumping's day in court
The generation move - replacing one root of a quadratic by the other - is called Vieta jumping, and it became famous far beyond Markov theory through a single competition problem: the 1988 International Mathematical Olympiad's problem 6, a question about when (a^2 + b^2) / (ab + 1) can be a perfect square, whose official solution jumps Vieta-style down to a minimal case. The problem was considered so hard that the jumping technique entered the olympiad folklore permanently.
The same descent proves the Markov tree's completeness from the other direction: take any solution, repeatedly replace its largest component by its Vieta partner to get a smaller solution, and the process must bottom out at (1, 1, 1) - so every solution descends from the seed, which is to say the tree the calculator grows contains them all.
The Pell spine
The spine through (1, 2, 5), (2, 5, 29), (5, 29, 433) follows the Pell numbers: 1, 5, 29, 169, 985 are every other Pell number, generated by the recurrence a(n) = 6a(n-1) - a(n-2) - check: 29 = 6 x 5 - 1, 169 = 6 x 29 - 5, 985 = 6 x 169 - 29. The growth factor per step approaches 3 + 2 root 2, the fundamental unit of the Pell equation, which is why this spine's numbers are spaced by a factor of about 5.83.
Two spines, two growth constants - Fibonacci's golden ratio squared on one side, the Pell unit on the other - and the cross-branches inherit mixtures of both. The irregular look of the Markov sequence is the visible interference pattern of these two exponential rhythms.
FAQs
What is a Markov number?
A positive integer that appears in a solution of x^2 + y^2 + z^2 = 3xyz - the sequence begins 1, 2, 5, 13, 29, 34, 89, 169.
Is 34 a Markov number?
Yes. It appears in the triple (1, 13, 34): 1 + 169 + 1,156 = 1,326 = 3 x 1 x 13 x 34.
How many Markov numbers are below 1,000?
13, the largest being 985.
How are Markov numbers generated?
From the seed triple (1, 1, 1), repeatedly replace one component z by 3xy - z - a move called Vieta jumping. Markov proved this tree reaches every solution.
Is 35 a Markov number?
No. Exhaustive tree generation never produces it, and since the tree contains all solutions, 35 occurs in no triple.
What is the unicity conjecture?
The open conjecture that every Markov number is the largest member of exactly one solution triple - unproven since Frobenius raised it in 1913.
Are Markov numbers related to Fibonacci numbers?
Yes - one spine of the tree runs 1, 2, 5, 13, 34, 89, 233, 610: every other Fibonacci number.
What is a witness triple?
A specific solution triple containing the tested number, exhibited so the verdict can be verified by direct substitution into the equation.