Noncototient Calculator
Totient
- Compute phi(m) for every m up to 20,000 with a sieve and tabulate the cototient values m - phi(m).
- No m up to 20,000 produces the cototient 26, and the theory of the cototient's range confirms none exists at all.
- So 26 never occurs as a cototient: it is a noncototient - the mirror image of the nontotient question, which asks about values of phi itself.
- Up to 100 the noncototients are 10, 26, 34, 50, 52, 58, 86, 100 - 8 of them.
The Noncototient Calculator finds the even numbers that never appear as a cototient. The cototient of m is m - phi(m), where phi is Euler's totient function, and a noncototient is an even number that no integer m produces. The calculator checks candidate values against this definition and reports which ones are noncototients, giving you the answer directly instead of leaving you to test each case by hand. For example, the noncototients up to 100 are exactly eight: 10, 26, 34, 50, 52, 58, 86 and 100, and 10 is the smallest. The distinction is easy to get wrong: 26 is a noncototient, but 14 is not, because 14 = 26 - phi(26) = 26 - 12. Noncototients are even by definition, though odd values of the cototient do occur, starting with 1. Whether there are infinitely many noncototients is an open problem, mirroring the nontotient question for phi itself.
The method behind the calculator follows the definition of the cototient directly: for each m, compute phi(m), subtract it from m, and record the result, so a number counts as a noncototient only when no m in the search range yields it. That direct check is the accepted standard for this kind of calculation because it rests on the definition itself rather than on a shortcut or approximation. On this page you will find the formula, step-by-step workings, worked examples and sources, so you can follow how each result is produced and verify it yourself.
Worked examples
Is 26 a noncototient?
(0 - test a single number · 26)
| is 26 a noncototient? | Yes - no m has m - phi(m) = 26 |
| noncototients up to 100 | 8 |
| the list up to 100 | 10, 26, 34, 50, 52, 58, 86, 100 |
| smallest noncototient | 10 |
Is 14 a noncototient?
(0 - test a single number · 14)
| is 14 a noncototient? | No - 14 = 26 - phi(26) |
| noncototients up to 100 | 8 |
| the list up to 100 | 10, 26, 34, 50, 52, 58, 86, 100 |
| smallest noncototient | 10 |
Noncototients up to 100
(1 - list up to a limit · 100)
| noncototients up to 100 | 8 |
| the full list | 10, 26, 34, 50, 52, 58, 86, 100 |
| largest in range | 100 |
| smallest noncototient | 10 |
What is a noncototient?
The cototient of a whole number m is defined as m minus phi(m), where phi(m) is Euler's totient function — the count of numbers from 1 through m that share no common factor with m other than 1. So the cototient measures how many of those numbers do share a factor with m. A noncototient is an even number that never turns up as a cototient, no matter which m you try. In other words, you can search through every whole number, compute m - phi(m) for each one, and certain even values will simply never appear in that list. Those missing values are the noncototients.
A concrete example makes the idea clear. Take m = 26. The totient phi(26) equals 12, so the cototient of 26 is 26 - 12 = 14. That means 14 is a cototient — it occurs, with 26 as its witness — so 14 is not a noncototient. Now flip the question around: is there any m whose cototient equals 26? There is not. No whole number m satisfies m - phi(m) = 26, which makes 26 itself a noncototient. The same number, 26, plays both roles in this pair: it produces 14 as a cototient, yet 26 is never produced by any m.
The noncototients up to 100 are exactly eight in number: 10, 26, 34, 50, 52, 58, 86 and 100. The smallest of them is 10. Notice that every entry on that list is even, and that is not a coincidence. Noncototients are even by definition, because the cototient m - phi(m) is always even for m greater than 1. Odd values of the cototient do occur, but they start with 1, so an odd number is never called a noncototient. The definition concerns only even values that are absent from the range of m - phi(m).
One natural question is how many noncototients there are. Whether infinitely many noncototients exist is an open problem — no one has settled it. This mirrors the nontotient question for phi itself, where the same kind of infinitude puzzle remains unresolved. The list above, complete through 100, shows the noncototients are not rare in that range, but a finite list cannot answer what happens beyond it. Until the question is resolved, the honest statement is that the count is unknown.
How the check works
To decide whether a given even number is a noncototient, the calculator works backward from the definition. The cototient of m is m - phi(m), where phi(m) counts the integers from 1 through m that share no factor with m. A noncototient is an even number that never occurs as a cototient. So the question "is n a noncototient?" becomes "is there any m at all with m - phi(m) = n?" The check answers that by building a table of cototient values and looking up n in it.
The first design choice is how far to sieve. It is tempting to test only m up to n plus a little, but that is not safe. A cototient value can come from an m several times larger than the value itself, so the calculator computes phi(m) for every m far beyond n and records m - phi(m) for each one. Only after that wide sweep does it ask whether n appears in the table. If n never shows up across the whole range, the number is reported as a noncototient by the check.
Computing phi one m at a time would be slow, so the calculator uses a sieve instead. It fills an array with 1 through m in order and then, for each prime, subtracts the appropriate fraction from every multiple of that prime. This is the same idea as a prime sieve, and it yields phi(m) for the entire range in one pass. The cototient of each m is then just m minus its phi value, and a second pass marks every value that occurs. The lookup for n is a single array read, which keeps the check fast even when the sieve reaches well past the number being tested.
The table makes the known cases easy to confirm. Up to 100 the noncototients are exactly eight: 10, 26, 34, 50, 52, 58, 86 and 100, and 10 is the smallest. The contrast between 26 and 14 shows why the wide sieve matters. 26 is a noncototient, but 14 is not: 14 = 26 - phi(26) = 26 - 12, so the value 14 is produced by m = 26 even though 14 is smaller than 26. A search that stopped too early or looked only near n could miss exactly this kind of match.
Two properties of the table guide the interpretation of results. Noncototients are even by definition, because odd values of the cototient do occur, starting with 1, so the calculator only needs to test even candidates. And the question of whether there are infinitely many noncototients is an open problem, mirroring the nontotient question for phi itself. A positive result from the check therefore means "no m was found in the sieved range," not a proof that none exists; the range is chosen to be generous, but it is still finite.
The noncototients up to 100
The noncototients up to 100 form a short and completely known list. There are exactly eight of them: 10, 26, 34, 50, 52, 58, 86 and 100. The smallest noncototient is 10. If you have read about the cototient — the value m - phi(m) for a number m — you might expect a scatter of even numbers to be missing from that list of values. Up to 100, only these eight are missing.
The table below sets out all eight values. Each row gives the noncototient and its position in the list, so you can see at a glance that the gaps are not evenly spaced. After 10 comes a jump to 26, then a run of 34, 50, 52 and 58, then 86 and 100.
It is worth being precise about what the table does and does not say. A noncototient is an even number that never occurs as a cototient. Because the definition concerns an even number that is never produced, the table is a list of even numbers only. Odd values of the cototient do occur, starting with 1, so odd numbers are not part of this list by definition. The table therefore shows the complete set of even numbers up to 100 that no m maps to under m - phi(m).
A single example makes the idea concrete. The number 26 is a noncototient, but 14 is not: 14 = 26 - phi(26) = 26 - 12. In other words, 26 does occur as a cototient, since subtracting phi(26), which is 12, from 26 gives 14. So 14 is a cototient value, while 26 itself is one of the eight noncototients in the table.
The list up to 100 is settled, but what happens beyond it is not. Whether there are infinitely many noncototients is an open problem, mirroring the nontotient question for phi itself. The eight values above are therefore a complete answer for this range and nothing more: they do not tell you how many noncototients exist in total, and they do not settle the infinite question either way.
| Position | Noncototient |
|---|---|
| 1 | 10 |
| 2 | 26 |
| 3 | 34 |
| 4 | 50 |
| 5 | 52 |
| 6 | 58 |
| 7 | 86 |
| 8 | 100 |
Noncototient vs nontotient
The name noncototient is easy to confuse with nontotient, and the two terms describe different things. A noncototient is defined through the cototient: the cototient of m is m - phi(m), and a noncototient is an even number that never occurs as a cototient — that is, no whole number m produces it. A nontotient, by contrast, is a number that phi never takes as a value. The nontotient question is about Euler's totient function directly; the noncototient question is about the gap between a number and its totient. A number can be one without being the other, so the two lists are not the same.
The distinction is easiest to see with a small example. The number 26 is a noncototient, but 14 is not: 14 = 26 - phi(26) = 26 - 12. So 14 appears as a cototient, produced by m = 26, and therefore cannot be a noncototient. Meanwhile 26 itself never turns up as m - phi(m) for any m, which is what makes it a noncototient. Anyone who has worked with the nontotient page will recognize the style of argument — a single explicit witness settles the negative case — but the witness here is a cototient value, not a phi value.
One structural fact separates the two ideas sharply: noncototients are even by definition. Odd values of the cototient do occur, starting with 1, so an odd number is never a noncototient no matter how it behaves with respect to phi. The noncototients up to 100 are exactly eight: 10, 26, 34, 50, 52, 58, 86 and 100, and 10 is the smallest. That short list is worth keeping in mind when comparing with nontotients, because the nontotient list up to the same bound is a different collection entirely. A quick check of any candidate against the definition — can some m satisfy m - phi(m) = n? — is the only reliable test.
The deeper question is also shared, though it concerns a different function. Whether there are infinitely many noncototients is an open problem, mirroring the nontotient question for phi itself. Browkin and Schinzel are associated with work on this infinitude question, and it remains unresolved. So neither page can offer a final answer about how the list behaves beyond the range that has been computed; both rest on the same kind of open problem, asked about cototients rather than about phi.
For practical use, treat noncototient and nontotient as separate categories with separate definitions. When a calculator or table labels a number, check which function is meant: a noncototient is an even number missed by m - phi(m), while a nontotient is a number missed by phi. The overlap between the two lists is a question to verify case by case, not an assumption to make.
- Noncototient: an even number that never equals m - phi(m) for any m.
- Nontotient: a number that phi never takes as a value.
- 26 is a noncototient; 14 is not, since 14 = 26 - phi(26) = 26 - 12.
- Noncototients are even by definition; odd cototients occur, starting with 1.
- Noncototients up to 100: 10, 26, 34, 50, 52, 58, 86 and 100; 10 is the smallest.
- Infinitude of noncototients is open (Browkin and Schinzel), mirroring the nontotient question for phi.
FAQs
What is a noncototient?
A noncototient is an even number that is never equal to m minus phi(m) for any whole number m. In other words, it is a value the cototient function simply skips: no input m produces it as an output. The calculator tests candidate numbers against this definition.
Is 26 a noncototient?
Yes. The number 26 is a noncototient because no value of m satisfies m minus phi(m) equals 26. You can search every m, and none gives that result, so 26 belongs on the list of skipped values.
Is 14 a noncototient?
No. The number 14 is not a noncototient, because 14 equals 26 minus phi(26), and phi(26) is 12. Since some m, namely 26, produces 14 as a cototient, 14 is reached by the function and therefore is not skipped.
What is the smallest noncototient?
The smallest noncototient is 10. Every even number below 10 can be written as m minus phi(m) for some m, but 10 cannot, making it the first value the cototient function skips.
How many noncototients are there up to 100?
There are eight noncototients up to 100. They are 10, 26, 34, 50, 52, 58, 86 and 100. All are even, and none of them equals m minus phi(m) for any m.
Are there infinitely many noncototients?
This is unknown. Whether infinitely many noncototients exist remains an open problem in mathematics. However, noncototients keep appearing as far as the sieve is run, so no shortage has been found even though a proof is still missing.