TAILIEUCHUNG - Modular Arithmetic

Cùng tham khảo tài liệu Modular Arithmetic sau đây. Tài liệu tham khảo cho những ai yêu thích và muốn tìm hiểu về Toán học. | Modular Arithmetic The expression a b mod n pronounced a is congruent to b modulo n means that a b is a multiple of n. For instance 43 37 80 so that 43 37 mod 4 . Given a there is only one value b between 0 and n 1 so that a b mod n . We call b the residue of a modulo n and write b a mod n . Quick facts - A number and its negative are usually not congruent 2 2 mod 9 since 2 2 4 is not a multiple of 9. This is the source of many mistakes. - Suppose a b and c d mod n . Then a c b d mod n and a c b d mod n - Dividing is not so simple 6 36 mod 10 but dividing by 2 would give 3 18 mod 10 which is not true The problem above is that 2 divides 10 think about it . We can do two things Divide by a number k relatively prime to n 6 36 mod 10 so dividing by 3 gives 2 12 mod 10 . Divide all three numbers by a number k which is a divisor of n 6 36 mod 10 so dividing by 2 gives 3 18 mod 5 . - You can also reduce n alone 7 13 mod 6 7 13 mod 3 . But this does not work in the opposite direction 13 16 mod 3 but 13 16 mod 6 . - To compute exponents we use Euler s Theorem If a is relatively prime to n then a n 1 mod n . Here a is the number of integers between 1 and n relatively prime to n. - A useful result concerning factorials is Wilson s Theorem The number p is a prime if and only if p 1 1 mod p . Examples a If p 6 Wilson s Theorem fails 6 - 1 120 0 mod 6 . But if p 7 7 - 1 720 102 7 6 6 -1 mod 7 . b To compute the residue 44 444444 mod 18 we notice 4444 16 mod 18 . 44444444 164444 _2 4444 42222 mod 18 We cannot use Euler s Theorem because 4 and 18 are not relatively prime but we can break the above into two congruences note that 9 6 42222 0 mod 2 42222 4370 6 2 1 42 7 mod 9 so the residue modulo 18 we seek is even and congruent to 7 modulo 9 44444444 16 mod 18 . Inverses The other use of Euler s Theorem is to compute inverses modulo n. For instance if we need to hnd a value b such that 3 b 1 mod 29 we recall that 3 29 1 mod 29 and 29 28 to get 3 327 1 mod 29 so b 327 does the .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.