Highly Totient Calculator

Totient

number of solutions to phi(x) = 4811
is it a highly totient number?Yes - 11 solutions beat every smaller count (previous record 10 at 24)
smallest solution x65
largest solution x210
How this was calculated
  1. Sieve Euler's totient phi(x) for every x up to a generous bound and count how many x give phi(x) = 48: 11 solutions.
  2. A highly totient number must beat the solution count of every smaller candidate, not merely tie it - ties do not set a record.
  3. The best count below 48 is 10, so 48 sets a new record and is highly totient.
  4. Even n with no solutions at all are the nontotients; the highly totient numbers are the opposite extreme of the same phi(x) solution-count table.

The Highly Totient Calculator finds highly totient numbers and shows you the full count behind each one. A highly totient number is an n whose totient equation phi(x) = n has more solutions than phi(x) = m for every smaller m. That comparison to every smaller value is the whole test, and the calculator applies it directly. For example, phi(x) = 48 has 11 solutions, more than any smaller value, with the previous record being 10 solutions at 24, so 48 is highly totient. By contrast, phi(x) = 96 has 17 solutions, but that only ties the record of 17 first set at 72, so 96 is not highly totient. Ties do not count. There are exactly 10 highly totient numbers up to 240: 1, 2, 4, 8, 12, 24, 48, 72, 144 and 240, and the record at 240 is 31 solutions to phi(x) = 240.

The method behind the calculator is the accepted standard for this kind of calculation because it follows the definition itself: it counts the solutions of phi(x) = n and compares that count against the record held by every smaller m, rather than relying on a shortcut or an estimate. That is why the results match the known list exactly, including the subtle case of 96, where a tie is correctly rejected. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow each count and check the record comparison yourself instead of taking the answer on trust.

Worked examples

Solutions to phi(x) = 48

(0 - test a single number · 48)

number of solutions to phi(x) = 4811
is it a highly totient number?Yes - 11 solutions beat every smaller count (previous record 10 at 24)
smallest solution x65
largest solution x210

Solutions to phi(x) = 96 - a record tie

(0 - test a single number · 96)

number of solutions to phi(x) = 9617
is it a highly totient number?No - 17 solutions only tie the record of 17 set at 72
smallest solution x97
largest solution x420

Highly totient numbers up to 240

(1 - list up to a limit · 240)

highly totient numbers up to 24010
the full list1, 2, 4, 8, 12, 24, 48, 72, 144, 240
largest in range240
solutions to phi(x) = 240, the current record31

What is a highly totient number?

A highly totient number is defined by counting solutions to the equation phi(x) = n, where phi is Euler's totient function — the function that counts how many positive integers up to x share no common factor with x. For a given n, you ask how many different values of x satisfy phi(x) = n. A number n is highly totient when that count is strictly larger than the count for every smaller value of m. In other words, it sets a new record for the number of solutions, beating not just its immediate predecessor but every smaller number ever tested.

The standard worked example is 48. The equation phi(x) = 48 has 11 solutions, which is more than any smaller value can produce. The previous record was 10 solutions, set at 24, so 48 surpasses it and earns the label. This is what makes the term a 'highly totient number' rather than simply a number with many solutions: the comparison is always against all smaller values, and the margin at 48 is a single extra solution.

The tie rule matters just as much as the record itself, and 96 shows why. The equation phi(x) = 96 has 17 solutions — an impressive count — but 17 solutions were already reached at 72. Because 96 only ties the existing record instead of exceeding it, 96 is not highly totient. A strict improvement is required; matching a previous high is not enough. This rule keeps the list short and prevents every later number that happens to reproduce an old record from qualifying.

Applying that definition, there are exactly 10 highly totient numbers up to 240: 1, 2, 4, 8, 12, 24, 48, 72, 144 and 240. Each one in turn raised the maximum number of solutions to phi(x) = n beyond anything seen at a smaller n. The record at 240 is 31 solutions to phi(x) = 240, the largest count in this range. The sequence is sparse — ten entries spread across the first 240 numbers — because new records become harder to set as n grows.

