For fun:- which values of n, this statement is true \(5|n^7-4\)
\[n^7 \equiv 4\pmod{5}\]
\[n^4\cdot n^3 \equiv 4\pmod{5}\] \[1\cdot n^3 \equiv 4\pmod{5}\] \[ n^3 \equiv 4\pmod{5}\]
nice , keep going
take log both sides
\[\mathrm{ind}~ n^3 \equiv \mathrm{ind}~4 \pmod{5} \]
\[3~\mathrm{ind}~ n \equiv \mathrm{ind}~4 \pmod{5} \]
what id "ind" :O
indian log
haha it is "log" equivalent for congruences
lol not kidding !
let me finish this problem first maybe, after that il define what it is
ok go ahead
\[3~\mathrm{ind}~ n \equiv \mathrm{ind}~4 \pmod{\phi(5)} \] \[3~\mathrm{ind}~ n \equiv 2 \pmod {4}\] \[\mathrm{ind}~ n \equiv 2 \pmod {4}\] \[ n \equiv 4 \pmod 5\]
so all the possible solutions are \(n = 4 + 5k\) where \(k\) is any integer
nice ! ok now evaluate ind for me , cuz i dint got it
Alright, before talking about log/ind, lets do this without using this fancy stuff
\[n^3 \equiv 4\pmod{5}\] we can solve this using just algebra (division algorithm)
every integer can be represented in one of the forms : {5k, 5k+1, 5k+2, 5k+3, 5k+4} consider 5 cases and see which ones give you a remainder 0
i used mod only to solve it xD n=0,1,2,3,4 mod 5 n^7=0,1,2,3,4 mod 5 n=4 mod 5 give the solution
ikr :) just wanted to show you these cool stuff
yeah i wanna see these cool stuff :O
we can discuss after exams maybe..
ind is similar to log
okkk
it follows all log properties : \[a^{\text{ind}~ n} \equiv n \] \[\text{ind} ~ n^k \equiv k~\text{ind} ~ n \] \[\text{ind} ~ (ab) \equiv ~\text{ind} ~ (a) +\text{ind} ~ (b) \] etc.. this is simple theory based on primitive roots. we can do more problems after exams :)
:O
google cant find ind symbol
i can make you understand everything about indices and primitive roots in less than 1 hour mathmath
oh thnks http://math.stackexchange.com/questions/363963/how-do-you-compute-operatornameind-r-a
lets do it if you're interested and when you're free as i also want to understand these more
m free now by the way
Good, we will start with fermat's little theorem
Fermat's little theorem tells us \[a^{p-1}\equiv 1 \pmod{p}\] whenever \(a\) is not divisible by \(p\) Notice that here we have \(p-1\) numbers relatively prime to \(p\) : \(\{1,2,3,...,p-1\}\)
yes i knoww ,ok
each of these numbers satisfy the fermat's little theorem, for example : \[2^{4}\equiv 1 \pmod{5}\]
Also we have \[4^{4}\equiv 1 \pmod{5}\]
\(\large\tt \begin{align} \color{black}{(2^{12}-1)~(\mod 13)\equiv 0\hspace{.33em}\\~\\ (2^{18}-1)~(\mod 19)\equiv 0\hspace{.33em}\\~\\ }\end{align}\)
im sure you knew all these, we're going to define primitive root based on this
yes i know feramet
look closely at \[4^{4}\equiv 1 \pmod{5}\]
look more closely at the exponent is \(4\) the least exponent for which aboveyields true ?
Nope. because we have \[4^{\color{Red}{2}} \equiv 1 \pmod {5}\]
yes it works for it works also for \(\large\tt \begin{align} \color{black}{(4^{2}(\mod 5)\equiv 1\hspace{.33em}\\~\\ }\end{align}\)
yes so the exponent "4" is not least there is another number "2" for which you also get 1, yes ?
yes
how about the powers of 2
\[2^4 \equiv 1 \pmod{5}\]
is there any power less than 4 that gives you 1 ?
no
\(2^{0}\) does gives
we are only considering the powers between 1 and p-1
powers between 1 and 4 here
not it doen'st give 2^1=2 (mod 5) 2^2=4 (mod 5) 2^3=3 (mod 5)
\(2^1 \equiv 2\) \(2^2 \equiv 4\) \(2^3 \equiv 8\equiv 3\) \(2^4 \equiv 16 \equiv 1 \) so the \(p-1\) is the least power that gives you 1 for 2
we say \(2\) is a primitive root of \(5\)
now that you have seen what a primitive root is, lets formally define it
2 is primitive root because below 2^4 doesnt gives \(\equiv 1\)
for mod 5
2 is primitive root because only 2^4 gives 1
4 is not primitive root because 4^2 also gives 1
we are talking about mod 5 ofcourse
ok i see the defn
Definition : \(a\) is a primitive root of \(\mod p\) if \(p-1\) is the least value that satisfies \(a^{p-1}\equiv 1 \pmod{p}\)
ok i get that
lets do 2-3 examples before moving on to indices
find all the primitive roots of \(\mod 5\)
how do i find that ?
2 is of cos
you're in mod 5, so you just need to check 5 numbers : {1, 2, 3, 4, 5}
3 should be
Right, 2 and 3 are primitive roots of 5 are there any more ?
no cuz 4 is a multiple of 2
do you mean, 4 is not a primitive root because \(4^2 \equiv 1 \pmod{5}\)
yes also \(4^2 \equiv 1 \pmod{5}\) is same as \(2^4 \equiv 1 \pmod{5}\)}
Ahh I see! thats a good observation
last example on primitive roots : find all the primitive roots of 7
\(\large\tt \begin{align} \color{black}{2,3,5\hspace{.33em}\\~\\ }\end{align}\)
thats fast! how did u get them ?
all are prime below \(7\)
2 is not a primitive root of 7 because \(2^3 \equiv 1 \pmod{7}\)
you need to stick to the definition it doesn't matter whether a number is prime or not
ok so if \(a^n \equiv 1 mod~ p\) a is not primitive to p
\(a\) is not a primitive root only if that congruence is true for some \(n\) less than \(p-1\)
2 is not a primitive root because we have \(2^3 \equiv 1 \pmod{7}\) and 3 is less than 6
how ever 3 is a primitive root because \(3^6\equiv 1 \pmod{7}\) and there are no other powers that give you 1
it takes some time to get use to the definition
ok so \(2^4 \equiv 1 \pmod{5}\) 2 is primitive beacause \(4\not <5-1\) for \(mod ~5\)
2 is primitive root because there are no other powers that give you 1 4 is the least power
yes i see it will take time
here are the primitive roots for few prime mods : ``` 5 : {2, 3} 7 : {3, 5} 11 : {2, 6, 7, 8} 13 : {2, 6, 7, 11} ```
notice 11 and 13 have four primitive roots each
it is true that every prime has atleast one primitive root
since its satisfies Fermat !
so there are primitive roots only for prime numbers ?
yesss
thats a good question, the answer is no. lets move to indices for now
lol
haha the answer is yes
Join our real-time social learning platform and learn together with your friends!