Today at my lecture the teacher taught following thing about remainders:-
He started of explaining with the help of a question that is to find the no. of possible remainders and the values of those remainders as well when 45^n is divided with 63
He started off like this :-
- Possible remainders with 63 = {0,1,2,....62}
- Now since HCF(45,63)=9 ; the remainders have to be multiple of 9, so our new list of remainders would now be {0,9,18,27,36,45,54}
- Also since prime factor of 7 is not present in numerator , the remainders wont be a multiple of 7 , so the final revised list of remainders would be {9,18,27,36,45,54} and then he further went to on to show that after the cycle of every 6th power of 45^n we will again repeat with same remainders ; like 45^n will give same remainder as 45^(6+n)
Now to test this concept, I took the question on my own as to find out the values and number of remainders possible for 9^n/12 ;
- So possible remainders with 12= {0,1,2,....,11}
- HCF of (12,9) =3 ; so the possible set of remainders will be {0,3,6,9}
- Now the prime factor 2 is not present in numerator , therefore removing its multiples
The final set of remainders come out to be {3,9}; but upon checking for few values like 9^1 , 9^2 , I am always getting 9 as remainder and not 3
Please let me know why the algorithm is not working here
$$\bmod cn!:\ ca \equiv c(a\bmod n)\qquad$$
Thus $\bmod 12!:,\ 9^k = 3(3\cdot \color{#c00}9^{k-1}\bmod 4) = 3(3\cdot \color{#c00}1^{n-1}\bmod 4) = 3(3),,$ for $,k\ge 1\ \ $
– Bill Dubuque Dec 29 '22 at 19:05