Leonhard Euler (1707-1783) |
Euler's theorem is a key concept used in solving remainder problems. In this article, we try to understand how to apply it and also elaborate on a few applications of the totient function. If you're the kind who prefers to know the underlying concept and likes to get going directly on using it to your advantage, just read the bold statements along with the example problems. If you're the kind who likes to understand the logic behind the concepts, go ahead and read all of the article :)
To understand Euler's theorem, we first need to understand the Euler's Totient function.
Euler's Totient Function
Euler’s totient function, E[n] denotes number of positive integers that are coprime to and less than a certain positive integer ‘n’.
Such a count is not hard to deduce. Let’s take a simple
example and find out Euler’s totient for 100, ie number of positive integers
that are less than 100 and coprime to 100
Prime divisors of 100 are 2 and 5.
From 1 to 100, no. of integers divisible by 2 and 5 are 100/2
and 100/5 respectively.
So no. of integers less than 100 and not divisible by 2 or 5
are:-
100 – 100/2 – 100/5 + 100/(2)(5)
This can be written in simpler manner as:- 100(1-1/2)(1-1/5)
In general, for a
positive integer N having prime divisors p1, p2, ... , pn;
E[N] = N(1-1/p1)(1-1/p2)....(1-1/pn)
Euler's Theorem:
Euler's theorem states that if P and N are positive coprime integers, then:
Rem[PE[N]/N]
= 1
where E[N] is the Euler's totient function for N.
where E[N] is the Euler's totient function for N.
Note: E[N] is not necessarily
the smallest power of P, such that the remainder obtained is 1 when divided by N.
Example Problem:
Find remainder for 9101/125.
Soln:
E[125] = 125(1-1/5) = 100
E[125] = 125(1-1/5) = 100
Since 9 and 125 are coprime, Rem[9100/125] = 1
Thus, Rem[9101/125] = Rem[9/125] = 9
Application 1:
All positive integers coprime to 2 and 5, follow a power cyclicity of
20 in terms of their last 2 digits.
--> Last 2
digits of ay =
Last 2 digits of a20x+y (for ‘a’
coprime to 2 and 5)
Last 2 digits of a number P is nothing but: Rem[P/100]
We saw earlier, that E[100] = 100(1-1/2)(1-1/5) = 40
So, for any positive integer P coprime to 100, Rem [P40/100]
= 1.
We also noted that 40 cannot necessarily be termed as the lowest power of
P that leaves remainder 1.So let’s see if there indeed exists a lower exponential
power as per our requirements.
100 = 4 * 25
E[25] = 20 --> Denotes that Rem[P20/25] = 1
E[4] = 2 --> Denotes that Rem[P2/4] = 1. So we
can safely say that Rem[P20/4] = 1
Applying CRT (discussed in previous post), we can conclude :
Rem[P20/100]= 1
So any coprime to 100 raised to power 20 will leave remainder
01 when divided by 100.
This means that all positive integers P coprime to 2 and 5,
follow a power cyclicity of 20 in terms of their last 2 digits.
Example problem:
Find last two digits of 131982
Soln:
Since 13 is coprime to 100, it follows a power cyclicity of 20 in its last 2 digits.
Since 13 is coprime to 100, it follows a power cyclicity of 20 in its last 2 digits.
So last two digits of 131982 = last two digits of
132 = 69
Note: Last 2 digits
for all other numbers also follow cyclicity of 20, but with a condition that a20x+y
= ay if ay is not a1
Application 2:
Any digit repeated
E[n] times is divisible by n, if n is coprime to 2,3 and 5.
Let K = aaaaaaaaa...... repeated E[n] times
K = a/9 (10E[n] -1)
Since n is coprime to 2 and 5, Rem[10E[n]/n]=1
Further, since n is coprime to 3, Rem[a/9 (10E[n]
-1)] = 0
Thus, K is divisible by n.
Thus, K is divisible by n.
Example problem:
Find remainder when 33333333......86 times is divided by 13
Soln:
E[13] = 13(1-1/13) = 12
E[13] = 13(1-1/13) = 12
So 3333.... repeated 12(7) = 84 times is divisible by 13.
Thus, the problem reduces to Rem[33/13] => 7
Feel free to put forth any doubts/clarifications in the comments section. We'll revert back pronto :)
-Angadbir
Feel free to put forth any doubts/clarifications in the comments section. We'll revert back pronto :)
-Angadbir
actually sir i didn't understand this euler torents theorem ..... can u explain in more simple way.........
ReplyDeleteHi Vivek.
ReplyDeleteCould you elaborate more on which part you did not understand. It would be valuable feedback and we will alter the article to accomodate the doubts if required.
Thanks.
Vey nice and valuable post .... thnx .... there r few doubts if u can plz clarify .....
ReplyDelete"E[N] is not necessarily the smallest power of P, such that the remainder obtained is 1 when divided by N " ..... plz give more examples where power obtained is less than by that of euler's function , as u explained for 100 ....
Hi Anuj.
ReplyDeleteConsider a simple no. 1001. This number is coprime to 100.
Since E[100] = 40, we can say that Rem[1001^40/100] = 1
But it is not hard to observe that Rem[1001^1/100] = 1 itself.
Consider a simpler example:
Lets look at the smallest n such that Rem[3^n/10] = 1.
E[10] = 4.
In this case 4 is in fact the smallest n such that Rem[3^n/10]=1
So there 'may or may not' be a smaller power of a coprime P, that leaves remainder 1 when divided by N, but rest assured, P raised to E[N] will definitely do so.
Hope that helps clear the doubt :)
Is the euler no itself the smallest possible n ?
DeleteLike is this a general rule ?
Deleteok .... thnx a lot ... gud work ....
ReplyDeleteVery Elaborately explained .... thanks sir for this post
ReplyDeleteDidnt get the last line....
ReplyDeleteSo 3333.... repeated 12(7) = 84 times is divisible by 13.???
@Sniper_aadima
ReplyDeleteSince 3... repeated 12 times is divisible by 13, so is 3... repeated 12*7 times.
Sir could you please post more examples?
ReplyDeletewhat is the remainder of (13^49+37^113 ) / 4
Delete1+1 = 2.
Deletewhat is the remainder if (3^1+3^(1+2)+3^(1+2+3)............+3^(1+2+3+.........1000))is divided by 8
ReplyDeleteanswer please with approach??????
DeleteO
Deletewhat is the remainder when 4951 4951 4951....upto 600 digits is divided by 101 ??
ReplyDeleteanswer please with approach??????
Delete151 ?
Delete98?
Delete@Nandika Puri
151>101
Is it 0?
ReplyDelete98
ReplyDelete98
ReplyDeletenice post. very helpful. Thanks :)
ReplyDeleteplease tell remainder of 12^50/169
ReplyDelete52
ReplyDeletehow to solve 4^96 % 6...becoz using this method 1 is remainder but it cant be
ReplyDeleteHelo sir i am not well in english please understand it what i want to know?.My problem is that
ReplyDeleteHow many numbers between 1 and 900 which are not divisible by 2,3 and 5 this thorem is apllied in this type of question howww??