Tie rule: a number must strictly beat the previous solution-count record. phi(x) = 96 has 17 solutions, but 17 was first reached at 72, so 96 is not highly totient.

How the solution count is computed

Counting the solutions to phi(x) = n means finding every positive integer x whose Euler totient equals n. The calculator does this by sieving phi(x) over a generous bound: it computes phi for every x from 1 up to a limit comfortably larger than n, then tallies how many of those x values produce each totient value. The tally attached to n is the solution count. The word "generous" matters, because solutions can be much larger than n itself. For phi(x) = 48, the smallest solution is 65 and the largest is 210, so a bound set too close to 48 would miss valid answers entirely.

Sizing the bound is the main design decision. Because every solution must be found for the count to be trustworthy, the sieve range is chosen to reach well past the largest x that could plausibly map to n, and the phi values are accumulated in a table indexed by totient. Once the sweep finishes, the entry for n holds the complete list of preimages, and its length is the solution count. The same table also gives the counts for every smaller value, which is exactly what the record test needs.

That record test is what separates a highly totient number from an ordinary one. A highly totient number is an n whose totient equation phi(x) = n has more solutions than phi(x) = m for every smaller m. So the calculator compares the count at n against the maximum count seen at any smaller value. A strict increase makes n highly totient; a tie does not. The case of 48 shows a record being set: phi(x) = 48 has 11 solutions, more than any smaller value, with the previous record being 10 solutions at 24. The case of 96 shows the tie rule in action: phi(x) = 96 has 17 solutions, but that only ties the record of 17 first set at 72, so 96 is not highly totient.

Running the same comparison across a range reproduces the known list. There are exactly 10 highly totient numbers up to 240: 1, 2, 4, 8, 12, 24, 48, 72, 144 and 240. The record at 240 is 31 solutions to phi(x) = 240, the highest count in that span. Seeing the counts rise only at those ten values is a useful check that the sieve and the comparison step agree with the established sequence.

The count must be strict to set a record: 17 solutions at 96 only ties the 17 already reached at 72, so 96 is not highly totient.

The highly totient numbers up to 240

The list of highly totient numbers up to 240 is short: exactly 10 values qualify. Each entry in the table below is a number n whose totient equation phi(x) = n has more solutions than the same equation for every smaller m. The final column gives the record number of solutions that n sets.

The table shows how unevenly the records are spaced. The early entries climb quickly through small values, then the gaps widen: after 48 comes 72, then 144, and finally 240. The last record in the range is 31 solutions to phi(x) = 240, so no number below 240 has more than 31 solutions, and 240 itself has exactly 31.

A single record does not make a number highly totient, and 48 and 96 show why the distinction matters. For 48, phi(x) = 48 has 11 solutions, more than any smaller value; the previous record was 10 solutions at 24. That makes 48 highly totient. For 96, phi(x) = 96 has 17 solutions, but that only ties the record of 17 first set at 72, so 96 is not highly totient. Tying an earlier record is not enough; the count has to be strictly greater than every smaller value's count.

That strict requirement is what keeps the list to 10 entries up to 240. A number can have many solutions to its totient equation and still fail to appear, as 96 does, because an earlier number already reached the same count. Reading the table, the record column only rises: each highly totient number sets a new high mark for solution counts, and the mark at 240 is 31.

If you want to check a value against this list, compare its solution count with the counts for all smaller values, not just the one before it. The highly totient number is the one that pushes the record higher, and up to 240 only these 10 values do so, ending with 240 and its 31 solutions.

Highly totient numberRecord number of solutions to phi(x) = n
1—
2—
4—
8—
12—
2410
4811
7217
144—
24031
Up to 240 there are exactly 10 highly totient numbers, and the record at 240 is 31 solutions to phi(x) = 240.

Highly totient vs nontotient

