29 29 votes The minimum positive integer $p$ such that $3^{p} \pmod {17} = 1$ is $5$ $8$ $12$ $16$ Set Theory & Algebra gateit-2007 set-theory&algebra normal number-theory + – Ishrat Jahan 11.8k views answer comment Share Follow Print See 1 comment 1 1 comment reply Siddharth_Perkar commented Aug 2 reply Follow flag Not in current syllabus of GATE CS 0 0 replyShare Please log in or register to add a comment.
Best answer 34 34 votes Fermat's Little Theorem : $$a^p ≡ a (\mod p)$$ According to Modular Arithmetic $a ≡ b (\mod n)$ if their difference $(a-b)$ is an integral multiple of $n$ $( n$ divides $(a-b) )$ So, $( a^p - a )$ is an integral multiple of $p.$ Now as $a$ is not divisible by $p$ so definitely, $( a^{p-1} -1)$ is an integral multiple of $p.$ This simply means if we divide $a^{p-1}$ by $p,$ the remainder would be $1$. i.e., $ a^{p-1} \mod p = 1.$ Put the values in the formula. $p=17$ So, $p-1 =16.$ Correct Answer: $D$ Rupie_c answered Dec 3, 2015 • edited Apr 24, 2019 by Naveen Kumar 3 Rupie_c comment Share Follow See all 4 Comments 4 4 Comments reply anchitjindal07 commented Jan 22, 2019 reply Follow flag Does Femat's theorem guarantees that this p will be minimum 6 6 replyShare Sarang_Gajare commented Nov 7, 2025 reply Follow flag any answers ???@anchitjindal07 ?? 0 0 replyShare js__ commented Jan 26 reply Follow flag :-) 4 4 replyShare LevII commented Jul 14 reply Follow flag Same thought😂 0 0 replyShare Please log in or register to add a comment.
6 6 votes D) fermat's little theorem Marv Patel answered Dec 31, 2014 Marv Patel comment Share Follow See all 3 Comments 3 3 Comments reply Sandeep_Uniyal commented Jan 20, 2015 reply Follow flag How (C) I am getting (D) What is the need to know any theorem !! Can't we do directly by putting 'p' ?? 0 0 replyShare Marv Patel commented Jan 21, 2015 reply Follow flag offcourse you can! 1 1 replyShare rahul sharma 5 commented Aug 18, 2017 reply Follow flag But little ferment does not guarantee that you will get minimum p. 6 6 replyShare Please log in or register to add a comment.
3 3 votes Using Fermats Little Theorem p: prime a : integer Not prime then ap-1 mod p is always 1 Here p : 7 Hence p-1 is 16 Dulqar answered Jan 6, 2017 Dulqar comment Share Follow See all 2 Comments 2 2 Comments reply Rajesh Pradhan commented Jan 15, 2017 reply Follow flag Ur definition of a is wrong a is any integer which is not divisible by p. And 1 more typo is there p=17 not 7 Plz correct it. 3 3 replyShare rahul sharma 5 commented Jan 24, 2017 reply Follow flag But it doesnt guarantee that it will be minimum,or does it? 2 2 replyShare Please log in or register to add a comment.
2 2 votes The solution is a last ditch effort and meant only for people who can't make sense of fermat's little theorem. Just use the property (a.b) mod p = ((a mod p).(b mod p )) mod p. Now options can be eliminated ( 5, 8 can be eliminated easily ) so consider $3^{16}$. $3^{16}$ mod 17 = ( ( $3^{4}$ mod 17 ) ( $3^{4}$ mod 17 ) ( $3^{4}$ mod 17 ) ( $3^{4}$ mod 17 ) ) mod 17. This is ( ( 169 mod 17 ) ( 169 mod 17 ) ) mod 17 = ( 16 * 16 ) mod 17 = 1. Ayush Kumar_1 answered Jun 21, 2024 Ayush Kumar_1 comment Share Follow 0 reply Please log in or register to add a comment.
1 1 vote You can also use concept from group theory Let a² = a*a = (a×a) mod 17 Then 3¹=3 , 3²=9 , 3³=10, 3⁴=3²*3²=13 , 3⁵=3²*3³=9*10=5, .... , 3⁸=3⁵*3³=5*10=16 , 3¹²=3⁸*3⁴=16*13=4 , 3¹⁶=3¹²*3⁴=4*13=1. Ritik tiwari answered May 31, 2024 Ritik tiwari comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes COMMENT BELOW IF YOU HAVE ANY DOUBT akshay_123 answered May 2 akshay_123 comment Share Follow 0 reply Please log in or register to add a comment.