Questions tagged [totient-function]

Questions on the totient function $\phi(n)$ (sometimes $\varphi(n)$) of Euler, the function that counts the number of positive integers relatively prime to and less than or equal to $n$.

The Euler phi function $\phi(n)$ is defined to be the number of integers between $1$ and $n$ which are relatively prime to $n$; that is,

$$\phi(n) = |\{1 \le k < n : \gcd{(k, n)} = 1\}|$$

The phi function is multiplicative; that is, if $n$ and $m$ are relatively prime, then

$$\phi(nm) = \phi(n) \phi(m)$$

There is also a product representation,

$$\phi(n) = n \prod_{p|n} \left(1 - \frac{1}{p}\right)$$

where the product is taken over prime divisors of $n$.

One particularly important use of Euler's phi function is in computing exponents with modular arithmetic. Whenever $a$ and $n$ are relatively prime, Euler's theorem states that

$$a^{\phi(n)} \equiv 1 \pmod{n}$$

1298 questions
1
vote
1 answer

Euler's Theorem Application

I was given the following problem: Find the smallest positive integer $m$ such that $$(49^{13})^m \equiv 49 \pmod{155}.$$ My approach: We know that $\varphi(155) = 120$ and $\gcd(49,155) = 1$. Thus Euler's Theorem tells us that $$49^{120} \equiv 1…
Dedekind
  • 183
1
vote
1 answer

Prove that for every even positive integer $n$, $n^2 − 1$ divides $2^{n!} − 1$.

I am trying to prove that for every even positive integer $n$, $n^2 − 1$ divides $2^{n!} − 1$. My attempt: I am thinking of using Euler's Theorem and totient function to get $2^{n!} \equiv 1$ (mod $n^2 - 1$). We would have to show $\text{gcd}(2^{n!}…
1
vote
1 answer

Criterion for $\phi(mn)=m\phi(n)$ to be true

For any positive integer $n$, let $\mathrm{PF}(n)$ denote the set of all distinct prime factors of $n$ (not counted with multiplicity). The question (using the above notation) is: Is it true that for any two positive integers $m$ and $n$,…
1
vote
1 answer

Calculating an euler phi of a number with a variable power

I couldn't figure out how to solve this one: $\phi(2^m\cdot3^n\cdot6^p)$ I'm assuming there is a connection between the the three numbers since $6=2\cdot3$,$\space$ and $2$ and $3$ are prime numbers. I was thinking,…
Ofek Pintok
  • 351
  • 2
  • 9
1
vote
1 answer

Show that the set of numbers whose Euler function is less than a certain value has an upper bound

Let $S = \{n \in \mathbb{Z} \mid \varphi(n) \le 12 \}$ be the set of number whose Euler function is less or equal 12. Prove that $S$ has an upper bound. In the example $S= \{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 22, 24,…
lucach
  • 43
1
vote
0 answers

Large Number Modulo Computation

Compute the following: a) $2^{208} \pmod{53}$ b) $2^{288} \pmod{73}$ c) $7^{19} \pmod{28}$ Here is what I did so far: a) ∅ (53) = 52 $(2^{52})^4 => (1)^4 => 1$ b) ∅ (73) = 72 $(2^{72})^4 => (1)^4 => 1$ c) ∅ (28) = 12 $7^{12} * 7^7 \pmod{28}$ $1 *…
tvasile
  • 71
1
vote
2 answers

Find remainder using euler function?

How to find the remainder of $\frac{208^{181}}{209}$ using Euler's function or Fermat's theorem? (I solved this kind of problem easily when base, $208$, is smaller than the power, $184$, but it's hard to solve when the base is larger than the…
0
votes
1 answer

Algorithm to solve equations such as $\varphi(n)=x$

I want to write some code that inverts Euler's totient, so solving the equation: $$\varphi(n)=x$$ where $x$ is known. Before reinventing the wheel, I googled around to see if there was already something, and I was quite amazed to find nothing. Maybe…
0
votes
4 answers

An inequality on Euler totient function

Let n be a natural number and $\phi$ be the Euler-totient function. Can we say that $4 \phi(n) \geq n?$ When $n$ is a prime, it is obviously true. I have checked for some composite numbers also and it is coming out to be true. Any insight will be…
0
votes
0 answers

On the number of divisors of $φ(n)$

An interesting question has come up to my attention, in particular what is the number of divisors of $φ(n)$, when given a natural number $n$? Where $φ$ quite unassumingly denotes Euler's Phi function. Now, I've noticed that this problem reduces to…
0
votes
0 answers

On the cardinality of solution sets of $φ(x)=n$

It is known that given a positive integer $n$, the number of solutions of the equation $φ(x)=n$ is finite, where $φ$ denotes Euler's Phi function. So, I've made an attempt to prove this fact. Here's my attempt. PROOF For any positive integer $n$ let…
0
votes
2 answers

Is there a formula that counts the number of positive odd integers up to a given integer N that are relatively prime to N.

This is similar to the totient function, but obviously somewhat different. I would be interested to know if formulae exist for counting the positive odd integers and the positive even integers up to a given integer N that are relatively prime to N.
Maurice
  • 11
0
votes
0 answers

Choice of public key and private key in RSA

I am trying to dig as deep as I can into the RSA algorithm and trying to wrap my head around why the public key and it’s mod inverse have to be less than $\varphi(n)$. $\varphi(n)$ is the number of numbers that are co prime with $n$ right ? And not…
0
votes
1 answer

How to compute the totient function when the input is not a prime?

I've been searching on google how to solve this question but I only understand how to solve when it's a prime, which should be $\phi(p)=p-1$ for prime $p$ if I've understand correctly. But the question is "Find the Euler totient function of…
0
votes
0 answers

can i calculate the value from the euler function for $60^{90}$ by breaking this number into prime factors?

We can calculate the value of the phi function for the number $30^{90}$ as follows: $\phi(30^{90})=\phi((2\cdot 5\cdot 3)^{90})=\phi(2^{90})\cdot \phi(5^{90})\cdot \phi(3^{90})=2^{89}\cdot(2-1)\cdot 5^{89}\cdot(5-1)\cdot 3^{89}\cdot(3-1)=2^{92}\cdot…