Przejdź do treści
Number Buffet

Wartości funkcji φ Eulera

φ(n) liczy liczby mniejsze od n, które nie mają z nią wspólnego czynnika — funkcja w sercu twierdzenia Eulera i RSA.

OEIS A000010 · 3 min czytania

Ustawienia

Szybkie ustawienia

φ(1) = 1 by convention: the empty product counts 1 itself as coprime to 1.

Up to 1,000,000. At most 10,000 rows are shown.

Group large values as 400,000 for readability.

Dopracuj wygląd

Najpierw wybierz styl obok obrazu — te suwaki go dostrajają.

Frame

A border drawn inside the edge of the image.

Zaawansowane

Wyniki

50 wartości

1: 1, 2: 1, 3: 2, 4: 2, 5: 4, 6: 2, 7: 6, 8: 4, 9: 6, 10: 4, 11: 10, 12: 4, 13: 12, 14: 6, 15: 8, 16: 8, 17: 16, 18: 6, 19: 18, 20: 8, 21: 12, 22: 10, 23: 22, 24: 8, 25: 20, 26: 12, 27: 18, 28: 12, 29: 28, 30: 8, 31: 30, 32: 16, 33: 20, 34: 16, 35: 24, 36: 12, 37: 36, 38: 18, 39: 24, 40: 16, 41: 40, 42: 12, 43: 42, 44: 20, 45: 24, 46: 22, 47: 46, 48: 16, 49: 42, 50: 20


Utwórz obraz

Włącz JavaScript, aby ostylować te liczby i pobrać je jako obraz. Same wartości są wypisane powyżej.

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

Artykuł z tłem historycznym poniżej nie został jeszcze przetłumaczony i jest wyświetlany po angielsku.

O wartości funkcji φ eulera

The function is Leonhard Euler's. In 1736, early in his first St Petersburg period, he published the first proof of what we now call Fermat's little theorem — that a^(p−1) ≡ 1 modulo a prime p. Fermat had asserted it in a letter in 1640 without proof, and Euler returned to it repeatedly over the following decades, looking for the version that worked for composite moduli. The generalisation he found, printed in 1763 in the St Petersburg Academy's Novi Commentarii, required knowing how many numbers below n are coprime to n. That count is the function, and the result is Euler's theorem: a^φ(n) ≡ 1 modulo n whenever a and n share no factor.

Euler had no settled notation for it. The symbol φ is Carl Friedrich Gauss's, introduced in the Disquisitiones Arithmeticae of 1801, where it anchors the treatment of primitive roots and residue classes. The English name arrived much later still: James Joseph Sylvester coined "totient" in 1879, along with "totitives" for the coprime numbers being counted. Both words were his inventions, and only the first stuck.

The function moved from pure arithmetic to infrastructure in 1977, when Ron Rivest, Adi Shamir and Leonard Adleman built their public-key cryptosystem on it. For a modulus n = pq, φ(n) = (p−1)(q−1), and the private exponent is the inverse of the public one modulo φ(n) — so knowing φ(n) is equivalent to being able to decrypt. Their paper appeared in Communications of the ACM in 1978. Modern implementations usually substitute the closely related Carmichael function λ(n) = lcm(p−1, q−1), which divides φ(n) and yields smaller exponents.

Basic questions remain open. Carmichael conjectured around 1907 that no value of φ is attained by exactly one integer; a century later that is still unproven.

Najważniejsze właściwości

  • φ(n) counts the integers from 1 to n that are coprime to n, so φ(1) = 1 and the sequence starts 1, 1, 2, 2, 4, 2, 6, 4, 6, 4.
  • φ(n) = n − 1 exactly when n is prime — the condition is necessary as well as sufficient.
  • φ is multiplicative: φ(mn) = φ(m)·φ(n) whenever gcd(m, n) = 1, and φ(p^k) = p^k − p^(k−1) for prime p.
  • Euler’s product formula: φ(n) = n · ∏(1 − 1/p) over the distinct primes p dividing n.
  • Gauss’s identity: summing φ(d) over all divisors d of n gives exactly n.
  • φ(n) is even for every n ≥ 3; the only odd value it ever takes is 1, at n = 1 and n = 2.
  • φ(n) > √n for every n > 6, and φ(n) ≤ n − √n for every composite n.
  • Not every even number is a totient value: 14 is the smallest even number that is φ(n) for no n at all.

Gdzie się pojawiają

  • RSA key generation: for a modulus n = pq the decryption exponent is the modular inverse of the encryption exponent with respect to φ(n) = (p−1)(q−1). Current standards generally use the Carmichael function λ(n) instead, which divides φ(n).
  • Euler’s theorem lets huge exponents be reduced modulo φ(n) before any modular exponentiation is performed — the standard shortcut in computer-algebra systems and crypto libraries.
  • There are exactly φ(n) primitive nth roots of unity, so the nth cyclotomic polynomial has degree φ(n) and a cyclic group of order n has φ(n) generators.
  • The Farey sequence of order n — all reduced fractions in [0, 1] with denominator at most n — has exactly 1 + φ(1) + φ(2) + … + φ(n) terms.
  • Totient sums give the coprimality density: the totients up to x add up to about 3x²/π², which is the same statement as "two random integers are coprime with probability 6/π² ≈ 0.6079".
  • For n coprime to 10, the repeating block in the decimal expansion of 1/n has length equal to the multiplicative order of 10 modulo n, which always divides φ(n).

Jak korzystać z tego generatora

Wygenerowane wartości są na górze, a obok nich przycisk kopiowania. Aby zrobić z nich obraz, wybierz wygląd spośród styli w sekcji Utwórz obraz, wskaż rozmiar eksportu i pobierz jako PNG, JPEG lub WebP. Wszystko renderuje się w przeglądarce, więc nic, co wygenerujesz, nie jest wysyłane na serwer.

Pasek adresu aktualizuje się w trakcie pracy, więc link zawsze odtwarza dokładnie to, co widzisz — przydaje się, gdy chcesz udostępnić konkretny ciąg albo zachować konfigurację na później. Użyj Kopiuj, aby zabrać wartości jako zwykły tekst, albo Eksportuj dane, aby otrzymać CSV, JSON, NDJSON, SQL lub XML.

Źródła

Streszczenia historyczne na tej stronie opierają się na wymienionych wyżej źródłach o otwartej licencji. Zauważyłeś błąd? Napisz nam, a go poprawimy.