# オイラーのφ関数（totient）

オイラーのトーシェント関数。n 以下で n と互いに素な整数の個数。

## 書き方

### totient(n)

**n**

整数。整数を受け取ります。

## 例題

- $\displaystyle \operatorname{totient}(10) = 4$

  `totient(10)`

  ソルバーでは、`totient(10)` の答えは `4` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=totient%2810%29)

## 関連する関数

- [bell_b](https://ja.hilberon.com/library/bell_b)

  n番目のベル数：n個の要素をグループに分ける方法の数。
- [subfactorial](https://ja.hilberon.com/library/subfactorial)

  部分順列。n 個のものを、どれも元の位置に残らないように並べ替える方法の数。
- [bernoulli_b](https://ja.hilberon.com/library/bernoulli_b)

  n番目のベルヌーイ数。
- [stirling_s2](https://ja.hilberon.com/library/stirling_s2)

  第2種スターリング数。n 個のものを k 個の組に分ける方法の数。
- [carmichael_lambda](https://ja.hilberon.com/library/carmichael_lambda)

  カルマイケル関数: nと互いに素なすべての数を法nで1にする最小の冪。
- [stirling_s1](https://ja.hilberon.com/library/stirling_s1)

  第1種スターリング数（符号付き）。

---
Source: https://ja.hilberon.com/library/totient