A highly totient number sits at one end of the totient table, and a nontotient sits at the other. Both are defined by counting solutions to the equation phi(x) = n, but they represent opposite outcomes. A highly totient number is an n whose totient equation phi(x) = n has more solutions than phi(x) = m for every smaller m. A nontotient is an even n with no solutions at all. One value is a record-setter; the other is a dead end.

The record-setting side is easiest to see with a concrete pair. phi(x) = 48 has 11 solutions, more than any smaller value, and the previous record was 10 solutions at 24. That makes 48 a highly totient number. Now compare phi(x) = 96, which has 17 solutions. That sounds like a new record, but it only ties the record of 17 first set at 72, so 96 is not highly totient. Tying is not enough; a highly totient number must strictly beat every smaller m.

The highly totient numbers are rare. There are exactly 10 highly totient numbers up to 240: 1, 2, 4, 8, 12, 24, 48, 72, 144 and 240. At the top of that range, the record at 240 is 31 solutions to phi(x) = 240. So within the first 240 values, only ten numbers set a new high for the number of solutions, even though many other values have several solutions of their own.

Nontotients occupy the empty rows of the same table. They are even numbers that never appear as a value of phi(x), so their row has zero solutions. Where a highly totient number has more solutions than everything below it, a nontotient has none at all. The two categories are not neighbors on a scale of size; they are opposite verdicts on the same counting question. A highly totient number is defined by beating the count below it, and a nontotient is defined by having no count to report.

Keeping the two apart prevents a common mix-up. A number with many solutions is not automatically highly totient, because a smaller number may have matched or exceeded its count, as 96 shows against 72. And a number with no solutions is not a weak record-setter; it is a nontotient, a different kind of entry entirely. When you scan a totient table, look for the strict new highs to find each highly totient number, and look for the even values with no entries to find the nontotients.

Strictly more is the test: 48 sets a new record with 11 solutions, but 96 only ties the earlier record of 17 and is therefore not highly totient.

FAQs

Is 48 a highly totient number?

Yes. The equation phi(x) = 48 has 11 solutions, which beats the previous record of 10 solutions set at 24. Because 48 sets a new record for the number of solutions, it qualifies as a highly totient number. A value only counts when it strictly exceeds every earlier record, not when it merely matches one.

Is 96 a highly totient number?

No. The equation phi(x) = 96 has 17 solutions, but that only ties the record of 17 already set at 72. Ties do not count. To be highly totient, a number must strictly beat the previous record, so 96 fails this test even though its solution count is high.

How many highly totient numbers are there up to 240?

There are 10 highly totient numbers up to 240: 1, 2, 4, 8, 12, 24, 48, 72, 144 and 240. Each of these sets a new record for the number of solutions to phi(x) = n, surpassing every smaller value. Any number in this range that only ties an earlier record is not included.

How many solutions does phi(x) = 240 have?

The equation phi(x) = 240 has 31 solutions. That is the current record in this range, which is why 240 appears in the list of highly totient numbers up to 240. Its 31 solutions exceed the counts for all smaller values, so it qualifies as highly totient.

What is the smallest x with phi(x) = 48?

The smallest x with phi(x) = 48 is 65, and the largest is 210. In total, 11 values of x satisfy phi(x) = 48, which is what gives 48 its record and makes it highly totient. The solutions are spread between those two endpoints, not limited to them.

Can an odd number be highly totient?

Only 1. For every x above 2, phi(x) is even, so odd values above 1 have no solutions at all and cannot set a record. That leaves 1 as the single odd highly totient number, since phi(x) = 1 has solutions and no smaller positive value competes with it.

Sources

Related calculators

Nontotient Calculator
Test whether a number is a nontotient - an even number that is never a value of Euler's totient - or count the nontotients up to a limit, with the smallest solution of phi(x) = n when one exists.
Euler's Totient Calculator
Euler's totient φ(n) — how many integers up to n are coprime to n — from the distinct prime factors of n.
Carmichael Function Calculator
The Carmichael function lambda(n), the smallest universal exponent modulo n, from the prime factorization, compared with Euler's totient.