{"id":401986,"date":"2024-06-29T16:13:03","date_gmt":"2024-06-29T16:13:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=401986"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=401986","title":{"rendered":"<span>\u041a\u0430\u043a \u0437\u0430\u043a\u0430\u043b\u044f\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u043b\u044c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0413\u043b\u0430\u0432\u0430 2. \u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043d\u0435\u044f\u0432\u043d\u043e, \u043d\u043e \u043f\u043e\u0432\u0441\u0435\u043c\u0435\u0441\u0442\u043d\u043e, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432 \u0445\u043e\u0434\u0435 \u0441\u0432\u043e\u0435\u0439 \u043c\u043d\u043e\u0433\u043e\u0432\u0435\u043a\u043e\u0432\u043e\u0439 \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438, \u0432 \u0445\u043e\u0434\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u044d\u0442\u0430\u043f\u043e\u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f. \u041a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0448\u0430\u0433 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043a \u0440\u0430\u0437\u0440\u0443\u0448\u0435\u043d\u0438\u044e \u0441\u0442\u0430\u0440\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u0445 \u0448\u0438\u0444\u0440\u043e\u0432 \u0438 \u043a \u043f\u043e\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044e \u043d\u043e\u0432\u044b\u0445, \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0441\u0430\u043c\u043e \u0440\u0430\u0437\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0432\u043e\u044f\u043a\u043e \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u043a\u0430\u043a \u043e\u0431 \u0438\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043a\u043e\u0440\u0435\u043d\u044f\u0442\u044c, \u0442\u0430\u043a \u0438 \u043e\u0431 \u0438\u0445 \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c. \u0412 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u044d\u0442\u043e\u0433\u043e, \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439, \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0435\u0437 \u0441\u0442\u0430\u0440\u044b\u0445, \u043c\u0435\u043d\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/post\/723392\/\" rel=\"noopener noreferrer nofollow\"><u>\u043f\u0435\u0440\u0432\u043e\u0439 \u0433\u043b\u0430\u0432\u044b<\/u><\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b\u0438\u0441\u044c \u0448\u0438\u0444\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439, \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0435\u0451 \u043e\u0441\u043d\u043e\u0432\u044b, \u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0430\u043c \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0433\u043b\u0430\u0432\u044b. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0432\u0430\u043c \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430 \u0438\u043b\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0431\u0435\u043b\u044b\u0435 \u043f\u044f\u0442\u043d\u0430, \u0442\u043e \u043c\u043e\u0433\u0443 \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0433\u043b\u0430\u0432\u0443, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u044b\u0445 &#171;\u0434\u0435\u0442\u0430\u043b\u0435\u0439&#187; \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<p>\u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043a\u0430\u043a \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 \u041a\u0421\u0417\u0418, \u0442\u0430\u043a \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430\u043c \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0420\u043e\u0432\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0433\u043b\u0430\u0432\u0435, \u043a \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u043c \u0448\u0438\u0444\u0440\u0430\u043c (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e) \u044f \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421\u0438. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f.<\/p>\n<h2>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f<\/h2>\n<p>\u041f\u043e\u0434 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u0443\u044e \u0441\u0442\u0430\u0434\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f, \u0432 \u043d\u0435\u043a\u043e\u043c \u0440\u043e\u0434\u0435, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0435\u043c, \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u0435\u0440\u0435\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438\u0437 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0430 (\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u044b) \u0432 \u043d\u0430\u0443\u043a\u0443 (\u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443). \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043a\u0430\u043a \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0435\u0433\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e, \u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u0431\u043e\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u0443 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u0430\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043c\u0435\u0440\u0435 \u043a \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0447\u0435\u043c \u043a \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0430\u043c\u043e\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f \u0441\u0442\u0430\u0434\u0438\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. <\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0436\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043c \u0444\u0430\u043a\u0442\u0435, \u0447\u0442\u043e \u0441\u0430\u043c\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0448\u0438\u0444\u0440\u043e\u0432 \u0440\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u043f\u043e\u0445\u0443 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438 \u043f\u043b\u0430\u0432\u043d\u043e &#171;\u043f\u0435\u0440\u0435\u0442\u0435\u043a\u0430\u0435\u0442&#187; \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430 \u0434\u0430\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0435\u0449\u0451 1888 \u0433\u043e\u0434\u043e\u043c, \u0444\u0440\u0430\u043d\u0446\u0443\u0437\u043e\u043c \u043c\u0430\u0440\u043a\u0438\u0437 \u0434\u0435 \u0412\u0438\u0430\u0440\u0438, \u0425\u0438\u043b\u043b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0448\u0438\u0444\u0440, \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u0445 \u0432 1929 \u0433\u043e\u0434\u0443, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b XX \u0432\u0435\u043a\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0440\u0430\u0431\u043e\u0442 \u0428\u0435\u043d\u043d\u043e\u043d\u0430. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0441\u043e\u0432\u043c\u0435\u0449\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043d\u043e \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u0443 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f (\u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043b\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439), \u043d\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0435\u043a\u0438\u0439 &#171;\u043c\u043e\u0441\u0442\u0438\u043a&#187;, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0422\u0430\u043a\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043d\u0430\u0441 \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044d\u043b\u043b\u0438\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u0440\u0438\u0432\u044b\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u0434\u0430\u0447\u0430 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0434\u043d\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0442.\u0434. \u041d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043b\u0435\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u043c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043d\u043e \u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0434\u0430\u0436\u0435 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0438 \u0434\u0430\u0436\u0435 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043c\u0435\u0440\u0435 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f) \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438.<\/p>\n<h3>\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0448\u0438\u0444\u0440\u043e\u0432<\/h3>\n<p>\u041b\u044e\u0431\u043e\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u0432\u0438\u0434\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b <strong>C = E<sub>K<\/sub>(M)<\/strong>, \u0433\u0434\u0435 <strong>E<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, <strong>K<\/strong> &#8212; \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, <strong>M<\/strong> &#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, <strong>C<\/strong> &#8212; \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0424\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0438 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445: <strong>E<sub>K<\/sub>: M\u21d2C<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>E<sub>K<\/sub><sup>-1<\/sup><\/strong> \u043a \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044e <strong>E<sub>K<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430 \u0432\u0438\u0434\u0430 <strong>M = E<sub>K<\/sub><sup>-1<\/sup>(C)<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0438 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445: <strong>E<sub>K<\/sub><sup>-1<\/sup>: C\u21d2M<\/strong>. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e <strong>M = E<sub>K<\/sub><sup>-1<\/sup>(E<sub>K<\/sub>(M))<\/strong>, \u0442\u043e-\u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430 \u0437\u0430\u0442\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0422\u0430\u043a\u043e\u0435 \u0441\u043b\u0438\u044f\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <strong>E<sub>K<\/sub><\/strong>*<strong>E<sub>K<\/sub><sup>-1<\/sup><sub> <\/sub>= I<\/strong>, \u0433\u0434\u0435 <strong>I<\/strong> &#8212; \u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>I(M) = M<\/strong>. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c, \u043f\u043e\u0434 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f &#8212; \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong>D<sub>K <\/sub>= E<sub>K<\/sub><sup>-1<\/sup><\/strong>, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043b\u0451\u0433\u043a\u043e\u0433\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (<strong>E = Encrypt<\/strong>, <strong>D = Decrypt<\/strong>).<\/p>\n<p>\u0411\u043e\u043b\u0435\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0448\u0438\u0444\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 <strong>\u2211(M, K, C, E, D)<\/strong> \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<ol>\n<li>\n<p><strong>D<sub>k<\/sub>(E<sub>k<\/sub>(m))=m<\/strong> \u0434\u043b\u044f (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200m\u2208M<\/strong>, <strong>\u2200k\u2208K<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 <strong>m<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 <strong>M<\/strong> \u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 <strong>k<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 <strong>K<\/strong> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <strong>D<sub>k<\/sub>(E<sub>k<\/sub>(m)) = m<\/strong>.<\/p>\n<\/li>\n<li>\n<p><strong>C=\u22c3E<sub>k<\/sub>(m)<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e <strong>k<\/strong> \u0438 <strong>m<\/strong> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 <strong>C<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>E<\/strong> \u0438 <strong>D<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435 \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \/ \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a <strong>k<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 <strong>E<\/strong> \u0438 <strong>D<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0448\u0438\u0444\u0440\u0435 \u0426\u0435\u0437\u0430\u0440\u044f \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c: 1) <strong>E<\/strong> \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <strong>k<\/strong> \u0432\u0438\u0434\u0430 <strong>E<sub>k<\/sub>(m) = m+k<\/strong>; 2) <strong>E<\/strong> \u043a\u0430\u043a \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432\u0438\u0434\u0430 <strong>{E<sub>1<\/sub>, E<sub>2<\/sub>, &#8230;, E<sub>n<\/sub>}<\/strong>, \u0433\u0434\u0435 <strong>k<\/strong> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0418\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong> <strong>\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/strong>. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0435\u0441\u043b\u0438 (\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442) <strong>\u2203m<sub>1<\/sub>,m<sub>2<\/sub>\u2208M<\/strong>, \u0433\u0434\u0435 <strong>m<sub>1<\/sub>\u2260m<sub>2<\/sub><\/strong>, \u0442\u043e \u043f\u0440\u0438 (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200k\u2208K<\/strong>, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <strong>E<sub>k<\/sub>(m<sub>1<\/sub>) \u2260 E<sub>k<\/sub>(m<sub>2<\/sub>)<\/strong>. \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0439\u0442\u0438 \u043e\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0430\u043a\u043e\u0435 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <strong>E<sub>k<\/sub>(m<sub>1<\/sub>) = E<sub>k<\/sub>(m<sub>2<\/sub>)<\/strong> \u043f\u0440\u0438 <strong>m<sub>1<\/sub>\u2260m<sub>2<\/sub><\/strong>, \u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043a \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u043c\u0443 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>C<\/strong> \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e <strong>M <\/strong>\u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u044e\u0447\u0430 <strong>k<\/strong>, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0441\u0430\u043c\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u043c. <\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u0430\u043c\u0430 <strong>\u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/strong> \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 (\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442) <strong>\u2203c<sub>1<\/sub>,c<sub>2<\/sub>\u2208C<\/strong>, \u0433\u0434\u0435 <strong>c<sub>1<\/sub>\u2260c<sub>2<\/sub><\/strong>, \u0442\u043e \u043c\u043e\u0436\u0435\u0442 (\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c) <strong>\u2203k\u2208K<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043a \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0443 <strong>D<sub>k<\/sub>(c<sub>1<\/sub>) = D<sub>k<\/sub>(c<sub>2<\/sub>) = m<\/strong>. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u043c\u043e\u0444\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0448\u0438\u0444\u0440\u043e\u0432, \u0433\u0434\u0435 \u043f\u0440\u0438 <strong>E<sub>k<\/sub>(m) <\/strong>\u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong>c<sub>1<\/sub><\/strong> <strong>\u0418\u041b\u0418<\/strong> <strong>c<sub>2<\/sub><\/strong> \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044f\u043c\u0438 <strong>p<sub>1<\/sub> \u0418 p<sub>2<\/sub><\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421\u0432\u044f\u0437\u0430\u043d\u043e \u044d\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u0430\u043c \u043a\u043b\u044e\u0447 <strong>k<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m<\/strong>. \u0411\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0432\u044b\u0431\u043e\u0440 \u043a\u043b\u044e\u0447\u0430 <strong>k<\/strong> \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0431\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0441\u0435\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>K<\/strong>, \u043d\u043e \u0438 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0435 <strong>r<\/strong> \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f <strong>m<\/strong>. <\/p>\n<p>\u0418\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200c\u2208C, \u2200k\u2208K <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u2203m\u2208M<\/strong>, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <strong>E<sub>k<\/sub>(m)=c<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043a\u0430\u0436\u0434\u044b\u0439 \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 <strong>c<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>C<\/strong> \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 <strong>m<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>M<\/strong>. \u0415\u0441\u043b\u0438 \u0448\u0438\u0444\u0440 \u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u0442\u043e\u0433\u0434\u0430 \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>\u0431\u0438\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c<\/strong> \u0448\u0438\u0444\u0440\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0430\u043f\u0440\u0438\u043e\u0440\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0448\u0438\u0444\u0440\u0430.<\/p>\n<p>\u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0436\u0435, \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 <strong>\u043d\u0435\u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445<\/strong> \u0448\u0438\u0444\u0440\u043e\u0432, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 (\u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442) <strong>\u2204c<sub>i<\/sub>\u2208C<\/strong> \u0434\u043b\u044f \u0440\u0430\u0432\u0435\u043d\u0442\u0441\u0442\u0432\u0430 <strong>c<sub>i<\/sub>=E<sub>k<\/sub>(m<sub>i<\/sub>)<\/strong>. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0435\u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0448\u0438\u0444\u0440\u043e\u043c \u043c\u043e\u0433 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0448\u0438\u0444\u0440 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441 \u043b\u043e\u0436\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438, \u0433\u0434\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442\u044b <strong>c<sub>i<\/sub><\/strong> (\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b) \u043c\u043e\u0433\u043b\u0438 \u043d\u0435 \u0438\u043c\u0435\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 <strong>m<sub>i<\/sub><\/strong>. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c \u0438 \u043d\u0435\u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0432 \u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0447\u0442\u043e \u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u0430\u043c\u0438 \u043f\u043e \u0441\u0435\u0431\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0437\u0430\u043f\u0443\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u043e\u0431\u0449\u0443\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \/ \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0430\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<ol>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0432\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f: <strong>E<sub>K <\/sub>= D<sub>K<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044f \u0434\u0432\u0430\u0436\u0434\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 <strong>M = D<sub>K<\/sub>(E<sub>K<\/sub>(M)) <\/strong>= <strong>E<sub>K<\/sub>(E<sub>K<\/sub>(M)) <\/strong>= <strong>D<sub>K<\/sub>(D<sub>K<\/sub>(M)) = E<sub>K<\/sub>(D<sub>K<\/sub>(M))<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\/\u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: <strong>E<sub>k<\/sub><\/strong>*<strong>D<sub>K<\/sub>=D<sub>k<\/sub><\/strong>*<strong>E<sub>K<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, <strong>D<sub>K<\/sub>(E<sub>K<\/sub>(M)) = E<sub>K<\/sub>(D<sub>K<\/sub>(M)) = M<\/strong>, \u0438\u043b\u0438: <strong>E<sub>k1<\/sub><\/strong>*<strong>E<sub>k2<\/sub>=E<sub>k2<\/sub><\/strong>*<strong>E<sub>K1<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, <strong>E<sub>K1<\/sub>(E<sub>K2<\/sub>(M)) = E<sub>K2<\/sub>(E<sub>K1<\/sub>(M)) = C<\/strong> (\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c).<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0431\u0438\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u041f\u0440\u0438 (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200k\u2208K<\/strong>, <strong>\u2200m\u2208M<\/strong> \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>E<sub>k<\/sub>(m) = c<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043f\u0440\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0435\u043a\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 <strong>m<\/strong> \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c <strong>k<\/strong> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u0438\u043d \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 <strong>c<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u041f\u0440\u0438 (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200k<sub>1<\/sub>,k<sub>2<\/sub>\u2208K<\/strong>, <strong>\u2200m\u2208M <\/strong>\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430\u0434 \u0432\u0445\u043e\u0434\u043d\u044b\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, <strong>E<sub>k1<\/sub>(E<sub>k2<\/sub>(m)) = E<sub>q<\/sub>(m)<\/strong>, \u0433\u0434\u0435 <strong>q=E<sub>k1<\/sub>(k<sub>2<\/sub>)<\/strong>. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0437\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f <strong>E<\/strong> \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e <strong>#<\/strong>, \u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: <strong>m#(k<sub>1<\/sub>#k<sub>2<\/sub>) = (m#k<sub>1<\/sub>)#k<sub>2<\/sub><\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <strong>k=13<\/strong> (<strong>ROT13<\/strong>) \u0434\u043b\u044f \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430. \u0421 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c <strong>k<\/strong> \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u044b\u043c. \u0422\u0430\u043a\u0436\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043f\u0430\u0440\u043d\u044b\u0439 \u0448\u0438\u0444\u0440 \u0438 xor-\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0418\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0435 \u0418\u041b\u0418).<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a <strong>D<sub>k<\/sub>(E<sub>k<\/sub>(m)) = (m+k)-k = (m-k)+k = E<sub>k<\/sub>(D<sub>k<\/sub>(m)) = m<\/strong>. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0435\u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0448\u0438\u0444\u0440 \u041f\u043e\u0440\u0442\u044b \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u0430\u043c\u0438.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u0438\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>E<sub>k<\/sub>(m) = c<\/strong> \u0437\u0430\u0434\u0430\u0451\u0442 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 <strong>c<\/strong> \u043e\u0442 <strong>k<\/strong> \u0438 <strong>m<\/strong>. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043d\u0435\u0431\u0438\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043e\u043c\u043e\u0444\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0448\u0438\u0444\u0440, \u0433\u0434\u0435 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e <strong>m<\/strong> \u0438 <strong>k<\/strong> \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 <strong>c<sub>i<\/sub><\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>C<sub>mk<\/sub> = {c<sub>1<\/sub>, c<sub>2<\/sub>, &#8230;, c<sub>n<\/sub>}<\/strong>. <\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a: <strong>E<sub>k2<\/sub>(E<sub>k1<\/sub>(m)) = (m+k<sub>1<\/sub>)+k<sub>2<\/sub> = m+(k<sub>1<\/sub>+k<sub>2<\/sub>) = E<sub>q<\/sub>(m)<\/strong>, \u0433\u0434\u0435<strong> q = E<sub>k1<\/sub>(k<sub>2<\/sub>)<\/strong>.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432, \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u044b\u0439, \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438 \u0431\u0438\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0448\u0438\u0444\u0440. \u041d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0448\u0438\u0444\u0440\u0430 \u0426\u0435\u0437\u0430\u0440\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043b\u0438\u0448\u044c \u043f\u0440\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438 <strong>E<sub>13<\/sub><\/strong> \u0434\u043b\u044f \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430.<\/p>\n<h3>\u041c\u043e\u0434\u0435\u043b\u0438 \u0448\u0438\u0444\u0440\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438<\/h3>\n<p>\u0418\u0437\u0443\u0447\u0438\u0432 \u043e\u0441\u043d\u043e\u0432\u044b \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0448\u0438\u0444\u0440\u043e\u0432, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e. \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u043c\u044b \u0432\u043e\u0437\u044c\u043c\u0451\u043c \u0448\u0438\u0444\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u043f\u043e\u0434\u043a\u043b\u0430\u0441\u0441\u044b \u0432 \u0432\u0438\u0434\u0435 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439.<\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m<\/strong> \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>m<sub>1<\/sub>, m<sub>2<\/sub>, m<sub>3<\/sub>, &#8230;, m<sub>n<\/sub><\/strong>. <\/p>\n<p>\u041f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u044b <strong>E<sub>K<\/sub>(M) = C \u21d2 \u22c3{c<sub>i<\/sub>}<\/strong>.<\/p>\n<ol>\n<li>\n<p>\u041c\u043e\u043d\u043e\u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u044b\u0439 \u0448\u0438\u0444\u0440: <strong>E<sub>k<\/sub>(m<sub>1<\/sub>), E<sub>k<\/sub>(m<sub>2<\/sub>), E<sub>k<\/sub>(m<sub>3<\/sub>), &#8230;, E<sub>k<\/sub>(m<sub>n<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>k\u2208K<\/strong> &#8212; \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443 <strong>m<sub>i<\/sub><\/strong> \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e. \u041a\u043b\u044e\u0447 <strong>k<\/strong> \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u043d, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043d\u0438 \u043e\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0448\u0438\u0444\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <strong>m<sub>i<\/sub><\/strong>, \u043d\u0438 \u043e\u0442 \u0435\u0433\u043e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a (\u0447\u0430\u0441\u0442\u043e\u0442 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u043c\u043e\u0441\u0442\u0438, \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u0442.\u0434). <\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0430\u043b\u0444\u0430\u0432\u0438\u0442, \u043a\u0430\u043a \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, <strong>A=(ABCDE)<\/strong>, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043b\u0438\u0448\u044c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u043f\u044f\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m=(ACBA)<\/strong>. \u041a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>k: A \u21d2 B<\/strong> \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0430\u043b\u0444\u0430\u0432\u0438\u0442 <strong>B=(QWERT)<\/strong>, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <strong>k(m<sub>i<\/sub>) = B<sub>fA(mi)<\/sub><\/strong>, \u0433\u0434\u0435 <strong>fA<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <strong>m<\/strong> \u0432 <strong>A<\/strong>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <strong>E<sub>k<\/sub>(m<sub>i<\/sub>) = B<sub>fA(mi)<\/sub><\/strong>.<br \/>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <strong>A=Q, B=W, C=E, D=R, E=T<\/strong>, \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 <strong>c = E<sub>k<\/sub>(ACBA) = (QEWQ)<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u041e\u043c\u043e\u0444\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0448\u0438\u0444\u0440: <strong>E<sub>r(k)<\/sub>(m<sub>1<\/sub>), E<sub>r(k)<\/sub>(m<sub>2<\/sub>), E<sub>r(k)<\/sub>(m<sub>3<\/sub>), &#8230;, E<sub>r(k)<\/sub>(m<sub>n<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>k\u2208K<\/strong> &#8212; \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443 <strong>m<sub>i<\/sub>\u2208M<\/strong> \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0447\u0435\u0440\u0435\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430 <strong>r<\/strong> \u0438\u0437 <strong>k<\/strong> \u043d\u0430 <strong>m<\/strong><sub>i<\/sub>. \u041a\u043b\u044e\u0447 <strong>k<\/strong> \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0448\u0438\u0444\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <strong>m<sub>i<\/sub><\/strong>, \u043d\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0435\u0433\u043e \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a, \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>r<\/strong>.<\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0430\u043b\u0444\u0430\u0432\u0438\u0442, \u043a\u0430\u043a \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, <strong>A=(ABCDE)<\/strong>, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043b\u0438\u0448\u044c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u043f\u044f\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m=(ACBA)<\/strong>. \u041a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>k: A \u21d2 B<\/strong> \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0435 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 <strong>B=({QW}{E}{R}{T}{Y})<\/strong>, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <strong>k(m<sub>i<\/sub>) = r(B<sub>fA(mi)<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>fA<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <strong>m<\/strong> \u0432 <strong>A<\/strong>, <strong>r<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0432\u044b\u0431\u043e\u0440\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u0437 \u043d\u0435\u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <strong>E<sub>k<\/sub>(m<sub>i<\/sub>) = r(B<sub>fA(mi)<\/sub>).<br \/><\/strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <strong>A=Q \u0438\u043b\u0438 A=W, B=E, C=R, D=T, E=Y<\/strong>, \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 (\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c) <strong>c = E<sub>k<\/sub>(ACBA) = (QREW)<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0438\u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u044b\u0439 \u0448\u0438\u0444\u0440: <strong>E<sub>\u04131<\/sub>(m<sub>1<\/sub>), E<sub>\u04132<\/sub>(m<sub>2<\/sub>), E<sub>\u04133<\/sub>(m<sub>3<\/sub>), &#8230;, E<sub>\u0413n<\/sub>(m<sub>n<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>\u0413<sub>i<\/sub> <\/strong>&#8212; \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0433\u0430\u043c\u043c\u0430, \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u0430\u044f \u0438\u0437 \u043a\u043b\u044e\u0447\u0430 <strong>k\u2208K<\/strong>, \u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443 <strong>m<sub>i<\/sub><\/strong> \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e. \u0413\u0430\u043c\u043c\u0430 <strong>\u0413<sub>i<\/sub><\/strong> \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0448\u0438\u0444\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 <strong>m<sub>i<\/sub><\/strong>. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u043e\u0432, \u0433\u0434\u0435 \u043a\u043b\u044e\u0447 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 <strong>B<\/strong>, \u0433\u0430\u043c\u043c\u0430 \u0432 \u043f\u043e\u043b\u0438\u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u0430\u0445 &#171;\u043e\u0442\u043e\u0440\u0432\u0430\u043d\u0430&#187; \u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043e\u0442 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f <strong>m<\/strong> \u0438 \u0435\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0435 <strong>A<\/strong>.<\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0430\u043b\u0444\u0430\u0432\u0438\u0442, \u043a\u0430\u043a \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, <strong>A=(ABCDE)<\/strong>, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043b\u0438\u0448\u044c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u043f\u044f\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m=(ACBA)<\/strong>. \u041a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0433\u0430\u043c\u043c\u044b \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 <strong>k(i) = \u0413<sub>i <\/sub>= i mod 3<\/strong>, \u0447\u0442\u043e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e \u0448\u0438\u0444\u0440\u0443 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <strong>k=BCDA<\/strong>, \u0435\u0441\u043b\u0438 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u0435\u0434\u0438\u043d\u0438\u0446\u044b. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <strong>E<sub>k<\/sub>(m<sub>i<\/sub>) = A<sub>k(i)+fA(mi)<\/sub> = (\u0413<sub>i<\/sub>+m<sub>i<\/sub>) mod |A|<\/strong>, \u0433\u0434\u0435 <strong>fA<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <strong>m<\/strong> \u0432 <strong>A.<br \/><\/strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 <strong>c = E<sub>k<\/sub>(ACBA) = (BEEE)<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0448\u0438\u0444\u0440: <strong>E<sub>k<\/sub>(m<sub>1<\/sub>, m<sub>2<\/sub>, &#8230;, m<sub>q<\/sub>), E<sub>k<\/sub>(m<sub>q+1<\/sub>, m<sub>q+2<\/sub>, &#8230;, m<sub>2q<\/sub>), E<sub>k<\/sub>(m<sub>2q+1<\/sub>, m<sub>2q+2<\/sub>, &#8230;, m<sub>3q<\/sub>), &#8230;, E<sub>k<\/sub>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>k\u2208K<\/strong> &#8212; \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a \u0433\u0440\u0443\u043f\u043f\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub><\/strong> \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e. \u041a\u043b\u044e\u0447 <strong>k<\/strong> \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u043d, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043d\u0438 \u043e\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0448\u0438\u0444\u0440\u0443\u0435\u043c\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub><\/strong>, \u043d\u0438 \u043e\u0442 \u0435\u0451 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a. <\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0430\u043b\u0444\u0430\u0432\u0438\u0442, \u043a\u0430\u043a \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432, <strong>A=((AA), (AB), (AC), (BA), (BB), (BC), (CA), (CB), (CC))<\/strong>, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043b\u0438\u0448\u044c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0434\u0435\u0432\u044f\u0442\u0438 \u0431\u0438\u0433\u0440\u0430\u043c\u043c, \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m=(ACBA)<\/strong>. \u041a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>k: A \u21d2 B<\/strong> \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u0430\u043b\u0444\u0430\u0432\u0438\u0442 <strong>B=(QWERTYUIO)<\/strong>, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <strong>k(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>) = B<sub>fA(m(n-1)q+1, m(n-1)q+2, &#8230;, mnq)<\/sub><\/strong>, \u0433\u0434\u0435 <strong>fA<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <strong>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong> \u0432 <strong>A<\/strong>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <strong>E<sub>k<\/sub>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>) = B<sub>fA(m(n-1)q+1, m(n-1)q+2, &#8230;, mnq)<\/sub><\/strong>.<br \/>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (\u0431\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0448\u0438\u0444\u0440): <strong>AA=Q, AB=W, AC=E, BA=R, BB=T, BC=Y, CA=U, CB=I, CC=O<\/strong> \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 <strong>c = E<sub>k<\/sub>(ACBA) = (ER)<\/strong>. <br \/>\u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0432\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 <strong>B<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0448\u0438\u0444\u0440 \u041f\u043b\u0435\u0439\u0444\u0435\u0440\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0431\u0438\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0431\u0438\u0433\u0440\u0430\u043c\u043c\u0443, \u0448\u0438\u0444\u0440 \u041f\u043e\u0440\u0442\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0431\u0438\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0442\u0440\u0438\u0433\u0440\u0430\u043c\u043c\u0443 (\u0435\u0441\u043b\u0438 \u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0446\u0438\u0444\u0440 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432), \u0448\u0438\u0444\u0440 \u0425\u0438\u043b\u043b\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 N-\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 N-\u0433\u0440\u0430\u043c\u043c\u0443. \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u0448\u0438\u0444\u0440 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0431\u0438\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u043e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b, \u0447\u0442\u043e \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0430\u043b\u0438\u044f\u0445 \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442.\u043a. \u043f\u0440\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 <strong>q<\/strong> \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0431\u0438\u0433\u0440\u0430\u043c\u043c\u0430\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>q(A)<\/strong> <strong>= 3 <\/strong>(\u0442.\u0435. <strong>A, B, C<\/strong>) <strong>\u21d2 <\/strong>\u0432\u0441\u0435\u0433\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 <strong>3<sup>2<\/sup>=9<\/strong> \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 (\u0438\u043b\u0438 \u043f\u0440\u043e\u0449\u0435, \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>|A|<\/strong> \u0440\u0430\u0432\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0435\u0442\u044c \u043b\u0438\u0448\u044c <strong>9<\/strong> \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u0431\u0438\u0433\u0440\u0430\u043c\u043c.<\/p>\n<\/li>\n<li>\n<p>\u041a\u043e\u0434\u044b: <strong>E<sub>k<\/sub>(m<sub>1<\/sub>, m<sub>2<\/sub>, &#8230;, m<sub>q<\/sub>), E<sub>k<\/sub>(m<sub>q+1<\/sub>, m<sub>q+2<\/sub>, &#8230;, m<sub>q+w<\/sub>), E<sub>k<\/sub>(m<sub>q+w+1<\/sub>, m<sub>q+w+2<\/sub>, &#8230;, m<sub>q+w+e<\/sub>), &#8230;, E<sub>k<\/sub>(m<sub>q+w+e+&#8230;+r+1<\/sub>, m<sub>q+w+e+&#8230;+r+2<\/sub>, &#8230;, m<sub>q+w+e+&#8230;+r+t<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>k\u2208K<\/strong> &#8212; \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a \u0433\u0440\u0443\u043f\u043f\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>E<sub>k<\/sub>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong> \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e. \u041a\u043b\u044e\u0447 <strong>k<\/strong> \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u043d, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043d\u0438 \u043e\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0448\u0438\u0444\u0440\u0443\u0435\u043c\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub><\/strong>, \u043d\u0438 \u043e\u0442 \u0435\u0451 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0448\u0438\u0444\u0440\u043e\u0432 \u043f\u043e\u043b\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u043a\u043e\u0434\u044b \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u044e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u0431\u043b\u043e\u043a\u043e\u0432, \u0433\u0434\u0435 <strong>q, w, e, &#8230;, r, t<\/strong> \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0432\u043d\u044b, \u0442\u0430\u043a \u0438 \u043d\u0435\u0440\u0430\u0432\u043d\u044b \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439.<\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0430\u043b\u0444\u0430\u0432\u0438\u0442, \u043a\u0430\u043a \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u044b\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432, <strong>A=((ACBA), (EAC))<\/strong>, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u043b\u0438\u0448\u044c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u043b\u043e\u0432 (\u0434\u0432\u0443\u0445 \u0433\u0440\u0443\u043f\u043f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432), \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m=(EACACBA)<\/strong>. \u041a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>k: A \u21d2 B<\/strong> \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u043a\u043e\u0434\u043e\u0432\u0443\u044e \u043a\u043d\u0438\u0433\u0443 <strong>B=((Q), (RX))<\/strong>, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <strong>k(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>) = B<sub>fA(m(n-1)q+1, m(n-1)q+2, &#8230;, mnq)<\/sub><\/strong>, \u0433\u0434\u0435 <strong>fA<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 <strong>m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub><\/strong> \u0432 <strong>A<\/strong>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <strong>E<sub>k<\/sub>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>) = B<sub>fA(m(n-1)q+1, m(n-1)q+2, &#8230;, mnq)<\/sub><\/strong>.<br \/>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <strong>ACBA=Q, EAC=RX<\/strong>, \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 <strong>c = E<sub>k<\/sub>(EACACBA) = (RXQ)<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u041f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u044b <strong>E<sub>K<\/sub>(M) = C \u21d2 \u22c3{m<sub>i<\/sub>}<\/strong>. <\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u043e\u0441\u0442\u0430\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430: <strong>E<sub>k<\/sub>(m<sub>1<\/sub>, m<sub>2<\/sub>, &#8230;, m<sub>q<\/sub>), E<sub>k<\/sub>(m<sub>q+1<\/sub>, m<sub>q+2<\/sub>, &#8230;, m<sub>2q<\/sub>), E<sub>k<\/sub>(m<sub>2q+1<\/sub>, m<sub>2q+2<\/sub>, &#8230;, m<sub>3q<\/sub>), &#8230;, E<sub>k<\/sub>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>E<sub>k<\/sub>(m<sub>1<\/sub>, m<sub>2<\/sub>, &#8230;, m<sub>nq<\/sub>) \u21d2 {m<sub>1<\/sub>, m<sub>2<\/sub>, &#8230;, m<sub>nq<\/sub>}<\/strong>, \u0433\u0434\u0435 <strong>k\u2208K<\/strong> &#8212; \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a \u0433\u0440\u0443\u043f\u043f\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>E<sub>k<\/sub>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong> \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e. \u041a\u043b\u044e\u0447 <strong>k<\/strong> \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u043d, \u043d\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043d\u0438 \u043e\u0442 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0448\u0438\u0444\u0440\u0443\u0435\u043c\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 <strong>m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub><\/strong>, \u043d\u0438 \u043e\u0442 \u0435\u0451 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0448\u0438\u0444\u0440\u043e\u0432 \u043f\u043e\u043b\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0449\u0438\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 <strong>A \u21d2 B<\/strong>, \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0436\u0435 \u0448\u0438\u0444\u0440\u044b \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f, \u0442.\u0435. <strong>M \u21d2 M<\/strong>.<\/p>\n<p><em>\u041f\u0440\u0438\u043c\u0435\u0440<\/em>. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m=(ACBAEE)<\/strong>. \u041a\u043b\u044e\u0447\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>k: M \u21d2 M<\/strong>, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <strong>k(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>) = P(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong>, \u0433\u0434\u0435 <strong>P<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 <strong>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <strong>E<sub>k<\/sub>(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>) = P(m<sub>(n-1)q+1<\/sub>, m<sub>(n-1)q+2<\/sub>, &#8230;, m<sub>nq<\/sub>)<\/strong>. \u041f\u0440\u0438\u043c\u0435\u043c \u043a\u043b\u044e\u0447\u0435\u0432\u0443\u044e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 <strong>P = (213) <\/strong>(\u0432\u0442\u043e\u0440\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e, \u043f\u0435\u0440\u0432\u044b\u0439 \u043d\u0430 \u0432\u0442\u043e\u0440\u0443\u044e, \u0442\u0440\u0435\u0442\u0438\u0439 \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u044e).<br \/>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: <strong>ACB=CAB, AEE=EAE, BCA=CBA, &#8230;<\/strong>, \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 <strong>c = E<sub>k<\/sub>(ACBAEE) = (CABEAE)<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u0430 \u0431\u0430\u0437\u0435 \u043e\u0431\u0449\u0435\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0441\u043c\u043e\u0433\u043b\u0438 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c, \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u043d\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<h3>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0448\u0438\u0444\u0440\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438<\/h3>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435: <\/p>\n<ol>\n<li>\n<p>\u0428\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f<\/p>\n<\/li>\n<li>\n<p>\u0428\u0438\u0444\u0440 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430<\/p>\n<\/li>\n<li>\n<p>\u0428\u0438\u0444\u0440 \u0422\u0440\u0438\u0442\u0435\u043c\u0438\u0443\u0441\u0430<\/p>\n<\/li>\n<li>\n<p>\u0410\u0444\u0444\u0438\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440<\/p>\n<\/li>\n<li>\n<p>\u0428\u0438\u0444\u0440 \u0425\u0438\u043b\u043b\u0430<\/p>\n<\/li>\n<li>\n<p>\u0428\u0438\u0444\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0430\u043a\u043e\u0432\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0438\u0445 \u0441\u0445\u043e\u0436\u0435\u0441\u0442\u0438 (\u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0445), \u043d\u043e \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c &#171;\u0440\u0430\u0437\u043d\u043e\u0448\u0451\u0440\u0441\u0442\u043d\u043e\u0441\u0442\u0438&#187;. \u0414\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c 1) \u041b\u0435\u0433\u043a\u043e \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u043d\u043e\u0432\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u043e\u0432, 2) \u0423\u0434\u043e\u0431\u043d\u043e \u0432\u044b\u044f\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438.<\/p>\n<h4>1. \u0428\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f<\/h4>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0451\u0433\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435: <strong>E<sub>k<\/sub>(m) = m<sub>i<\/sub>+k \u2261 c<sub>i<\/sub> (mod n)<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u0445\u043e\u0436\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <strong>D<sub>k<\/sub>(c) = c<sub>i<\/sub>-k \u2261 m<sub>i<\/sub> (mod n)<\/strong>. \u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0438 \u043a\u043b\u044e\u0447 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u0447\u0438\u0441\u043b\u0430. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0434 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f <strong>m<sub>i<\/sub><\/strong>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442\u044b <strong>c<sub>i<\/sub><\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043a\u043b\u044e\u0447 <strong>k<\/strong>.<\/p>\n<p>\u0412 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0439 \u0432\u044b\u0448\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 \u043d\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 (mod n), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0439 \u0437\u043d\u0430\u043a <strong>\u2261 <\/strong>(<strong>\u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u043e<\/strong>). \u0412 \u043e\u0431\u0449\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0430\u043d\u044b. \u041d\u0430\u0447\u043d\u0451\u043c \u043f\u043e\u0436\u0430\u043b\u0443\u0439 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f (mod n). <strong>mod<\/strong> &#8212; \u044d\u0442\u043e \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e, \u0438\u043b\u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 &#8212; \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c.<\/p>\n<p>\u041c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u043e\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 mod. \u0420\u0430\u0431\u043e\u0442\u0443 \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043b\u0435\u0433\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435:<\/p>\n<ol>\n<li>\n<p>0 mod 3 = 0<\/p>\n<\/li>\n<li>\n<p>1 mod 3 = 1<\/p>\n<\/li>\n<li>\n<p>2 mod 3 = 2<\/p>\n<\/li>\n<li>\n<p>3 mod 3 = 0<\/p>\n<\/li>\n<li>\n<p>4 mod 3 = 1<\/p>\n<\/li>\n<li>\n<p>5 mod 3 = 2<\/p>\n<\/li>\n<li>\n<p>\u0438 \u0442.\u0434. &#8230;<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e mod &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f, \u043d\u043e \u0438 \u043d\u0435\u043a\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u0437\u0430\u0446\u0438\u043a\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432. \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, (mod 3) \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u0437 \u0442\u0440\u0451\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0438\u0434\u0430 {0, 1, 2}, \u043a\u0430\u043a\u0438\u0435 \u0431\u044b \u0446\u0435\u043b\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430 \u0432\u0445\u043e\u0434 \u043d\u0435 \u043f\u043e\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c. \u0412 \u0431\u043e\u043b\u0435\u0435 \u043e\u0431\u0449\u0435\u043c \u0432\u0438\u0434\u0435, \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e <strong>n<\/strong> \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a <strong>{0, 1, 2, &#8230;, n-1} (mod n)<\/strong>. <\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043b\u044e\u0431\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0447\u0435\u043c <strong>n<\/strong> \u0432 <strong>k<\/strong> \u0440\u0430\u0437 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u043f\u043e\u043f\u0430\u0434\u0430\u0442\u044c \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043c\u043e\u0434\u0443\u043b\u044f <strong>n<\/strong>. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <\/p>\n<ol>\n<li>\n<p><strong>{0n, 1n, 2n, &#8230;, kn, &#8230;} \u2261<\/strong> <strong>0 (mod n), <\/strong><\/p>\n<\/li>\n<li>\n<p><strong>{0n+1, 1n+1, 2n+1, &#8230;, kn+1, &#8230;} \u2261<\/strong> <strong>1 (mod n), <\/strong><\/p>\n<\/li>\n<li>\n<p><strong>{0n+2, 1n+2, 2n+2, &#8230;, kn+2, &#8230;} \u2261<\/strong> <strong>2 (mod n), <\/strong><\/p>\n<\/li>\n<li>\n<p><strong>&#8230;, <\/strong><\/p>\n<\/li>\n<li>\n<p><strong>{0n+(n-1), 1n+(n-1), 2n+(n-1), &#8230;, kn+(n-1), &#8230;}<\/strong> <strong>\u2261 (n-1) (mod n)<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0422\u0430\u043a\u043e\u0432\u044b\u0435 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u043c\u044b\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <strong>\u043a\u043b\u0430\u0441\u0441\u0430\u043c\u0438 \u0432\u044b\u0447\u0435\u0442\u043e\u0432<\/strong>. \u041a\u0430\u0436\u0434\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432\u044b\u0447\u0435\u0442\u043e\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c. \u0412 \u0438\u0442\u043e\u0433\u0435, \u043b\u044e\u0431\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0432\u044b\u0447\u0435\u0442\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u043a\u0430\u043a <strong>kn+x<\/strong> <strong>\u2261<\/strong> <strong>x (mod n)<\/strong>. <\/p>\n<p>\u0421\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u0430\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0435 \u043d\u0430\u0434 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <strong>N<\/strong>, \u0430 \u043d\u0430\u0434 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <strong>Z<\/strong>. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u043e <strong>= 0 <\/strong>(\u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043c\u044b \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0438\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e <strong>N = {1, 2, 3, &#8230;}<\/strong> \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0443\u043b\u044f). \u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438 \u0438\u0441\u043a\u043e\u0440\u0435\u043d\u044f\u044e\u0442\u0441\u044f. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <strong>-1 \u2261 4 (mod 5)<\/strong>, <strong>-2 \u2261 3<\/strong> <strong>(mod 5), -3 \u2261 2 (mod 5), -4 \u2261 1 (mod 5), -5 \u2261 0 (mod 5), -6 \u2261 -1 \u2261 4 (mod 5), &#8230; <\/strong>\u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043a\u043e\u043b\u044c\u0446\u0430\u0445 \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0430\u043f\u0440\u0438\u043e\u0440\u0438 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438, \u0431\u0430\u0437\u0438\u0440\u0443\u044f\u0441\u044c \u043d\u0430 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 <strong>-x = (n > kn-x<\/strong> <strong>\u2a7e 0)<\/strong>.<\/p>\n<p>\u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e, \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0430 <strong>kn+x<\/strong> <strong>= ln+x<\/strong> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u044b\u043c, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u0432\u044b\u0447\u0435\u0442\u043e\u0432. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438 \u0441\u0430\u043c\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e\u043c <strong>kn+x<\/strong> <strong>\u2260 ln+x<\/strong>. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0438\u043d\u044b\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0438 \u043a \u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 <strong>kn+x<\/strong> <strong>\u2261<\/strong> <strong>ln+x<\/strong> <strong>\u2261 x (mod n)<\/strong>.<\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e, \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u0430\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u044c\u0446\u043e <strong>Z<sub>n<\/sub><\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438:<\/p>\n<ol>\n<li>\n<p><strong>\u041a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. a + b <strong>\u2261<\/strong> b + a (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a,b\u2208Z<sub>n<\/sub><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. (a + b) + c <strong>\u2261<\/strong> a + (b + c) (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a,b,c\u2208Z<sub>n<\/sub><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. c(a + b) <strong>\u2261<\/strong> ca + cb (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a,b,c\u2208Z<sub>n<\/sub><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0443\u043b\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 0<\/strong>. a + 0 <strong>=<\/strong> 0 + a <strong>\u2261<\/strong> a (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a\u2208Z<sub>n<\/sub> <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u22030\u2208Z<sub>n<\/sub><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 (-a)<\/strong>. a + (-a) <strong>=<\/strong> (-a) + a <strong>\u2261<\/strong> 0 (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a\u2208Z<sub>n<\/sub> <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u2203(-a)\u2208Z<sub>n<\/sub><\/strong><\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0413\u0440\u0443\u043f\u043f\u044b<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u044c\u0446\u043e Z<sub>n<\/sub> \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u0443\u044e \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u0443\u044e \u0430\u0434\u0434\u0438\u0442\u0438\u0432\u043d\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443: <strong>G&lt;+, 0><\/strong> (\u0433\u0440\u0443\u043f\u043f\u0443 \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u043b\u0438\u0446\u0435 \u043d\u0443\u043b\u044f). <\/p>\n<p>\u0413\u0440\u0443\u043f\u043f\u043e\u0439 <strong>G&lt;#, e><\/strong> \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439 <strong>#<\/strong> \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438:<\/p>\n<ol>\n<li>\n<p><strong>\u0410\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. (a # b) # c = a # (b # c), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a,b,c\u2208G<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 e<\/strong>. a # e = e # a = a, \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a\u2208G <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u2203e\u2208G<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 a<sup>-1<\/sup><\/strong>. a # a<sup>-1<\/sup> = a<sup>-1<\/sup> # a = e, \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a\u2208G <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u2203a<sup>-1<\/sup>\u2208G<\/strong><\/p>\n<\/li>\n<\/ol>\n<p>\u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043a\u043e\u043b\u044c\u0446\u043e <strong>Z<sub>n<\/sub><\/strong> \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0431\u044f \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0433\u0440\u0443\u043f\u043f\u0443 <strong>G&lt;+, 0><\/strong>. \u0412\u043c\u0435\u0441\u0442\u0435 \u0441 \u044d\u0442\u0438\u043c, \u0442\u0430\u043a\u043e\u0432\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0439. \u0412\u043d\u0435 \u0433\u0440\u0443\u043f\u043f \u043a\u043e\u043b\u044c\u0446\u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u043c\u0435\u044e\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u043b\u0438\u0446\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/div>\n<\/details>\n<p>\u0418\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043b\u044e\u0431\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0426\u0435\u0437\u0430\u0440\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u043a\u043e\u043b\u044c\u0446\u0435 <strong>Z<sub>n<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u0440\u0438 \u043b\u044e\u0431\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043a\u043e\u043b\u0435\u0446. \u042d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445:<\/p>\n<ol>\n<li>\n<p><strong>\u041a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. 8 + 21 = 21 + 8 \u2261 3 (mod 26)<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. (8 + 21) + 5 = 8 + (21 + 5) \u2261 8 (mod 26)<\/p>\n<\/li>\n<li>\n<p><strong>\u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. <br \/>3 * (8 + 21) = 3*29 = 87 \u2261 9 (mod 26)<br \/>3 * (8 + 21) = 3*8 + 3*21 = 24 + 63 \u2261 24 + 11 \u2261 9 (mod 26)<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0443\u043b\u0435\u0432\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/strong>. 8 + 0 <strong>\u2261<\/strong> 0 + 8 <strong>\u2261<\/strong> 8 (mod 26)<\/p>\n<\/li>\n<li>\n<p> <strong>\u041f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442<\/strong>. <br \/>8 + (-8) <strong>=<\/strong> (-8) + 8 <strong>\u2261<\/strong> 0 (mod 26)<br \/>8 + (-8) <strong>\u2261<\/strong> 8 + (26-8) <strong>\u2261 <\/strong>8 + 18 <strong>\u2261<\/strong> 0 (mod 26)<\/p>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0426\u0435\u0437\u0430\u0440\u044f<\/summary>\n<div class=\"spoiler__content\">\n<details class=\"spoiler\">\n<summary>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 encoder<\/summary>\n<div class=\"spoiler__content\">\n<p>encoder.h<\/p>\n<pre><code class=\"cpp\">#ifndef _H_ENCODER #define _H_ENCODER  #include &lt;stdint.h>  typedef enum encmode_t {     MODE_ENC =  1,     MODE_DEC = -1 } encmode_t;  typedef struct encoder_t encoder_t;  extern encoder_t *encoder_new(uint8_t size_alph); extern void encoder_free(encoder_t *encoder);  extern uint8_t encoder_get_size_alphabet(encoder_t *encoder); extern void encoder_set_alphabet(encoder_t *encoder, uint8_t *alphabet);  extern uint8_t encoder_encode(encoder_t *encoder, uint8_t ch, int *found); extern uint8_t encoder_decode(encoder_t *encoder, uint8_t code, int *valid);  #endif<\/code><\/pre>\n<p>encoder.c<\/p>\n<pre><code class=\"cpp\">#include \"encoder.h\"  #include &lt;stdint.h> #include &lt;stdlib.h>  typedef struct encoder_t {     uint8_t size_alph;     uint8_t *alphabet; } encoder_t;  extern encoder_t *encoder_new(uint8_t size_alph) {     encoder_t *encoder = (encoder_t*)malloc(sizeof(encoder_t));     if (encoder == NULL) {         return NULL;     }     encoder->size_alph = size_alph;     encoder->alphabet = (uint8_t*)malloc(sizeof(uint8_t)*size_alph);     return encoder; }  extern void encoder_free(encoder_t *encoder) {     free(encoder->alphabet);     free(encoder); }  extern uint8_t encoder_get_size_alphabet(encoder_t *encoder) {     return encoder->size_alph; }  extern void encoder_set_alphabet(encoder_t *encoder, uint8_t *alphabet) {     for (int i = 0; i &lt; encoder->size_alph; ++i) {         encoder->alphabet[i] = alphabet[i];     } }  extern uint8_t encoder_encode(encoder_t *encoder, uint8_t ch, int *found) {     for (int i = 0; i &lt; encoder->size_alph; ++i) {         if (encoder->alphabet[i] == ch) {             *found = 1;             return i;          }     }     *found = 0;     return 0; }  extern uint8_t encoder_decode(encoder_t *encoder, uint8_t code, int *valid) {     if (code >= encoder->size_alph) {         *valid = 0;         return 0;     }     *valid = 1;     return encoder->alphabet[code]; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<pre><code class=\"cpp\">#include \"encoder.h\"  #include &lt;stdio.h> #include &lt;stdint.h> #include &lt;stdlib.h> #include &lt;string.h>  typedef struct caesar_t {     encoder_t *encoder;     int32_t key; } caesar_t;  extern caesar_t *caesar_new(encoder_t *encoder, int32_t k); extern void caesar_free(caesar_t *caesar);  extern uint8_t *caesar_encrypt(caesar_t *caesar, uint8_t *output, uint8_t *input); extern uint8_t *caesar_decrypt(caesar_t *caesar, uint8_t *output, uint8_t *input);  static uint8_t *encrypt_string(caesar_t *caesar, encmode_t m, uint8_t *output, uint8_t *input); static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t k);  int main(int argc, char *argv[]) {     uint8_t alphabet[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";     uint8_t size_alph = (uint8_t)strlen((char*)alphabet);      encoder_t *encoder = encoder_new(size_alph);     encoder_set_alphabet(encoder, alphabet);      uint8_t message[BUFSIZ];     uint32_t key = 3;     strcpy((char*)message, \"HELLOWORLD\");      caesar_t *caesar = caesar_new(encoder, key);      printf(\"%s\\n\", (char*)caesar_encrypt(caesar, message, message));     printf(\"%s\\n\", (char*)caesar_decrypt(caesar, message, message));      caesar_free(caesar);     encoder_free(encoder);     return 0; }  extern caesar_t *caesar_new(encoder_t *encoder, int32_t k) {     caesar_t *caesar = (caesar_t*)malloc(sizeof(caesar_t));         caesar->encoder = encoder;     caesar->key = k;      return caesar;  }  extern void caesar_free(caesar_t *caesar) {     free(caesar); }  extern uint8_t *caesar_encrypt(caesar_t *caesar, uint8_t *output, uint8_t *input) {     return encrypt_string(caesar, MODE_ENC, output, input); }  extern uint8_t *caesar_decrypt(caesar_t *caesar, uint8_t *output, uint8_t *input) {     return encrypt_string(caesar, MODE_DEC, output, input); }  static uint8_t *encrypt_string(caesar_t *caesar, encmode_t m, uint8_t *output, uint8_t *input) {     size_t input_len = strlen((char*)input);     int encoded_ch, encrypted, flag;      for (int i = 0; i &lt; input_len; i++) {         encoded_ch = encoder_encode(caesar->encoder, input[i], &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined char %c;\\n\", input[i]);             return NULL;         }          encrypted = encrypt_code(caesar->encoder, encoded_ch, m*caesar->key); \/\/ m = {-1, 1}          output[i] = encoder_decode(caesar->encoder, encrypted, &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined code %c;\\n\", encrypted);             return NULL;         }     }      output[input_len] = '\\0';     return output; }  static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t k) {     uint8_t size = encoder_get_size_alphabet(encoder);     return (c+k+size)%size; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>2. \u0428\u0438\u0444\u0440 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430<\/h4>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u0441\u0445\u043e\u0436 \u0441 \u0448\u0438\u0444\u0440\u043e\u043c \u0426\u0435\u0437\u0430\u0440\u044f. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u043a\u043b\u044e\u0447\u0430 \u0432 \u0432\u0438\u0434\u0435 \u043d\u0430\u0431\u043e\u0440\u0430 \u0447\u0438\u0441\u0435\u043b. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0441\u0430\u043c\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0438\u0444\u0440\u043e\u043c \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a <strong>E<sub>k<\/sub>(m) \u2261 m<sub>i<\/sub>+k<sub>i<\/sub> (mod n)<\/strong>. \u0412 \u0448\u0438\u0444\u0440\u0435 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439, \u0435\u0441\u043b\u0438 \u0434\u043b\u0438\u043d\u0430 \u043a\u043b\u044e\u0447\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 \u0434\u043b\u0438\u043d\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0442\u043e \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u043a\u043b\u044e\u0447 \u0434\u0443\u0431\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043e \u0434\u043b\u0438\u043d\u044b \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f. \u0418\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u044d\u0442\u043e\u0439 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f: <strong>E<sub>k<\/sub>(m) \u2261 m<sub>i<\/sub>+k<sub>(i mod q)<\/sub> (mod n)<\/strong>, \u0433\u0434\u0435 q &#8212; \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435 \u043a\u0430\u043a <strong>D<sub>k<\/sub>(c) \u2261 c<sub>i<\/sub>-k<sub>(i mod q)<\/sub> (mod n)<\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">#include \"encoder.h\"  #include &lt;stdio.h> #include &lt;stdint.h> #include &lt;stdlib.h> #include &lt;string.h>  typedef struct vigenere_t {     encoder_t *encoder;     uint8_t *key;     uint32_t key_size; } vigenere_t;  extern vigenere_t *vigenere_new(encoder_t *encoder, uint8_t *key); extern void vigenere_free(vigenere_t *vigenere);  extern uint8_t *vigenere_encrypt(vigenere_t *vigenere, uint8_t *output, uint8_t *input); extern uint8_t *vigenere_decrypt(vigenere_t *vigenere, uint8_t *output, uint8_t *input);  static uint8_t *encrypt_string(vigenere_t *vigenere, encmode_t m, uint8_t *output, uint8_t *input); static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t k);  int main(int argc, char *argv[]) {     uint8_t alphabet[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";     uint8_t size_alph = (uint8_t)strlen((char*)alphabet);      encoder_t *encoder = encoder_new(size_alph);     encoder_set_alphabet(encoder, alphabet);      uint8_t message[BUFSIZ];     uint8_t key[] = \"QWE\";     strcpy((char*)message, \"HELLOWORLD\");      vigenere_t *vigenere = vigenere_new(encoder, key);      printf(\"%s\\n\", (char*)vigenere_encrypt(vigenere, message, message));     printf(\"%s\\n\", (char*)vigenere_decrypt(vigenere, message, message));      vigenere_free(vigenere);     encoder_free(encoder);     return 0; }  extern vigenere_t *vigenere_new(encoder_t *encoder, uint8_t *key) {     vigenere_t *vigenere = (vigenere_t*)malloc(sizeof(vigenere_t));         vigenere->encoder = encoder;     vigenere->key_size = strlen((char*)key);      vigenere->key = (uint8_t*)malloc(sizeof(uint8_t)*vigenere->key_size+1);     strcpy((char*)vigenere->key, (char*)key);      return vigenere;  }  extern void vigenere_free(vigenere_t *vigenere) {     free(vigenere->key);     free(vigenere); }  extern uint8_t *vigenere_encrypt(vigenere_t *vigenere, uint8_t *output, uint8_t *input) {     return encrypt_string(vigenere, MODE_ENC, output, input); }  extern uint8_t *vigenere_decrypt(vigenere_t *vigenere, uint8_t *output, uint8_t *input) {     return encrypt_string(vigenere, MODE_DEC, output, input); }  static uint8_t *encrypt_string(vigenere_t *vigenere, encmode_t m, uint8_t *output, uint8_t *input) {     size_t input_len = strlen((char*)input);     int encoded_ch, encrypted, key, flag;      for (int i = 0; i &lt; input_len; i++) {         encoded_ch = encoder_encode(vigenere->encoder, input[i], &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined char %c;\\n\", input[i]);             return NULL;         }          key = encoder_encode(vigenere->encoder, vigenere->key[i%vigenere->key_size], &amp;flag);         if (flag == 0) {             fprintf(stderr, \"encode key char %c;\\n\", vigenere->key[i%vigenere->key_size]);             return NULL;         }          encrypted = encrypt_code(vigenere->encoder, encoded_ch, m*key); \/\/ m = {-1, 1}          output[i] = encoder_decode(vigenere->encoder, encrypted, &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined code %c;\\n\", encrypted);             return NULL;         }     }      output[input_len] = '\\0';     return output; }  static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t k) {     uint8_t size = encoder_get_size_alphabet(encoder);     return (c+k+size)%size; } <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>3. \u0428\u0438\u0444\u0440 \u0422\u0440\u0438\u0442\u0435\u043c\u0438\u0443\u0441\u0430<\/h4>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u043b\u0438\u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0433\u0434\u0435 \u043a\u043b\u044e\u0447\u043e\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f. \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0424\u043e\u0440\u043c\u0443\u043b\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f: <strong>E<sub>k<\/sub>(m) \u2261 m<sub>i<\/sub>+k(i) (mod n)<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <strong>D<sub>k<\/sub>(c) \u2261 c<sub>i<\/sub>-k(i) (mod n)<\/strong>. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0448\u0438\u0444\u0440\u0430 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430, \u0433\u0434\u0435 \u043a\u043b\u044e\u0447 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f, \u0448\u0438\u0444\u0440 \u0422\u0440\u0438\u0442\u0435\u043c\u0438\u0443\u0441\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0430 (\u0433\u0430\u043c\u043c\u044b). \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044f\u0437\u044b\u043a\u0430 \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439, \u0442\u043e\u0433\u0434\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430 <strong>n=26<\/strong>. \u041a\u043b\u044e\u0447\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>k(i) = 2i+1<\/strong>, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c <strong>m = HELLO = (7,4,11,11,14)<\/strong> (\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 A=0, B=1, C=2, &#8230;, X=23, Y=24, Z=25).<\/p>\n<p>c<sub>1<\/sub> \u2261 7+(2*1+1) (mod 26) = 10 = K<br \/>c<sub>2<\/sub> \u2261 4+(2*2+1) (mod 26) = 9 = J<br \/>c<sub>3<\/sub> \u2261 11+(2*3+1) (mod 26) = 18 = S<br \/>c<sub>4<\/sub> \u2261 11+(2*4+1) (mod 26) = 20 = U<br \/>c<sub>5<\/sub> \u2261 14+(2*5+1) (mod 26) = 25 = Z<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>KJSUZ<\/strong>. \u041f\u0440\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0433\u0430\u043c\u043c\u044b, \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u043e \u0441\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0432\u044b\u0447\u0438\u0442\u0430\u043d\u0438\u0435.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0422\u0440\u0438\u0442\u0435\u043c\u0438\u0443\u0441\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">#include \"encoder.h\"  #include &lt;stdio.h> #include &lt;stdint.h> #include &lt;stdlib.h> #include &lt;string.h>  typedef struct trithemius_t {     encoder_t *encoder;     uint8_t (*f_key)(uint32_t i); } trithemius_t;  extern trithemius_t *trithemius_new(encoder_t *encoder, uint8_t (*f_key)(uint32_t i)); extern void trithemius_free(trithemius_t *trithemius);  extern uint8_t *trithemius_encrypt(trithemius_t *trithemius, uint8_t *output, uint8_t *input); extern uint8_t *trithemius_decrypt(trithemius_t *trithemius, uint8_t *output, uint8_t *input);  static uint8_t *encrypt_string(trithemius_t *trithemius, encmode_t m, uint8_t *output, uint8_t *input); static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t k);  uint8_t f_key(uint32_t i) {     return 2*i+1; }  int main(int argc, char *argv[]) {     uint8_t alphabet[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";     uint8_t size_alph = (uint8_t)strlen((char*)alphabet);      encoder_t *encoder = encoder_new(size_alph);     encoder_set_alphabet(encoder, alphabet);      uint8_t message[BUFSIZ];     strcpy((char*)message, \"HELLOWORLD\");      trithemius_t *trithemius = trithemius_new(encoder, f_key);      printf(\"%s\\n\", (char*)trithemius_encrypt(trithemius, message, message));     printf(\"%s\\n\", (char*)trithemius_decrypt(trithemius, message, message));      trithemius_free(trithemius);     encoder_free(encoder);     return 0; }  extern trithemius_t *trithemius_new(encoder_t *encoder, uint8_t (*f_key)(uint32_t i)) {     trithemius_t *trithemius = (trithemius_t*)malloc(sizeof(trithemius_t));         trithemius->encoder = encoder;     trithemius->f_key = f_key;      return trithemius;  }  extern void trithemius_free(trithemius_t *trithemius) {     free(trithemius); }  extern uint8_t *trithemius_encrypt(trithemius_t *trithemius, uint8_t *output, uint8_t *input) {     return encrypt_string(trithemius, MODE_ENC, output, input); }  extern uint8_t *trithemius_decrypt(trithemius_t *trithemius, uint8_t *output, uint8_t *input) {     return encrypt_string(trithemius, MODE_DEC, output, input); }  static uint8_t *encrypt_string(trithemius_t *trithemius, encmode_t m, uint8_t *output, uint8_t *input) {     size_t input_len = strlen((char*)input);     int encoded_ch, encrypted, flag;      for (int i = 0; i &lt; input_len; i++) {         encoded_ch = encoder_encode(trithemius->encoder, input[i], &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined char %c;\\n\", input[i]);             return NULL;         }          encrypted = encrypt_code(trithemius->encoder, encoded_ch, m*f_key(i+1)); \/\/ m = {-1, 1}         output[i] = encoder_decode(trithemius->encoder, encrypted, &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined code %c;\\n\", encrypted);             return NULL;         }     }      output[input_len] = '\\0';     return output; }  static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t k) {     uint8_t size = encoder_get_size_alphabet(encoder);     return (c+(k%size)+size)%size; } <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>4. \u0410\u0444\u0444\u0438\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440<\/h4>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043c\u043e\u043d\u043e\u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u0443\u044e \u0437\u0430\u043c\u0435\u043d\u0443 \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u0449\u0438\u043c \u0441\u043b\u0443\u0447\u0430\u0435\u043c \u0448\u0438\u0444\u0440\u0430 \u0426\u0435\u0437\u0430\u0440\u044f. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e, \u0410\u0444\u0444\u0438\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440 \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0435 \u043d\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043a\u043e\u043b\u044c\u0446\u0430\u0445 <strong>Z<sub>n<\/sub><\/strong>, \u0430 \u043d\u0430 \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043a\u043e\u043b\u0435\u0446 <strong>Z<sub>n<\/sub><sup>*<\/sup><\/strong>. \u0422\u0430\u043a\u043e\u0432\u0430\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u043a\u043e\u043b\u044c\u0446\u0435 \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>Z<sub>n<\/sub><\/strong> \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u043c \u0438\u0437 <strong>Z<sub>n<\/sub><sup>*<\/sup><\/strong>. \u041a\u043e\u0433\u0434\u0430 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u044c (\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432) \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>Z<sub>n<\/sub>\\{0}<\/strong> (\u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0443\u043b\u044f) \u0440\u0430\u0432\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 <strong>Z<sub>n<\/sub><sup>*<\/sup><\/strong>, \u0442\u043e\u0433\u0434\u0430 n \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c, \u0430 \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u043a\u043e\u043b\u044c\u0446\u043e <strong>Z<sub>n<\/sub><sup>* <\/sup><\/strong>\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u043f\u043e\u043b\u0435\u043c <strong>F<sub>q<\/sub><\/strong>. <\/p>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u043a\u0430\u043a <strong>F<sub>q<\/sub><\/strong>. \u0412\u043e\u0437\u044c\u043c\u0451\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u0434 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e (\u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e) \u0447\u0438\u0441\u043b\u0430, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432 \u044f\u0432\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>Z<sub>n<\/sub><sup>*<\/sup><\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0447\u0438\u0441\u043b\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041f\u0440\u043e\u0441\u0442\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0442\u0430\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0438 \u043d\u0430 \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0438\u0441\u043b\u043e 7 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u043a\u0440\u043e\u043c\u0435 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438 \u0441\u0435\u043c\u0438. \u0427\u0438\u0441\u043b\u043e 9 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043f\u043e\u043c\u0438\u043c\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438 \u0434\u0435\u0432\u044f\u0442\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c &#8212; \u0442\u0440\u0438. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0434\u043e 100: [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]<\/p>\n<\/div>\n<\/details>\n<p>\u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 <strong>F<sub>q<\/sub><\/strong> \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u0432\u0441\u0435\u043c\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u044c\u0446\u0430 <strong>Z<sub>q<\/sub><\/strong> \u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b <strong>G&lt;*, 1><\/strong>.<\/p>\n<ol>\n<li>\n<p><strong>\u041a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. ab \u2261 ba (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a,b\u2208F<sub>q<\/sub><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c<\/strong>. a(bc) \u2261 (ab)c (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a,b,c\u2208F<sub>q<\/sub><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0415\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 1<\/strong>. a1 = 1a \u2261 a (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a\u2208F<sub>q<\/sub> <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u22031\u2208F<sub>q<\/sub><\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 a<sup>-1<\/sup><\/strong>. aa<sup>-1<\/sup> = a<sup>-1<\/sup>a \u2261 1 (mod n), \u0434\u043b\u044f (\u0432\u0441\u0435\u0445) <strong>\u2200a\u2208F<sub>q<\/sub> <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u2203a<sup>-1<\/sup>\u2208F<sub>q<\/sub><\/strong><\/p>\n<\/li>\n<\/ol>\n<p>\u041a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c, \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0438 \u0435\u0434\u0438\u043d\u0438\u0447\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u043c\u043d\u043e\u0433\u0438\u043c \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u0438\u0445 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0435 \/ \u0430\u043b\u0433\u0435\u0431\u0440\u0435 \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445-\u0441\u0440\u0435\u0434\u043d\u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044f\u0445 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u0432\u0435\u0449\u044c, \u0445\u043e\u0442\u044c \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0438\u0437 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b: <strong>a<sup>-1<\/sup>=1\/a<\/strong>. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044f\u0445 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u043e\u0431\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0430 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>a<sup>-1 <\/sup><\/strong>\u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a <strong>1\/a<\/strong>. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043a \u0447\u0438\u0441\u043b\u0443 7 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u043f\u043e\u043b\u044f\u0445 <strong>F<sub>29<\/sub><\/strong>, <strong>F<sub>127<\/sub><\/strong>, <strong>F<sub>131<\/sub><\/strong>.<\/p>\n<ol>\n<li>\n<p>7 * a<sup>-1<\/sup> \u2261 1 (mod 29) \u21d2 <strong>a<sup>-1<\/sup> = 25<\/strong> \u21d2 7 * 25 = 175 \u2261 1 (mod 29)<\/p>\n<\/li>\n<li>\n<p>7 * a<sup>-1<\/sup> \u2261 1 (mod 127) \u21d2 <strong>a<sup>-1<\/sup> = 109<\/strong> \u21d2 7 * 109 = 763 \u2261 1 (mod 127)<\/p>\n<\/li>\n<li>\n<p>7 * a<sup>-1<\/sup> \u2261 1 (mod 131) \u21d2 <strong>a<sup>-1<\/sup> = 75<\/strong> \u21d2 7 * 75 = 525 \u2261 1 (mod 131)<\/p>\n<\/li>\n<\/ol>\n<p>\u0418 \u043d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0435 \u0443 \u043c\u043d\u043e\u0433\u0438\u0445 \u043b\u044e\u0434\u0435\u0439, \u0438\u0437\u0443\u0447\u0430\u044e\u0449\u0438\u0445 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e, \u043d\u043e \u043f\u043b\u043e\u0445\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u044b\u0445 \u0441 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0439 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u043e\u0439, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0433\u043d\u0430\u0446\u0438\u044f \u0432 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438. \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u043f\u043e\u043b\u0435 \u043d\u0435 \u0442\u0430\u043a\u0430\u044f \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u043a\u0430\u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0436\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435 \u0440\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0421\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0435\u0449\u0451 \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043c \u0444\u0430\u043a\u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u044c\u0446\u0430 <strong>Z<sub>n<\/sub><sup>*<\/sup><\/strong>, \u0430 \u043d\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 <strong>F<sub>q<\/sub><\/strong>, \u0442\u043e \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u0435\u0442 \u0438 \u0432\u043e\u0432\u0441\u0435 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0447\u0438\u0441\u043b\u0430 6 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 26 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u043b\u044f \u0447\u0438\u0441\u043b\u0430 3 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438 \u0440\u0430\u0432\u0435\u043d 9, \u0442.\u043a. <strong>3*9 = 27 \u2261 1 (mod 26)<\/strong>.<\/p>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043e\u0431\u0449\u0438\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c (<strong>\u041d\u041e\u0414<\/strong>) \u0440\u0430\u0432\u043d\u044b\u043c \u0435\u0434\u0438\u043d\u0438\u0446\u0435, \u0447\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0432\u0437\u0430\u0438\u043c\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0435 \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b. \u041d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0431\u0449\u0438\u0439 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c (\u041d\u041e\u0414) \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0438 \u043e\u043f\u0438\u0441\u0430\u043d \u0432 \u0432\u0438\u0434\u0435 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<pre><code>\u041d\u041e\u0414(a, b) = a, \u0435\u0441\u043b\u0438 b = 0 \u041d\u041e\u0414(a, b) = \u041d\u041e\u0414(b, a mod b)<\/code><\/pre>\n<p>\u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u041d\u041e\u0414(88, 52) = \u041d\u041e\u0414(52, 88 mod 52 = 36) = \u041d\u041e\u0414(36, 52 mod 36 = 16) = \u041d\u041e\u0414(16, 36 mod 16 = 4) = \u041d\u041e\u0414(4, 16 mod 4 = 0) = 4. \u042d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0447\u0438\u0441\u043b\u0430 88 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 52, \u0440\u043e\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0434\u043b\u044f \u0447\u0438\u0441\u043b\u0430 52 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e 88, \u0442.\u043a. \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u041d\u041e\u0414 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0447\u0435\u0442\u044b\u0440\u0451\u043c (\u0442\u043e \u0435\u0441\u0442\u044c \u0447\u0438\u0441\u043b\u043e 4 &#8212; \u044d\u0442\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0431\u0449\u0438\u0439 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0447\u0438\u0441\u0435\u043b 52 \u0438 88 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e).<\/p>\n<p>\u0421\u0432\u044f\u0437\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u043e\u0431\u0449\u0435\u0433\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u0441\u0432\u044f\u0437\u0430\u043d \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c\u0438 \u0432 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u0415\u0432\u043a\u043b\u0438\u0434\u0430, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u0434\u0430\u043b\u0435\u0435, \u043f\u043e \u0445\u043e\u0434\u0443 \u043f\u043e\u0432\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u041d\u041e\u0414<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0420\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u041d\u041e\u0414<\/p>\n<pre><code class=\"cpp\">uint64_t gcd (uint64_t a, uint64_t b) {     if (b == 0) {       return a;     }     return gcd(b, a%b); }<\/code><\/pre>\n<p>\u0418\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u041d\u041e\u0414<\/p>\n<pre><code class=\"cpp\">uint64_t gcd(uint64_t a, uint64_t b) {    uint64_t t;    while (b != 0) {       t = a % b;       a = b;       b = t;            }    return a;  }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u0430\u043c\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0439, \u0447\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u0432\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432\u043d\u0435 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0439 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430.<\/p>\n<h4>\u041c\u0430\u043b\u0430\u044f \u0442\u0435\u043e\u0440\u0435\u043c\u0430 \u0424\u0435\u0440\u043c\u0430<\/h4>\n<p>\u042f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430. \u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u0442 \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u043c\u0430\u043b\u0430\u044f \u0442\u0435\u043e\u0440\u0435\u043c\u0430 \u0424\u0435\u0440\u043c\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430.<\/p>\n<p>\u041c\u0430\u043b\u0430\u044f \u0442\u0435\u043e\u0440\u0435\u043c\u0430 \u0424\u0435\u0440\u043c\u0430 \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u043e\u0439 <strong>a<sup>p-1<\/sup> \u2261 1 (mod p)<\/strong>, \u0433\u0434\u0435 <strong>p<\/strong> &#8212; \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0430 \u0447\u0438\u0441\u043b\u043e <strong>a<\/strong> &#8212; \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0438\u043c\u0435\u044e\u0449\u0435\u0435 \u043e\u0431\u0449\u0438\u0445 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0441 p <strong>\u21d2 \u041d\u041e\u0414(a, p) = 1<\/strong>, \u0433\u0434\u0435 \u041d\u041e\u0414 &#8212; \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0431\u0449\u0438\u0439 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c.<\/p>\n<details class=\"spoiler\">\n<summary>\u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u043c\u0430\u043b\u043e\u0439 \u0442\u0435\u043e\u0440\u0435\u043c\u044b \u0424\u0435\u0440\u043c\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0415\u0441\u043b\u0438 <strong>\u041d\u041e\u0414(a, p)=1<\/strong>, \u0442\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e <strong>{1a, 2a, 3a, &#8230;, (p-2)a, (p-1)a} (mod p)<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 <strong>{1, 2, 3, &#8230;, p-2, p-1} (mod p)<\/strong>, \u0442.\u043a. \u043b\u044e\u0431\u043e\u0435 <strong>ka<\/strong> \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u043a\u0440\u0430\u0442\u043d\u043e \u0447\u0438\u0441\u043b\u0443 <strong>p<\/strong>, \u0432\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0433\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u0440\u0430\u0432\u043d\u043e\u0433\u043e<strong> <\/strong>\u043d\u0443\u043b\u044e, \u0442.\u0435.<strong> <\/strong>\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0430 \u0432\u0438\u0434\u0430<strong> ka \u2261 0 (mod p)<\/strong>. <\/p>\n<p>\u041e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043b\u0438\u0448\u044c \u0442\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u043b\u044e\u0431\u044b\u0445 <strong>k, a<\/strong> \u0438 <strong>l (mod p)<\/strong>, \u0433\u0434\u0435 <strong>a\u2260l<\/strong>, \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u044b\u043c \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <strong>ka\u2260kl<\/strong>. \u041f\u043e\u0439\u0434\u0451\u043c \u043e\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 <strong>a\u2260l<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u043e <strong>ka \u2261 la (mod p)<\/strong>, \u0442\u043e\u0433\u0434\u0430 <strong>ka-la \u2261 (k-l)a \u2261 0  (mod p)<\/strong>, \u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442.\u043a. \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e <strong>(k-l) <\/strong>\u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u0435\u0434\u043b\u0438\u0432\u043e \u043d\u0435\u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u043e <strong>(k-l) \u22620 (mod p)<\/strong>. <\/p>\n<p>\u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0442.\u043a. \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <strong>ka<\/strong> \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u0435\u043d \u043d\u0443\u043b\u044e \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 k \u043d\u0435\u0440\u0430\u0432\u043d\u044b\u0445 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0443, \u0442\u043e \u0438 \u0441\u0430\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u043e\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f <strong>{1a, 2a, 3a, &#8230;, (p-2)a, (p-1)a} (mod p)<\/strong> \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0432\u043d\u044b\u043c \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 (\u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438) \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 <strong>{1, 2, 3, &#8230;, p-2, p-1} (mod p<\/strong>), \u043d\u043e \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0432\u043d\u043e \u0435\u043c\u0443. <\/p>\n<p>\u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e <strong>1*2*3*&#8230;*(p-2)*(p-1) \u2261 1a*2a*3a*&#8230;*(p-2)a*(p-1)a (mod p)<\/strong>. \u042d\u0442\u043e \u0436\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435: <strong>a<sup>p-1<\/sup>(p-1)! \u2261 (p-1)! (mod p)<\/strong>, \u0433\u0434\u0435 (<strong>!<\/strong>) &#8212; \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0430\u043b. <\/p>\n<p>\u041c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 <strong>(p-1)!<\/strong>, \u043b\u0438\u0448\u044c \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f <strong>(p-1)!<sup>-1<\/sup><\/strong>, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e <strong>\u041d\u041e\u0414((p-1)!, p)<\/strong> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u0435\u043d \u0435\u0434\u0438\u043d\u0438\u0446\u0435. \u0422.\u043a. \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <strong>{1, 2, 3, &#8230;, p-2, p-1}<\/strong> \u043d\u0435 \u043a\u0440\u0430\u0442\u043d\u044b <strong>p<\/strong>, \u0442\u043e \u0438 \u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043a\u0440\u0430\u0442\u043d\u043e <strong>p<\/strong>, \u0447\u0442\u043e \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044e <strong>(p-1)!<sup>-1<\/sup><\/strong> <strong>(mod p)<\/strong>.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435: <strong>a<sup>p-1<\/sup>(p-1)!(p-1)!<sup>-1<\/sup> \u2261 (p-1)!(p-1)!<sup>-1<\/sup> \u2261 1 (mod p)<\/strong>, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435: <strong>a<sup>p-1<\/sup> \u2261 1 (mod p)<\/strong>, \u0447\u0442\u043e \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c.<\/p>\n<\/div>\n<\/details>\n<p>\u041c\u0430\u043b\u0430\u044f \u0442\u0435\u043e\u0440\u0435\u043c\u0430 \u0424\u0435\u0440\u043c\u0430 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043d\u0430\u043c \u0432\u0430\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0442\u0435\u043e\u0440\u0435\u043c\u044b \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. \u0418 \u0442\u0430\u043a, \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0439 \u043c\u0430\u043b\u043e\u0439 \u0442\u0435\u043e\u0440\u0435\u043c\u044b \u0424\u0435\u0440\u043c\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u043e: <strong>a*a<sup>p-2<\/sup> = a<sup>p-1<\/sup> \u2261 1 (mod p)<\/strong>. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438, \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f <strong>a<\/strong> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0438\u0441\u043b\u043e \u0440\u0430\u0432\u043d\u043e\u0435 <strong>a<sup>-1<\/sup><\/strong>=<strong>a<sup>p-2<\/sup><\/strong>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0441\u0451 \u0447\u0442\u043e \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f &#8212; \u044d\u0442\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c. \u041f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<p>7 * 7<sup>-1<\/sup> \u2261 1 (mod 29)<br \/>7<sup>-1<\/sup> \u2261 7<sup>29-2<\/sup> = 7<sup>27 <\/sup>\u2261 1 (mod 29)<br \/>7<sup>-1<\/sup> \u2261 7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7*7 \u2261 25 (mod 29)<br \/>7 * 25 \u2261 1 (mod 29)<\/p>\n<p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0441\u0451\u043c \u044d\u0442\u043e\u043c \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u043f\u043b\u0430\u043d\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0442\u0435\u043f\u0435\u043d\u0435\u0439. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0432\u0438\u0434\u0430 <strong>359334085968622831041960188598043661065388726959079835<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u043f\u0440\u0438 \u043d\u0430\u0438\u0432\u043d\u043e\u043c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430 \u043d\u0430 \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f. \u0412 \u0442\u0430\u043a\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 <strong>\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c<\/strong>. \u0415\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0432\u0438\u0434\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043e\u0434\u0430.<\/p>\n<pre><code>\u0412\u0445\u043e\u0434: x=\u0447\u0438\u0441\u043b\u043e, y=\u0441\u0442\u0435\u043f\u0435\u043d\u044c, n=\u043c\u043e\u0434\u0443\u043b\u044c (\u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439) \u0412\u044b\u0445\u043e\u0434: r=\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c:   r = 1   y = (yn)(yn-1)(yn-2)...(y3)(y2)(y1) (y \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0431\u0438\u0442\u043e\u0432\u043e\u043c \u0432\u0438\u0434\u0435)   \u0414\u043b\u044f \u0432\u0441\u0435\u0445 y \u043e\u0442 1 \u0434\u043e n      \u0415\u0441\u043b\u0438 yi = 1        r = r*x mod n     x = x*x mod n   \u0412\u0435\u0440\u043d\u0443\u0442\u044c r<\/code><\/pre>\n<p>\u0422\u0430\u043a \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0432\u043e\u0437\u044c\u043c\u0451\u043c n=199, x=5, y=117. \u041f\u0440\u0438 \u043e\u0431\u044b\u0447\u043d\u043e\u043c \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0438 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u043e\u0432\u0435\u0440\u0448\u0438\u0442\u044c 116 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f. \u0423\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 <strong>y<\/strong> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b\u043e \u0431\u044b \u043f\u0440\u044f\u043c\u043e \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043a \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044e \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0431\u044b \u043b\u0438\u043d\u0435\u0439\u043d\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430\u044f \u0441\u0432\u044f\u0437\u044c <strong>O(N)<\/strong>. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c, \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <strong>O(log<sub>2<\/sub>N)<\/strong>. \u0422.\u043a. y=117, \u0433\u0434\u0435 <strong>2<sup>6<\/sup>&lt;y&lt;2<sup>7<\/sup><\/strong>, \u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e <strong>7<\/strong> \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a <strong>\u2308log<sub>2<\/sub>117\u2309=7<\/strong>, \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c <strong>14<\/strong> \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0434\u0432\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0432\u043e\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u044c<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">extern uint64_t expmod(uint64_t x, uint64_t y, uint64_t n) { uint64_t r = 1;  for (uint64_t bit = 1; bit &lt;= y; bit &lt;&lt;= 1) { if (bit &amp; y) {           r = (r * x) % n;         } x = (x * x) % n; }  return r; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>r=1 | x=5 | y=117 | n=199<br \/>y=1110101<sub>2<\/sub><br \/>1. y<sub>1<\/sub>=1 | r=(1*5) mod 199=5 | x=5<sup>2<\/sup> mod 199=25<br \/>2. y<sub>1<\/sub>=0 | x=25<sup>2<\/sup> mod 199=28<br \/>3. y<sub>1<\/sub>=1 | r=(5*28) mod 199=140 | x=28<sup>2<\/sup> mod 199=187<br \/>4. y<sub>1<\/sub>=0 | x=187<sup>2<\/sup> mod 199=144<br \/>5. y<sub>1<\/sub>=1 | r=(140*144) mod 199=61 | x=144<sup>2<\/sup> mod 199=40<br \/>6. y<sub>1<\/sub>=1 | r=(61*40) mod 199=52 | x=40<sup>2<\/sup> mod 199=8<br \/>7. y<sub>1<\/sub>=1 | r=(52*8) mod 199=<strong>18<\/strong> (\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e x<sup>2<\/sup> \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u043f\u0438\u0441\u0430\u0442\u044c)<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f <strong>5<sup>117 <\/sup>mod 199<\/strong> \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0447\u0438\u0441\u043b\u043e <strong>18<\/strong>. \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043b\u0438\u0431\u043e \u043d\u0430 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440\u0435, \u043b\u0438\u0431\u043e \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u043c \u043e\u043d\u043b\u0430\u0439\u043d \u0440\u0435\u0441\u0443\u0440\u0441\u0435, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <a href=\"https:\/\/planetcalc.ru\/8979\/\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0430\u043b\u043e\u0439 \u0442\u0435\u043e\u0440\u043c\u044b \u0424\u0435\u0440\u043c\u0430 \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">extern uint64_t inv_number(uint64_t a, uint64_t p) {     \/\/ p \u043e\u0431\u044f\u0437\u0430\u043d\u043e \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c!     return expmod(a, p-2, p); }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430<\/h4>\n<p>\u041f\u043e\u0434 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f <strong>\u041d\u041e\u0414<\/strong>, \u043d\u043e \u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u0438\u0445 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 <strong>x, y<\/strong> \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b <strong>a, b<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0444\u043e\u0440\u043c\u0443\u043b\u0443: <strong>ax + by = \u041d\u041e\u0414(a, b)<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043b\u044e\u0431\u043e\u0439 \u041d\u041e\u0414 \u043e\u0442 \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0432 \u0432\u0438\u0434\u0435 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u044b ax + by. <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u043f\u0440\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c\u0438.<\/p>\n<p><strong>ax + by = \u041d\u041e\u0414(a, b)<\/strong><br \/>\u0415\u0441\u043b\u0438 \u0447\u0438\u0441\u043b\u0430 a, b &#8212; \u0432\u0437\u0430\u0438\u043c\u043d\u043e\u043f\u0440\u043e\u0441\u0442\u044b (\u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043e\u0431\u0449\u0438\u0445 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439), \u0442\u043e <strong>\u041d\u041e\u0414(a, b) = 1<\/strong>.<br \/>\u0412 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u044d\u0442\u043e\u0433\u043e, \u0444\u043e\u0440\u043c\u0443\u043b\u0430 \u043e\u0431\u0440\u0435\u0442\u0430\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u0432\u0438\u0434:<br \/><strong>ax + by = 1<\/strong><br \/>\u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e <strong>b<\/strong>, \u0442\u043e\u0433\u0434\u0430 \u0447\u0438\u0441\u043b\u043e <strong>by<\/strong> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u044b\u043c \u043d\u0443\u043b\u044e (\u0442.\u043a. \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>y<\/strong> \u0432 \u0444\u043e\u0440\u043c\u0443\u043b\u0435 <strong>by<\/strong> <strong>(mod b)<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e \u043d\u0443\u043b\u044e):<br \/><strong>ax + by \u2261 ax \u2261 1 (mod b)<\/strong><br \/>\u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0441\u0430\u043c\u043e \u0447\u0438\u0441\u043b\u043e <strong>x<\/strong> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u043a <strong>a<\/strong>: <br \/><strong>x \u2261 a<sup>-1<\/sup> (mod b)<\/strong>.<\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c \u043f\u0441\u0435\u0432\u0434\u043e\u043a\u043e\u0434\u0430:<\/p>\n<pre><code>\u0412\u0445\u043e\u0434: a=\u0447\u0438\u0441\u043b\u043e, b=\u0447\u0438\u0441\u043b\u043e \u0412\u044b\u0445\u043e\u0434: d=\u041d\u041e\u0414(a,b), x=\u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, y=\u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c:   x0 = 1, x1 = 0   y0 = 0, y1 = 1   \u041f\u043e\u043a\u0430 b \u043d\u0435 \u0440\u0430\u0432\u0435\u043d 0     q = a \/ b     r = a mod b     xi = x0 - q * x1     yi = y0 - q * y1     a = b     b = r     x0 = x1     x1 = xi     y0 = y1     y1 = yi   \u0412\u0435\u0440\u043d\u0443\u0442\u044c a, x0, y0<\/code><\/pre>\n<p>\u0412 \u0431\u043e\u043b\u0435\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0432\u0438\u0434\u0435, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0441\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043a \u0438\u0442\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044e \u0434\u0432\u0443\u0445 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u043e\u0440\u043c\u0443\u043b.<\/p>\n<ol>\n<li>\n<p><strong>a = bq + r<\/strong>, \u0433\u0434\u0435 q &#8212; \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, r &#8212; \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u0434\u0435\u043b\u0435\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p><strong>x<sub>i<\/sub> = x<sub>i-2<\/sub> &#8212; q<sub>i-2<\/sub> * x<sub>i-1<\/sub><\/strong>. \u0414\u0430\u043d\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0438 \u0434\u043b\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430 y.<\/p>\n<\/li>\n<\/ol>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u044b \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b: <strong>a = 24, b = 101<\/strong>.<\/p>\n<p><strong>a = bq + r<\/strong><\/p>\n<p>1. 24 = 101 * 0 + 24, a = 24, b = 101, <strong>q = 0<\/strong>, r = 24<br \/>2. 101 = 24 * 4 + 5, a = 101, b = 24, <strong>q = 4<\/strong>, r = 5<br \/>3. 24 = 5 *<strong><em>\u00a0<\/em><\/strong>4 + 4,         a = 24, b = 5, <strong>q = 4<\/strong>, r = 4<br \/>4. 5 = 4 *<strong><em> <\/em><\/strong>1 + 1,a = 5, b = 4, <strong>q = 1<\/strong>, r = 1<br \/>5. 4 = 1 *<strong><em> <\/em><\/strong>4 + 0.a = 4, <strong>b = 1<\/strong>, q = 4, r = 0<\/p>\n<p>\u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e <strong>r<\/strong> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0430\u0432\u0435\u043d 0, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f b. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, <strong>\u041d\u041e\u0414(a, b) = 1<\/strong>. \u0412\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 &#8212; \u044d\u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0432 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043d\u0435 \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u041d\u041e\u0414 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 <strong>q<\/strong> \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 <strong>x<\/strong> \u0438 <strong>y<\/strong> \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<p><strong>x<sub>i<\/sub> = x<sub>i-2<\/sub> &#8212; q<sub>i-2<\/sub> * x<sub>i-1<\/sub><\/strong><\/p>\n<p>1. x<sub>0<\/sub> = 1, <br \/>2. x<sub>1<\/sub> = 0,<br \/>3. x<sub>2<\/sub> = 1 &#8212; 0 * 0 = 1       (q<sub>0<\/sub> = 0)<br \/>4. x<sub>3<\/sub> = 0 &#8212; 4 * 1 = -4      (q<sub>1<\/sub> = 4)<br \/>5. x<sub>4<\/sub> = 1 &#8212; 4 * -4 = 17    (q<sub>2<\/sub> = 4)<br \/>6. x<sub>5<\/sub> = -4 &#8212; 1 * 17 = -21 (q<sub>3<\/sub> = 1)<\/p>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c, \u0447\u0442\u043e <strong>x<sub>5<\/sub> \u2261 a<sup>-1<\/sup> (mod 101)<\/strong>, \u0442.\u043a. a * x<sub>5<\/sub> = 24 * (-21) = -504 <strong>\u2261<\/strong> 1 (mod 101). \u041c\u044b \u0431\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0433\u043b\u0438 \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 y, \u043d\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u043e, \u0435\u0441\u043b\u0438 \u043d\u0430\u0448\u0435\u0439 \u0446\u0435\u043b\u044c\u044e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 <strong>a<sup>-1<\/sup><\/strong> \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e <strong>b<\/strong>, \u0442.\u043a. <strong>yb (mod b)<\/strong> <strong>\u2261 0<\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0434\u043b\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">extern uint64_t inv_number(uint64_t a, uint64_t b) {     uint64_t tx = 0, x0 = 1, x1 = 0;     uint64_t q = 0, r = 0;     uint64_t tb = b;      while (b != 0) {         q = a \/ b;         r = a % b;         tx = x0 - q * x1;         a = b;         b = r;         x0 = x1;         x1 = tx;     }      return (x0 + tb) % tb; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0437\u043d\u0430\u044f \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u044f \u0432\u0441\u0451 \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044e \u0441\u0430\u043c\u043e\u0433\u043e \u0410\u0444\u0444\u0438\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0410\u0444\u0444\u0438\u043d\u043d\u043e\u043c \u0448\u0438\u0444\u0440\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a <strong>E<sub>k<\/sub>(m) \u2261 (am<sub>i<\/sub>+b) (mod n)<\/strong>, \u0433\u0434\u0435<strong> k = (a, b)<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (<strong>-b<\/strong>) \u0438 (<strong>a<sup>-1<\/sup><\/strong>) \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e: <strong>D<sub>k<\/sub>(c) \u2261 a<sup>-1<\/sup>(c<sub>i<\/sub>-b) (mod n)<\/strong>. \u0418\u0437 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0447\u0438\u0441\u043b\u043e <strong>a<\/strong> \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043d\u043e\u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441 \u0447\u0438\u0441\u043b\u043e <strong>n<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>a<sup>-1<\/sup><\/strong>, \u0438\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438 <strong>\u041d\u041e\u0414(a, n) = 1<\/strong>. \u0415\u0441\u043b\u0438 <strong>a=1<\/strong>, \u0442\u043e \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>a<sup>-1<\/sup><\/strong> \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0432\u043d\u043e <strong>1<\/strong>, \u0432\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u0447\u0435\u0433\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u0443\u043f\u0440\u043e\u0449\u0430\u044e\u0442\u0441\u044f \u0434\u043e <strong>E<sub>k<\/sub>(m) \u2261 m<sub>i<\/sub>+b (mod n)<\/strong> \u0438 <strong>D<sub>k<\/sub>(c) \u2261 c<sub>i<\/sub>-b (mod n)<\/strong>, \u0433\u0434\u0435 \u0410\u0444\u0444\u0438\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f.<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m=5, a=4, b=8, n=29<\/strong>, \u0442\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c: <strong>(4*5+8) \u2261 28 (mod 29)<\/strong>. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 <strong>4<sup>-1<\/sup><\/strong> \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e <strong>29<\/strong>. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043b\u0438\u0431\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u043c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 (\u043a\u0430\u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b), \u043b\u0438\u0431\u043e \u043c\u0430\u043b\u043e\u0439 \u0442\u0435\u043e\u0440\u0435\u043c\u043e\u0439 \u0424\u0435\u0440\u043c\u0430 (\u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0447\u0438\u0441\u043b\u043e 29 &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0447\u0438\u0441\u043b\u043e). \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c <strong>4<sup>-1<\/sup> \u2261 22 (mod 29)<\/strong>. \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, <strong>4*22 = 88 \u2261 1 (mod 29)<\/strong>. \u0422\u0435\u043f\u0435\u0440\u044c, \u0432\u0441\u0451 \u0447\u0442\u043e \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f &#8212; \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0444\u043e\u0440\u043c\u0443\u043b\u0443 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f: <strong>22*(28-8) = 440 \u2261 5 (mod 29)<\/strong>. <\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0410\u0444\u0444\u0438\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">#include \"encoder.h\"  #include &lt;stdio.h> #include &lt;stdint.h> #include &lt;stdlib.h> #include &lt;string.h>  typedef struct aphine_t {     encoder_t *encoder;     int32_t key_a;     int32_t key_b; } aphine_t;  extern aphine_t *aphine_new(encoder_t *encoder, uint32_t key_a, uint32_t key_b); extern void aphine_free(aphine_t *aphine);  extern uint8_t *aphine_encrypt(aphine_t *aphine, uint8_t *output, uint8_t *input); extern uint8_t *aphine_decrypt(aphine_t *aphine, uint8_t *output, uint8_t *input);  extern uint64_t gcd(uint64_t a, uint64_t b); extern uint64_t inv_number(uint64_t a, uint64_t b);  static uint8_t *encrypt_string(aphine_t *aphine, encmode_t m, uint8_t *output, uint8_t *input);  static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t key_a, int32_t key_b); static int32_t decrypt_code(encoder_t *encoder, int32_t c, int32_t key_a, int32_t key_b);  int main(int argc, char *argv[]) {     uint8_t alphabet[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";     uint8_t size_alph = (uint8_t)strlen((char*)alphabet);      encoder_t *encoder = encoder_new(size_alph);     encoder_set_alphabet(encoder, alphabet);      uint8_t message[BUFSIZ];     strcpy((char*)message, \"HELLOWORLD\");      aphine_t *aphine = aphine_new(encoder, 3, 7);      printf(\"%s\\n\", (char*)aphine_encrypt(aphine, message, message));     printf(\"%s\\n\", (char*)aphine_decrypt(aphine, message, message));      aphine_free(aphine);     encoder_free(encoder);     return 0; }  extern aphine_t *aphine_new(encoder_t *encoder, uint32_t key_a, uint32_t key_b) {     uint8_t size = encoder_get_size_alphabet(encoder);     if (gcd(key_a, size) != 1) {         return NULL;     }      aphine_t *aphine = (aphine_t*)malloc(sizeof(aphine_t));         aphine->encoder = encoder;     aphine->key_a = key_a;     aphine->key_b = key_b;      return aphine;  }  extern void aphine_free(aphine_t *aphine) {     free(aphine); }  extern uint8_t *aphine_encrypt(aphine_t *aphine, uint8_t *output, uint8_t *input) {     return encrypt_string(aphine, MODE_ENC, output, input); }  extern uint8_t *aphine_decrypt(aphine_t *aphine, uint8_t *output, uint8_t *input) {     return encrypt_string(aphine, MODE_DEC, output, input); }  static uint8_t *encrypt_string(aphine_t *aphine, encmode_t m, uint8_t *output, uint8_t *input) {     size_t input_len = strlen((char*)input);     int encoded_ch, encrypted, flag;      for (int i = 0; i &lt; input_len; i++) {         encoded_ch = encoder_encode(aphine->encoder, input[i], &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined char %c;\\n\", input[i]);             return NULL;         }          switch (m) { \/\/ m = {-1, 1}             case MODE_ENC:                 encrypted = encrypt_code(aphine->encoder, encoded_ch, aphine->key_a, aphine->key_b);             break;             case MODE_DEC:                 encrypted = decrypt_code(aphine->encoder, encoded_ch, aphine->key_a, aphine->key_b);             break;         }          output[i] = encoder_decode(aphine->encoder, encrypted, &amp;flag);         if (flag == 0) {             fprintf(stderr, \"undefined code %c;\\n\", encrypted);             return NULL;         }     }      output[input_len] = '\\0';     return output; }  static int32_t encrypt_code(encoder_t *encoder, int32_t c, int32_t key_a, int32_t key_b) {     uint8_t size = encoder_get_size_alphabet(encoder);     return (key_a*c+key_b+size)%size; }  static int32_t decrypt_code(encoder_t *encoder, int32_t c, int32_t key_a, int32_t key_b) {     uint8_t size = encoder_get_size_alphabet(encoder);     int32_t inv_key_a = inv_number(key_a, size);      return ((c-key_b+size)*inv_key_a+size)%size; }  extern uint64_t gcd(uint64_t a, uint64_t b) {     uint64_t t;     while (b != 0) {         t = a % b;         a = b;         b = t;             }     return a; }  extern uint64_t inv_number(uint64_t a, uint64_t b) {     uint64_t tx = 0, x0 = 1, x1 = 0;     uint64_t q = 0, r = 0;     uint64_t tb = b;      while (b != 0) {         q = a \/ b;         r = a % b;         tx = x0 - q * x1;         a = b;         b = r;         x0 = x1;         x1 = tx;     }      return (x0 + tb) % tb; } <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>5. \u0428\u0438\u0444\u0440 \u0425\u0438\u043b\u043b\u0430<\/h4>\n<p>\u0414\u0430\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u043b\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u0435\u0439. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0448\u0438\u0444\u0440\u0430 \u041f\u043e\u0440\u0442\u044b \u0438\u043b\u0438 \u0448\u0438\u0444\u0440\u0430 \u041f\u043b\u0435\u0439\u0444\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u043c\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0448\u0438\u0444\u0440 \u0425\u0438\u043b\u043b\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439, \u0432 \u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0447\u0442\u043e \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u0431\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c, \u0438 \u0442\u0440\u0438\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c, \u0438 \u0442.\u0434.<\/p>\n<p>\u0424\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u0448\u0438\u0444\u0440\u0435 \u0425\u0438\u043b\u043b\u0430 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a <strong>E<sub>K<\/sub>(M) \u2261 KM (mod n)<\/strong>, \u0433\u0434\u0435 <strong>K<\/strong> &#8212; \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u0430\u044f \u043a\u043b\u044e\u0447-\u043c\u0430\u0442\u0440\u0438\u0446\u0430, <strong>M<\/strong> &#8212; \u0431\u043b\u043e\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430. \u0411\u043b\u043e\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u0440\u0430\u0442\u0435\u043d \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u043c\u0430\u0442\u0440\u0438\u0446\u044b. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043a\u043b\u044e\u0447-\u043c\u0430\u0442\u0440\u0438\u0446\u0430 K \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u043a\u0430\u043a \u043c\u0430\u0442\u0440\u0438\u0446\u0430 <strong>3&#215;3<\/strong>, \u0442\u043e \u0441\u0430\u043c\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0440\u0430\u0442\u043d\u044b\u0439 \u0442\u0440\u0451\u043c. \u0414\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b <strong>K<sup>-1<\/sup><\/strong>, \u0442\u0430\u043a\u043e\u0439 \u0447\u0442\u043e <strong>D<sub>K<\/sub>(C) \u2261 K<sup>-1<\/sup>C \u2261 M (mod n)<\/strong>. <\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u043b\u044e\u0447-\u043c\u0430\u0442\u0440\u0438\u0446\u0430 K 3&#215;3 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430.<\/p>\n<pre><code>K =      [ 8  4  3]     [11  7 15]     [ 5 23 13]<\/code><\/pre>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u043b\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b <strong>K<\/strong> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0435\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 <strong>K<sup>-1<\/sup><\/strong>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0434\u0432\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e, \u0447\u0442\u043e <strong>detK\u22600<\/strong> \u0438 <strong>\u041d\u041e\u0414(detK, n)=1<\/strong>, \u0433\u0434\u0435 <strong>detK<\/strong> &#8212; \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u044b <strong>K<\/strong>.<\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d \u0447\u0435\u0440\u0435\u0437 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f <strong>A<sub>ij<\/sub><\/strong>. \u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0444\u043e\u0440\u043c\u0443\u043b\u044b \u043f\u0440\u043e\u0449\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0447\u0435\u0440\u0435\u0437 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0438, \u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438 3&#215;3. \u041a\u043e\u0433\u0434\u0430 \u0436\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u043e\u0439 4&#215;4, 5&#215;5 \u0438 \u0442.\u0434., \u0442\u043e \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <strong>detK = a<sub>11<\/sub>A<sub>11<\/sub>+a<sub>12<\/sub>A<sub>12<\/sub>+&#8230;+a<sub>1n<\/sub>A<sub>1n<\/sub><\/strong>., \u0433\u0434\u0435 <strong>a<sub>ij<\/sub><\/strong> &#8212; \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0442\u0440\u0438\u0446\u044b, <strong>A<sub>ij<\/sub><\/strong> &#8212; \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 <strong>A<sub>ij<\/sub> = (-1)<sup>i+j<\/sup>M<sub>ij<\/sub><\/strong>, \u0433\u0434\u0435 <strong>M<sub>ij<\/sub><\/strong> &#8212; \u043c\u0438\u043d\u043e\u0440 \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0430. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0430\u0442\u0440\u0438\u0446 2&#215;2 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435: <strong>a<sub>11<\/sub>a<sub>22<\/sub>-a<sub>21<\/sub>a<sub>12<\/sub><\/strong>.<\/p>\n<details class=\"spoiler\">\n<summary>\u0412\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0432\u044b\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u0430\u043c\u043e \u0436\u0435 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043f\u0440\u0438\u0432\u043e\u0434\u044f \u043a \u043c\u0435\u043d\u044c\u0448\u0435\u043c\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u043c\u0430\u0442\u0440\u0438\u0446\u044b. <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b07\/8fc\/21e\/b078fc21e0affd13ca570004cdd4265e.png\" alt=\"\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 A11\" title=\"\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 A11\" width=\"209\" height=\"137\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b07\/8fc\/21e\/b078fc21e0affd13ca570004cdd4265e.png\"\/><\/p>\n<div><figcaption>\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<strong> A<sub>11<\/sub><\/strong><\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f <strong>A<sub>11<\/sub><\/strong> \u043c\u044b \u0431\u044b \u0443\u0431\u0440\u0430\u043b\u0438 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u043e\u0441\u0442\u0430\u0432\u0438\u0432 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 2&#215;2. \u041d\u0430 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 2&#215;2 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0443\u0436\u0435 \u043c\u0438\u043d\u043e\u0440 <strong>M<sub>11<\/sub><\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u044b, \u043a\u0430\u043a <strong>7*13-23*15<\/strong>.<\/p>\n<p>\u0418 \u0442\u0430\u043a \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u0430\u043b\u0435\u0435.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c1b\/e8a\/3aa\/c1be8a3aa226df9ba52db9bf4fa9fe74.png\" alt=\"\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 A12\" title=\"\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 A12\" width=\"209\" height=\"137\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c1b\/e8a\/3aa\/c1be8a3aa226df9ba52db9bf4fa9fe74.png\"\/><\/p>\n<div><figcaption>\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<strong> A<sub>12<\/sub><\/strong><\/figcaption><\/div>\n<\/figure>\n<\/div>\n<\/details>\n<p>\u0418 \u0442\u0430\u043a, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u044b <strong>detK<\/strong> \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a <strong>8*A<sub>11<\/sub>+4*A<sub>12<\/sub>+3*A<sub>13<\/sub><\/strong>, \u0433\u0434\u0435 <br \/><strong>A<sub>11 <\/sub>= (-1)<sup>1+1<\/sup>*(7*13-23*15) = -254<\/strong>, <br \/><strong>A<sub>12 <\/sub>= (-1)<sup>1+2<\/sup>*(11*13-5*15) = -68<\/strong>, <br \/><strong>A<sub>13 <\/sub>= (-1)<sup>1+3<\/sup>*(11*13-5*7) = 218<\/strong>. <\/p>\n<p>\u0418\u0442\u043e\u0433\u043e, <strong>detK = 8*(-254)+4*(-68)+3*218 = -1650 \u2261 3 (mod 29)<\/strong> <strong>\u21d2<\/strong> <strong>3\u22600<\/strong> \u0438 <strong>\u041d\u041e\u0414(3, 29)=1<\/strong>, \u0437\u043d\u0430\u0447\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. \u0415\u0441\u043b\u0438 \u0431\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e, \u0442\u043e\u0433\u0434\u0430 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043b\u0438\u0431\u043e \u0441\u0430\u043c\u0443 \u043c\u0430\u0442\u0440\u0438\u0446\u0443 <strong>K<\/strong>, \u043b\u0438\u0431\u043e \u043c\u043e\u0434\u0443\u043b\u044c <strong>n<\/strong>.<\/p>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0434\u0432\u0443\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f\u043c: 1) \u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044e \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b, 2) \u043a \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044e \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439.<\/p>\n<p>\u041e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043b\u0438\u0431\u043e \u043f\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u043e\u043c\u0443 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 \u0415\u0432\u043a\u043b\u0438\u0434\u0430, \u043b\u0438\u0431\u043e \u043f\u043e \u043c\u0430\u043b\u043e\u0439 \u0442\u0435\u043e\u0440\u0435\u043c\u0435 \u0424\u0435\u0440\u043c\u0430 (\u0442.\u043a. n=29 &#8212; \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u0447\u0438\u0441\u043b\u043e). \u0414\u043b\u044f \u0447\u0438\u0441\u043b\u0430 3 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f <strong>3<sup>-1<\/sup> \u2261 10 (mod 29)<\/strong>, \u0442.\u043a. <strong>3*10 \u2261 1 (mod 29)<\/strong>.<\/p>\n<p>\u041e\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043a\u0430\u043a \u0438 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b.<br \/><strong>A<sub>21 <\/sub>= (-1)<sup>2+1<\/sup>*(4*13-23*3) = 17<\/strong>, <br \/><strong>A<sub>22 <\/sub>= (-1)<sup>2+2<\/sup>*(8*13-5*3) = 89<\/strong>, <br \/><strong>A<sub>23 <\/sub>= (-1)<sup>2+3<\/sup>*(8*23-5*4) = -164<\/strong>, <br \/><strong>A<sub>31 <\/sub>= (-1)<sup>3+1<\/sup>*(4*15-7*3) = 39<\/strong>, <br \/><strong>A<sub>32 <\/sub>= (-1)<sup>3+2<\/sup>*(8*15-11*3) = -87<\/strong>, <br \/><strong>A<sub>33 <\/sub>= (-1)<sup>3+3<\/sup>*(8*7-11*4) = 12<\/strong>. <\/p>\n<p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0432 \u0432\u0441\u0435 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043e\u044e\u0437\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 A*. \u0421\u043e\u044e\u0437\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0432\u043e\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f, \u043d\u043e \u0432 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435.<\/p>\n<pre><code>A* =      [A11 A21 A31]     [A12 A22 A32]     [A13 A23 A33] =     [-254   17  39]     [ -68   89 -87]     [ 218 -164  12] \u2261     [ 7 17 10]     [19  2  0]     [15 10 12] (mod 29)<\/code><\/pre>\n<p>\u0412 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u0435: <strong>K<sup>-1<\/sup>=detK<sup>-1<\/sup>A*<\/strong>.<\/p>\n<pre><code>inv(K) = inv(detK)*(A*) =     [ 10*7 10*17 10*10]     [10*19  10*2  10*0]     [10*15 10*10 10*12] =     [ 70 170 100]     [190  20  0]     [150 100 120] \u2261     [12 25 13]     [16 20  0]     [ 5 13  4] (mod 29)<\/code><\/pre>\n<p>\u0412\u044b\u0447\u0438\u0441\u043b\u0438\u0432 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043c\u044b \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 M=HDI, \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0432 \u0435\u0433\u043e, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0447\u0438\u0441\u043b\u0430 (7, 3, 8) (\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 A=0, B=1, C=2, &#8230;, X=23, Y=24, Z=25). <\/p>\n<pre><code>C = KM     [ 8  4  3][7]     [11  7 15][3]     [ 5 23 13][8] =     [8*7  + 4*3  + 3*8]     [11*7 + 7*3  + 15*8]     [5*7  + 23*3 + 13*8] =     [92]     [218]     [208] \u2261     [5]     [15]     [5] (mod 29)<\/code><\/pre>\n<p>\u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043c\u0435\u0441\u0442\u043e <strong>K<\/strong> \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u043c\u0430\u0442\u0440\u0438\u0446\u0443 <strong>K<sup>-1<\/sup><\/strong>. <\/p>\n<pre><code>M = inv(K)C     [12 25 13][5]     [16 20  0][15]     [ 5 13  4][5] =     [12*5 + 25*15 + 13*5]     [16*5 + 25*15 + 0*5]     [5*5  + 13*15 + 4*5] =     [500]     [380]     [240] \u2261     [7]     [3]     [8] (mod 29)<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0425\u0438\u043b\u043b\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">#include \"encoder.h\"  #include &lt;stdio.h> #include &lt;stdint.h> #include &lt;stdlib.h> #include &lt;string.h>  typedef struct hill_t {     encoder_t *encoder;     int32_t **matrix;     int32_t **inv_matrix;     uint8_t matrix_size; } hill_t;  extern hill_t *hill_new(encoder_t *encoder, uint8_t matrix_size, int32_t **matrix); extern void hill_free(hill_t *hill);  extern uint8_t *hill_encrypt(hill_t *hill, uint8_t *output, uint8_t *input); extern uint8_t *hill_decrypt(hill_t *hill, uint8_t *output, uint8_t *input);  extern uint64_t gcd(uint64_t a, uint64_t b); extern uint64_t inv_number(uint64_t a, uint64_t b);  static int32_t **matrix_new(uint8_t matrix_size); static void matrix_free(int32_t **matrix, uint8_t matrix_size);  static uint8_t *encrypt_string(hill_t *hill, encmode_t m, uint8_t *output, uint8_t *input);  static int32_t math_mod(int32_t x, int32_t y); static void mul_matrix_with_vector_mod(int32_t **matrix, int32_t matrix_size, int32_t *vector, int32_t mod); static void mul_matrix_with_number_mod(int32_t **matrix, uint8_t matrix_size, int32_t number, int32_t mod); static void set_algebraic_additions_mod(int32_t **out_matrix, int32_t **in_matrix, uint8_t matrix_size, int32_t mod); static int32_t get_algebraic_addition(int32_t **in_matrix, uint8_t matrix_size, int32_t i, int32_t j); static int32_t **get_minor(int32_t **in_matrix, uint8_t matrix_size, int32_t i, int32_t j, int32_t *res); static int32_t get_determinant(int32_t **in_matrix, uint8_t matrix_size);  \/*     [ 8  4  3]     [11  7 15]     [ 5 23 13] *\/ static void _fill_matrix(int32_t **matrix) {     matrix[0][0] = 8;     matrix[0][1] = 4;     matrix[0][2] = 3;      matrix[1][0] = 11;     matrix[1][1] = 7;     matrix[1][2] = 15;      matrix[2][0] = 5;     matrix[2][1] = 23;     matrix[2][2] = 13; }  int main(int argc, char *argv[]) {     uint8_t alphabet[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,!\";     uint8_t size_alph = (uint8_t)strlen((char*)alphabet);      encoder_t *encoder = encoder_new(size_alph);     encoder_set_alphabet(encoder, alphabet);      uint8_t message[BUFSIZ];     strcpy((char*)message, \"HDI\");      uint8_t matrix_size = 3;     int32_t **matrix = matrix_new(matrix_size);     _fill_matrix(matrix);      hill_t *hill = hill_new(encoder, matrix_size, matrix);      printf(\"%s\\n\", (char*)hill_encrypt(hill, message, message));     printf(\"%s\\n\", (char*)hill_decrypt(hill, message, message));      hill_free(hill);     matrix_free(matrix, matrix_size);        encoder_free(encoder);     return 0; }  extern hill_t *hill_new(encoder_t *encoder, uint8_t matrix_size, int32_t **matrix) {     int32_t mod = encoder_get_size_alphabet(encoder);     int32_t det = get_determinant(matrix, matrix_size);     if (det == 0 || gcd(det, mod) != 1) {         return NULL;     }      hill_t *hill = (hill_t*)malloc(sizeof(hill_t));     hill->encoder = encoder;      hill->matrix_size = matrix_size;     hill->matrix = matrix_new(matrix_size);     hill->inv_matrix = matrix_new(matrix_size);      for (int i = 0; i &lt; matrix_size; ++i) {         for (int j = 0; j &lt; matrix_size; ++j) {             hill->matrix[i][j] = matrix[i][j];         }     }      set_algebraic_additions_mod(hill->inv_matrix, hill->matrix, matrix_size, mod);     mul_matrix_with_number_mod(hill->inv_matrix, matrix_size, inv_number(math_mod(det, mod), mod), mod);     return hill;  }  static int32_t math_mod(int32_t x, int32_t mod) {     return ((x%mod)+mod)%mod; }  static void mul_matrix_with_vector_mod(int32_t **matrix, int32_t matrix_size, int32_t *vector, int32_t mod) {     int32_t orig_vector[matrix_size];     for (int i = 0; i &lt; matrix_size; ++i) {         orig_vector[i] = vector[i];     }      for (int i = 0; i &lt; matrix_size; ++i) {         int32_t s = 0;         for (int j = 0; j &lt; matrix_size; ++j) {             s += math_mod(matrix[i][j]*orig_vector[j], mod);         }         vector[i] = math_mod(s, mod);     } }  static void mul_matrix_with_number_mod(int32_t **matrix, uint8_t matrix_size, int32_t number, int32_t mod) {     for (int i = 0; i &lt; matrix_size; ++i) {         for (int j = 0; j &lt; matrix_size; ++j) {             matrix[i][j] = math_mod(matrix[i][j]*number, mod);         }     } }  static void set_algebraic_additions_mod(int32_t **out_matrix, int32_t **in_matrix, uint8_t matrix_size, int32_t mod) {     for (int i = 0; i &lt; matrix_size; ++i) {         for (int j = 0; j &lt; matrix_size; ++j) {             \/\/ i,j => j,i: matrix transposition             out_matrix[j][i] = math_mod(get_algebraic_addition(in_matrix, matrix_size, i, j), mod);         }     } }  \/\/ \u0417\u0434\u0435\u0441\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. \/\/ \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0444\u0443\u043d\u043a\u0446\u0438\u044f get_algebraic_addition \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 get_minor, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \/\/ \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 get_determinant. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \/\/ \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043d\u043e\u0432\u044c get_algebraic_addition, \u043d\u043e \u0441 \u043c\u0435\u043d\u044c\u0448\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u0438\u0437 get_minor. static int32_t get_algebraic_addition(int32_t **in_matrix, uint8_t matrix_size, int32_t i, int32_t j) {     int res;     int32_t **matrix = get_minor(in_matrix, matrix_size, i, j, &amp;res);     matrix_free(matrix, matrix_size-1);     return (((i+j) % 2 == 0) ? 1 : -1) * res; }  static int32_t **get_minor(int32_t **in_matrix, uint8_t matrix_size, int32_t i, int32_t j, int32_t *res) {     if (matrix_size &lt;= 2) {         *res = get_determinant(in_matrix, matrix_size);         return NULL;     }          uint8_t minor_matrix_size = matrix_size-1;     int32_t **minor_matrix = (int32_t **)matrix_new(minor_matrix_size);      int32_t im = 0, jm = 0;     for (int _i = 0; _i &lt; matrix_size; ++_i) {         if (_i == i) {             continue;         }         for (int _j = 0; _j &lt; matrix_size; ++_j) {             if (_j == j) {                 continue;             }             minor_matrix[im][jm] = in_matrix[_i][_j];             jm = (jm+1) % minor_matrix_size;         }         ++im;     }      *res = get_determinant(minor_matrix, minor_matrix_size);     return minor_matrix; }  static int32_t get_determinant(int32_t **in_matrix, uint8_t matrix_size) {     if (matrix_size &lt; 2) {         return 0;     }     if (matrix_size == 2) {         return in_matrix[0][0]*in_matrix[1][1]-in_matrix[1][0]*in_matrix[0][1];     }     int32_t det = 0;     for (int i = 0; i &lt; matrix_size; ++i) {         det += in_matrix[0][i]*get_algebraic_addition(in_matrix, matrix_size, 0, i);     }     return det; }  extern void hill_free(hill_t *hill) {     matrix_free(hill->matrix, hill->matrix_size);     free(hill); }  extern uint8_t *hill_encrypt(hill_t *hill, uint8_t *output, uint8_t *input) {     return encrypt_string(hill, MODE_ENC, output, input); }  extern uint8_t *hill_decrypt(hill_t *hill, uint8_t *output, uint8_t *input) {     return encrypt_string(hill, MODE_DEC, output, input); }  static uint8_t *encrypt_string(hill_t *hill, encmode_t m, uint8_t *output, uint8_t *input) {     uint8_t mod = encoder_get_size_alphabet(hill->encoder);      size_t input_len = strlen((char*)input);     int32_t encoded_ch, flag;      int32_t *vector = (int32_t*)malloc(sizeof(int32_t)*hill->matrix_size);     for (int i = 0; i &lt; input_len; i += hill->matrix_size) {         for (int j = 0; j &lt; hill->matrix_size; ++j) {             encoded_ch = encoder_encode(hill->encoder, input[i+j], &amp;flag);             if (flag == 0) {                 fprintf(stderr, \"undefined char %c;\\n\", input[i]);                 return NULL;             }             vector[j] = encoded_ch;         }         switch(m) {             case MODE_ENC:                 mul_matrix_with_vector_mod(hill->matrix, hill->matrix_size, vector, mod);             break;             case MODE_DEC:                 mul_matrix_with_vector_mod(hill->inv_matrix, hill->matrix_size, vector, mod);             break;         }         for (int j = 0; j &lt; hill->matrix_size; ++j) {             output[i+j] = encoder_decode(hill->encoder, vector[j], &amp;flag);             if (flag == 0) {                 fprintf(stderr, \"undefined char %c;\\n\", input[i]);                 return NULL;             }         }     }          return output; }  extern uint64_t gcd(uint64_t a, uint64_t b) {     uint64_t t;     while (b != 0) {         t = a % b;         a = b;         b = t;             }     return a; }  extern uint64_t inv_number(uint64_t a, uint64_t b) {     uint64_t tx = 0, x0 = 1, x1 = 0;     uint64_t q = 0, r = 0;     uint64_t tb = b;      while (b != 0) {         q = a \/ b;         r = a % b;         tx = x0 - q * x1;         a = b;         b = r;         x0 = x1;         x1 = tx;     }      return (x0 + tb) % tb; }  static int32_t **matrix_new(uint8_t matrix_size) {     int32_t **matrix = malloc(sizeof(int32_t*)*matrix_size);     for (int i = 0; i &lt; matrix_size; ++i) {         matrix[i] = (int32_t*)malloc(sizeof(int32_t)*matrix_size);     }     return matrix; }  static void matrix_free(int32_t **matrix, uint8_t matrix_size) {     for (int i = 0; i &lt; matrix_size; ++i) {         free(matrix[i]);     }     free(matrix); } <\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h4>6. \u0428\u0438\u0444\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/h4>\n<p>\u0428\u0438\u0444\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0447\u0430\u0449\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043b\u0451\u0433\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0447\u0435\u043c \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u044c\u044e, \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u043d\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\u0445. <\/p>\n<p>\u0412 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u0447\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0431\u043b\u0430\u0434\u0430\u0442\u044c <strong>b!<\/strong> \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043a\u043b\u044e\u0447\u0435\u0439, \u0433\u0434\u0435 <strong>b<\/strong> &#8212; \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c <strong>d<\/strong>. \u0412\u0442\u043e\u0440\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438\u0448\u044c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043f\u0440\u0438 \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u043e\u043c \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0438 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u0438\u0437 <strong>b!<\/strong>.<\/p>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0441\u0430\u043c\u0443\u044e \u043b\u0451\u0433\u043a\u0443\u044e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442 \u0432\u043b\u0435\u0432\u043e \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0442\u0435\u043a\u0441\u0442\u0430. \u041f\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 &#8212; \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043a\u043b\u044e\u0447\u0430 \u0432 \u0448\u0438\u0444\u0440\u0435 \u0426\u0435\u0437\u0430\u0440\u044f. <\/p>\n<pre><code>( 1 2 3 4 5 ) ( 2 3 4 5 1 ) = (1 2 3 4 5)   [...->(1)->(2)->(3)->(4)->(5)->(1)->(2)->(3)->(4)->(5)->...]<\/code><\/pre>\n<p>\u041d\u0430 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u0435, \u0442\u0430\u043a\u0430\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043e\u0431\u043b\u0430\u0434\u0430\u0435\u0442 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c <strong>d=5<\/strong>. \u041d\u043e \u0441\u0442\u043e\u0438\u0442 \u0437\u0434\u0435\u0441\u044c \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>WORLD<\/strong> \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0442\u0430\u043d\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c <strong>ORLDW<\/strong>. \u0422\u0430\u043a\u0430\u044f \u0441\u043b\u0430\u0431\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0441\u0442\u044c\u044e (\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c\u044e) \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u043c \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c. \u041f\u043e\u0434\u043e\u0431\u043d\u0443\u044e \u043b\u0438\u043d\u0435\u0439\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043b\u0438\u0448\u044c \u043e\u0434\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0443\u043b\u043e\u0439 <strong>E(m) \u2261 m+1 (mod n)<\/strong>.<\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443, \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u0443\u044e \u0438\u0437 \u0432\u0441\u0435\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043a\u043b\u044e\u0447\u0435\u0439 <strong>5!<\/strong>.<\/p>\n<pre><code>( 1 2 3 4 5 ) ( 3 4 1 5 2 ) = (1 3)(2 4 5)   [...->(1)->(3)->(1)->(3)->...] [...->(2)->(4)->(5)->(2)->(4)->(5)->...]<\/code><\/pre>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u0440\u0443\u0433 \u043e\u0442 \u0434\u0440\u0443\u0433\u0430, \u0447\u0442\u043e \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u043c\u0430\u043b\u044b\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u044b <strong>d=2<\/strong> \u0438 <strong>d=3<\/strong>. \u042d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u0437 \u0432\u0441\u0435\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>5!<\/strong> \u0431\u0443\u0434\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439, \u043a\u0430\u043a \u043f\u0435\u0440\u0432\u0430\u044f \u043d\u0430\u043c\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0430\u044f (\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435 \u0432 \u043f\u043b\u0430\u043d\u0435 \u0434\u043b\u0438\u043d\u044b \u043f\u0435\u0440\u0438\u043e\u0434\u044b, \u0430 \u043d\u0435 \u043a\u0440\u0438\u043f\u0442\u043e\u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u0438).<\/p>\n<p>\u041c\u0430\u043b\u044b\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u044b \u0441\u043d\u0438\u0436\u0430\u044e\u0442 \u043a\u0440\u0438\u043f\u0442\u043e\u0441\u0442\u043e\u0439\u043a\u043e\u0441\u0442\u044c \u0432 \u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0447\u0442\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0430\u043b\u044b\u0445 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u043a\u043b\u044e\u0447\u0430 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u0435\u0435 \u043c\u0430\u043b\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0448\u0438\u0444\u0440\u044b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438\u0433\u0440\u0430\u044e\u0442 \u043d\u0430 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u0438\u0445 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e\u043c, \u0440\u043e\u0432\u043d\u043e \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u044e\u0442 \u043e\u043c\u043e\u0444\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0448\u0438\u0444\u0440\u044b.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"cpp\">#include &lt;stdio.h> #include &lt;stdint.h> #include &lt;stdlib.h> #include &lt;string.h>  typedef struct vertical_permutation_t {     uint8_t *key;     uint8_t *sorted_key;     uint32_t key_size; } vertical_permutation_t;  extern vertical_permutation_t *vertical_permutation_new(uint8_t *key); extern void vertical_permutation_free(vertical_permutation_t *vertical_permutation);  extern uint8_t *vertical_permutation_encrypt(vertical_permutation_t *vertical_permutation, uint8_t *output, uint8_t *input); extern uint8_t *vertical_permutation_decrypt(vertical_permutation_t *vertical_permutation, uint8_t *output, uint8_t *input);  static int find_index(uint8_t *arr, uint8_t v, int size); static int comp(const void * elem1, const void * elem2);  int main(int argc, char *argv[]) {     uint8_t encrypted[BUFSIZ];     uint8_t message[BUFSIZ];     strcpy((char*)message, \"HELLOWORLDXX\");      uint8_t key[BUFSIZ];     strcpy((char*)key, \"KEY\");      vertical_permutation_t *vertical_permutation = vertical_permutation_new(key);      printf(\"%s\\n\", (char*)vertical_permutation_encrypt(vertical_permutation, encrypted, message));     printf(\"%s\\n\", (char*)vertical_permutation_decrypt(vertical_permutation, message, encrypted));      vertical_permutation_free(vertical_permutation);     return 0; }  extern vertical_permutation_t *vertical_permutation_new(uint8_t *key) {     vertical_permutation_t *vertical_permutation = (vertical_permutation_t*)malloc(sizeof(vertical_permutation_t));         vertical_permutation->key_size = strlen((char*)key);     vertical_permutation->key = (uint8_t*)malloc(sizeof(uint8_t)*vertical_permutation->key_size+1);     vertical_permutation->sorted_key = (uint8_t*)malloc(sizeof(uint8_t)*vertical_permutation->key_size+1);      strcpy((char*)vertical_permutation->key, (char*)key);     strcpy((char*)vertical_permutation->sorted_key, (char*)key);      qsort(vertical_permutation->sorted_key, sizeof(uint8_t)*vertical_permutation->key_size, sizeof(uint8_t), comp);     return vertical_permutation;  }  extern void vertical_permutation_free(vertical_permutation_t *vertical_permutation) {     free(vertical_permutation->key);     free(vertical_permutation); }  extern uint8_t *vertical_permutation_encrypt(vertical_permutation_t *vertical_permutation, uint8_t *output, uint8_t *input) {     size_t input_len = strlen((char*)input); int index_key, output_i = 0;      if (input_len % vertical_permutation->key_size != 0) {         fprintf(stderr, \"input_len %% vertical_permutation->key_size != 0\");         return NULL;     }      for (int i = 0; i &lt; vertical_permutation->key_size; ++i) {         index_key = find_index(vertical_permutation->key, vertical_permutation->sorted_key[i], vertical_permutation->key_size);         for (int j = index_key; j &lt; input_len; j += vertical_permutation->key_size) {             output[output_i++] = input[j];         }     }      return output; }  extern uint8_t *vertical_permutation_decrypt(vertical_permutation_t *vertical_permutation, uint8_t *output, uint8_t *input) {     size_t input_len = strlen((char*)input); int index_key, output_i = 0;      if (input_len % vertical_permutation->key_size != 0) {         fprintf(stderr, \"input_len %% vertical_permutation->key_size != 0\");         return NULL;     }     for (int i = 0; i &lt; input_len; i += vertical_permutation->key_size) {         for (int j = index_key; j &lt; input_len; j += vertical_permutation->key_size) {             index_key = find_index(vertical_permutation->key, vertical_permutation->sorted_key[j], vertical_permutation->key_size);             output[output_i++] = input[j];         }     }      return output; }  static int find_index(uint8_t *arr, uint8_t v, int size) {     for (int i = 0; i &lt; size; ++i) {         if (arr[i] == v) {             return i;         }     }     return -1; }  static int comp(const void * elem1, const void * elem2) {     uint8_t f = *((uint8_t*)elem1);     uint8_t s = *((uint8_t*)elem2);     if (f > s) return  1;     if (f &lt; s) return -1;     return 0; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u043d\u0435 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0449\u0451 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f \u043d\u0435 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b \u0438\u043b\u0438 \u0437\u0430\u0442\u0440\u043e\u043d\u0443\u043b, \u043d\u043e \u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u043b\u0438\u0448\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0432 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435, \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u043c\u0438. <\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0433\u043b\u0430\u0432\u0430 \u0441\u0442\u0430\u043d\u0435\u0442 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439. \u0412 \u043d\u0435\u0439 \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u044f\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0439 \u0438 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u0430\u0445, \u043e\u0431 \u0438\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0438 \u0441\u0445\u0435\u043c\u0430\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438. \u0412\u0441\u0451 \u044d\u0442\u043e \u044f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u043c\u0438 \u043a\u043e\u0434\u0430\u043c\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u0421\u0438.<\/p>\n<h3>\u0421\u043f\u0438\u0441\u043e\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b<\/h3>\n<ol>\n<li>\n<p>\u0422\u0435\u043e\u0440\u0438\u044f \u0441\u0432\u044f\u0437\u0438 \u0432 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445. \u041a. \u0428\u0435\u043d\u043d\u043e\u043d<\/p>\n<\/li>\n<li>\n<p>\u041e\u0441\u043d\u043e\u0432\u044b \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0410. \u0410\u043b\u0444\u0435\u0440\u043e\u0432, \u0410. \u0417\u0443\u0431\u043e\u0432, \u0410. \u041a\u0443\u0437\u044c\u043c\u0438\u043d, \u0410. \u0427\u0435\u0440\u0435\u043c\u0443\u0448\u043a\u0438\u043d<\/p>\n<\/li>\n<li>\n<p>\u0422\u0435\u043e\u0440\u0435\u0442\u0438\u043a\u043e-\u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0432 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0415. \u041c\u0430\u0445\u043e\u0432\u0435\u043d\u043a\u043e<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f. \u0422\u0435\u043e\u0440\u0438\u044f \u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u0412. \u041c\u0430\u043e<\/p>\n<\/li>\n<li>\n<p>\u041e\u0441\u043d\u043e\u0432\u044b \u043a\u0440\u0438\u043f\u0442\u043e\u043b\u043e\u0433\u0438\u0438. \u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0438 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0443\u0447\u0435\u0431\u043d\u0438\u043a. \u0425. \u0422\u0438\u043b\u0431\u043e\u0440\u0433<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u0430\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430. \u041e\u0442 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0442\u043e\u0440\u0438\u043a\u0438 \u0434\u043e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 XXI \u0432\u0435\u043a\u0430. \u042e. \u0417\u0443\u0435\u0432<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/728908\/\"> https:\/\/habr.com\/ru\/articles\/728908\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0448\u0438\u0444\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043c\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043d\u0435\u044f\u0432\u043d\u043e, \u043d\u043e \u043f\u043e\u0432\u0441\u0435\u043c\u0435\u0441\u0442\u043d\u043e, \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0432 \u0445\u043e\u0434\u0435 \u0441\u0432\u043e\u0435\u0439 \u043c\u043d\u043e\u0433\u043e\u0432\u0435\u043a\u043e\u0432\u043e\u0439 \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438, \u0432 \u0445\u043e\u0434\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u044d\u0442\u0430\u043f\u043e\u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u044f. \u041a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0448\u0430\u0433 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043b \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043a \u0440\u0430\u0437\u0440\u0443\u0448\u0435\u043d\u0438\u044e \u0441\u0442\u0430\u0440\u044b\u0445 \u0443\u044f\u0437\u0432\u0438\u043c\u044b\u0445 \u0448\u0438\u0444\u0440\u043e\u0432 \u0438 \u043a \u043f\u043e\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044e \u043d\u043e\u0432\u044b\u0445, \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0445. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0441\u0430\u043c\u043e \u0440\u0430\u0437\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0440\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0432\u0441\u0435\u0433\u0434\u0430 \u0434\u0432\u043e\u044f\u043a\u043e \u0441\u0432\u0438\u0434\u0435\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u043a\u0430\u043a \u043e\u0431 \u0438\u0445 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043a\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043a\u043e\u0440\u0435\u043d\u044f\u0442\u044c, \u0442\u0430\u043a \u0438 \u043e\u0431 \u0438\u0445 \u0434\u043e\u0441\u0442\u043e\u0438\u043d\u0441\u0442\u0432\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c. \u0412 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u044d\u0442\u043e\u0433\u043e, \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439, \u0431\u043e\u043b\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0448\u0438\u0444\u0440, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u0441\u043e\u0431\u043e\u0439 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0435\u0437 \u0441\u0442\u0430\u0440\u044b\u0445, \u043c\u0435\u043d\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/post\/723392\/\" rel=\"noopener noreferrer nofollow\"><u>\u043f\u0435\u0440\u0432\u043e\u0439 \u0433\u043b\u0430\u0432\u044b<\/u><\/a>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b\u0438\u0441\u044c \u0448\u0438\u0444\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f. \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439, \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435 \u0435\u0451 \u043e\u0441\u043d\u043e\u0432\u044b, \u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0430\u043c \u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0433\u043b\u0430\u0432\u044b. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0432\u0430\u043c \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430 \u0438\u043b\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0431\u0435\u043b\u044b\u0435 \u043f\u044f\u0442\u043d\u0430, \u0442\u043e \u043c\u043e\u0433\u0443 \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u0443\u044e \u0433\u043b\u0430\u0432\u0443, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u044b\u0445 &#171;\u0434\u0435\u0442\u0430\u043b\u0435\u0439&#187; \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<p>\u041c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043a\u0430\u043a \u043f\u0440\u0435\u043f\u043e\u0434\u0430\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u0440\u0435\u0434\u043c\u0435\u0442\u0430 \u041a\u0421\u0417\u0418, \u0442\u0430\u043a \u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0442\u0443\u0434\u0435\u043d\u0442\u0430\u043c \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. \u0420\u043e\u0432\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0433\u043b\u0430\u0432\u0435, \u043a \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u043c \u0448\u0438\u0444\u0440\u0430\u043c (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e) \u044f \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0421\u0438. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b \u043f\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f.<\/p>\n<h2>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f<\/h2>\n<p>\u041f\u043e\u0434 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u0443\u044e \u0441\u0442\u0430\u0434\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f, \u0432 \u043d\u0435\u043a\u043e\u043c \u0440\u043e\u0434\u0435, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0435\u043c, \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u0435\u0440\u0435\u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438\u0437 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0430 (\u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0444\u043e\u0440\u043c\u044b) \u0432 \u043d\u0430\u0443\u043a\u0443 (\u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0444\u043e\u0440\u043c\u0443). \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0435\u0441\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u0441\u0442\u0440\u043e\u0433\u043e\u0439 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043a\u0430\u043a \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0435\u0433\u043e \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e, \u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u0431\u043e\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u0443 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u0430\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043c\u0435\u0440\u0435 \u043a \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u0447\u0435\u043c \u043a \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0430\u043c\u043e\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f \u0441\u0442\u0430\u0434\u0438\u044f \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438. <\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0436\u0435 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u0440\u0435\u0447\u0438\u0435 \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043c \u0444\u0430\u043a\u0442\u0435, \u0447\u0442\u043e \u0441\u0430\u043c\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0448\u0438\u0444\u0440\u043e\u0432 \u0440\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u043f\u043e\u0445\u0443 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0438 \u043f\u043b\u0430\u0432\u043d\u043e &#171;\u043f\u0435\u0440\u0435\u0442\u0435\u043a\u0430\u0435\u0442&#187; \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0448\u0438\u0444\u0440\u0430 \u0412\u0438\u0436\u0435\u043d\u0435\u0440\u0430 \u0434\u0430\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0435\u0449\u0451 1888 \u0433\u043e\u0434\u043e\u043c, \u0444\u0440\u0430\u043d\u0446\u0443\u0437\u043e\u043c \u043c\u0430\u0440\u043a\u0438\u0437 \u0434\u0435 \u0412\u0438\u0430\u0440\u0438, \u0425\u0438\u043b\u043b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0448\u0438\u0444\u0440, \u0431\u0430\u0437\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0430\u0442\u0440\u0438\u0446\u0430\u0445 \u0432 1929 \u0433\u043e\u0434\u0443, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b XX \u0432\u0435\u043a\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0440\u0430\u0431\u043e\u0442 \u0428\u0435\u043d\u043d\u043e\u043d\u0430. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0441\u043e\u0432\u043c\u0435\u0449\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043d\u043e \u0438 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439. \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u0443 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f (\u043d\u0430\u0440\u0430\u0432\u043d\u0435 \u0441 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0438\u043b\u0438 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439), \u043d\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043d\u0435\u043a\u0438\u0439 &#171;\u043c\u043e\u0441\u0442\u0438\u043a&#187;, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0422\u0430\u043a\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043d\u0430\u0441 \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044d\u043b\u043b\u0438\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u0440\u0438\u0432\u044b\u0435, \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u0434\u0430\u0447\u0430 \u0444\u0430\u043a\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u0434\u043d\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0442.\u0434. \u041d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0434\u0430\u043b\u0435\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0438 \u0430\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0442\u0435\u043c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438, \u043d\u043e \u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0439 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0434\u0430\u0436\u0435 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0438 \u0434\u0430\u0436\u0435 \u0432 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043c\u0435\u0440\u0435 \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f) \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438.<\/p>\n<h3>\u0410\u043b\u0433\u0435\u0431\u0440\u0430\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0448\u0438\u0444\u0440\u043e\u0432<\/h3>\n<p>\u041b\u044e\u0431\u043e\u0435 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0435 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u0432\u0438\u0434\u0435 \u0444\u043e\u0440\u043c\u0443\u043b\u044b <strong>C = E<sub>K<\/sub>(M)<\/strong>, \u0433\u0434\u0435 <strong>E<\/strong> &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, <strong>K<\/strong> &#8212; \u043a\u043b\u044e\u0447 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, <strong>M<\/strong> &#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442, <strong>C<\/strong> &#8212; \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0424\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0438 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445: <strong>E<sub>K<\/sub>: M\u21d2C<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>E<sub>K<\/sub><sup>-1<\/sup><\/strong> \u043a \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044e <strong>E<sub>K<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0443\u043b\u0430 \u0432\u0438\u0434\u0430 <strong>M = E<sub>K<\/sub><sup>-1<\/sup>(C)<\/strong>. \u0420\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0438 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445: <strong>E<sub>K<\/sub><sup>-1<\/sup>: C\u21d2M<\/strong>. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0442\u0430\u043a\u0436\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e <strong>M = E<sub>K<\/sub><sup>-1<\/sup>(E<sub>K<\/sub>(M))<\/strong>, \u0442\u043e-\u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0430 \u0437\u0430\u0442\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043c\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &#8212; \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0422\u0430\u043a\u043e\u0435 \u0441\u043b\u0438\u044f\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u043a\u0430\u043a \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <strong>E<sub>K<\/sub><\/strong>*<strong>E<sub>K<\/sub><sup>-1<\/sup><sub> <\/sub>= I<\/strong>, \u0433\u0434\u0435 <strong>I<\/strong> &#8212; \u0442\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>I(M) = M<\/strong>. \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c, \u043f\u043e\u0434 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f &#8212; \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <strong>D<sub>K <\/sub>= E<sub>K<\/sub><sup>-1<\/sup><\/strong>, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043b\u0451\u0433\u043a\u043e\u0433\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (<strong>E = Encrypt<\/strong>, <strong>D = Decrypt<\/strong>).<\/p>\n<p>\u0411\u043e\u043b\u0435\u0435 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0448\u0438\u0444\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a \u0441\u043e\u0432\u043e\u043a\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 <strong>\u2211(M, K, C, E, D)<\/strong> \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430:<\/p>\n<ol>\n<li>\n<p><strong>D<sub>k<\/sub>(E<sub>k<\/sub>(m))=m<\/strong> \u0434\u043b\u044f (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200m\u2208M<\/strong>, <strong>\u2200k\u2208K<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 <strong>m<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 <strong>M<\/strong> \u0438 \u043b\u044e\u0431\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430 <strong>k<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 <strong>K<\/strong> \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <strong>D<sub>k<\/sub>(E<sub>k<\/sub>(m)) = m<\/strong>.<\/p>\n<\/li>\n<li>\n<p><strong>C=\u22c3E<sub>k<\/sub>(m)<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e <strong>k<\/strong> \u0438 <strong>m<\/strong> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0443 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 <strong>C<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0421\u0442\u043e\u0438\u0442 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <strong>E<\/strong> \u0438 <strong>D<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u043d\u0435 \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \/ \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a <strong>k<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0432\u044b\u0431\u043e\u0440 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432 <strong>E<\/strong> \u0438 <strong>D<\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0448\u0438\u0444\u0440\u0435 \u0426\u0435\u0437\u0430\u0440\u044f \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c: 1) <strong>E<\/strong> \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <strong>k<\/strong> \u0432\u0438\u0434\u0430 <strong>E<sub>k<\/sub>(m) = m+k<\/strong>; 2) <strong>E<\/strong> \u043a\u0430\u043a \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0432\u0438\u0434\u0430 <strong>{E<sub>1<\/sub>, E<sub>2<\/sub>, &#8230;, E<sub>n<\/sub>}<\/strong>, \u0433\u0434\u0435 <strong>k<\/strong> \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>\u0418\u0437 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong> <strong>\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/strong>. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0435\u0441\u043b\u0438 (\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442) <strong>\u2203m<sub>1<\/sub>,m<sub>2<\/sub>\u2208M<\/strong>, \u0433\u0434\u0435 <strong>m<sub>1<\/sub>\u2260m<sub>2<\/sub><\/strong>, \u0442\u043e \u043f\u0440\u0438 (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200k\u2208K<\/strong>, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <strong>E<sub>k<\/sub>(m<sub>1<\/sub>) \u2260 E<sub>k<\/sub>(m<sub>2<\/sub>)<\/strong>. \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0439\u0442\u0438 \u043e\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0430\u043a\u043e\u0435 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e <strong>E<sub>k<\/sub>(m<sub>1<\/sub>) = E<sub>k<\/sub>(m<sub>2<\/sub>)<\/strong> \u043f\u0440\u0438 <strong>m<sub>1<\/sub>\u2260m<sub>2<\/sub><\/strong>, \u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u043a \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u043c\u0443 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>C<\/strong> \u043d\u0430 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e <strong>M <\/strong>\u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043b\u044e\u0447\u0430 <strong>k<\/strong>, \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0447\u0435\u0433\u043e \u0441\u0430\u043c\u043e \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u043c. <\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0441\u0430\u043c\u0430 <strong>\u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/strong> \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 (\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442) <strong>\u2203c<sub>1<\/sub>,c<sub>2<\/sub>\u2208C<\/strong>, \u0433\u0434\u0435 <strong>c<sub>1<\/sub>\u2260c<sub>2<\/sub><\/strong>, \u0442\u043e \u043c\u043e\u0436\u0435\u0442 (\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c) <strong>\u2203k\u2208K<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u043a \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0443 <strong>D<sub>k<\/sub>(c<sub>1<\/sub>) = D<sub>k<\/sub>(c<sub>2<\/sub>) = m<\/strong>. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u043c\u043e\u0444\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0448\u0438\u0444\u0440\u043e\u0432, \u0433\u0434\u0435 \u043f\u0440\u0438 <strong>E<sub>k<\/sub>(m) <\/strong>\u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <strong>c<sub>1<\/sub><\/strong> <strong>\u0418\u041b\u0418<\/strong> <strong>c<sub>2<\/sub><\/strong> \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c\u0438 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044f\u043c\u0438 <strong>p<sub>1<\/sub> \u0418 p<sub>2<\/sub><\/strong> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0421\u0432\u044f\u0437\u0430\u043d\u043e \u044d\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u0430\u043c \u043a\u043b\u044e\u0447 <strong>k<\/strong> \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043d\u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <strong>m<\/strong>. \u0411\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0432\u044b\u0431\u043e\u0440 \u043a\u043b\u044e\u0447\u0430 <strong>k<\/strong> \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0431\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0432\u0441\u0435\u0433\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>K<\/strong>, \u043d\u043e \u0438 \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0435 <strong>r<\/strong> \u043f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f <strong>m<\/strong>. <\/p>\n<p>\u0418\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200c\u2208C, \u2200k\u2208K <\/strong>(\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442)<strong> \u2203m\u2208M<\/strong>, \u0442\u0430\u043a\u043e\u0435 \u0447\u0442\u043e <strong>E<sub>k<\/sub>(m)=c<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043a\u0430\u0436\u0434\u044b\u0439 \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442 <strong>c<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>C<\/strong> \u0438\u043c\u0435\u0435\u0442 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 <strong>m<\/strong> \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 <strong>M<\/strong>. \u0415\u0441\u043b\u0438 \u0448\u0438\u0444\u0440 \u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043f\u0440\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u0442\u043e\u0433\u0434\u0430 \u043e\u043d \u0442\u0430\u043a\u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <strong>\u0431\u0438\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c<\/strong> \u0448\u0438\u0444\u0440\u043e\u043c, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u043d\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0438 \u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0430\u043f\u0440\u0438\u043e\u0440\u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u0448\u0438\u0444\u0440\u0430.<\/p>\n<p>\u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0436\u0435, \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 <strong>\u043d\u0435\u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0445<\/strong> \u0448\u0438\u0444\u0440\u043e\u0432, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 (\u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442) <strong>\u2204c<sub>i<\/sub>\u2208C<\/strong> \u0434\u043b\u044f \u0440\u0430\u0432\u0435\u043d\u0442\u0441\u0442\u0432\u0430 <strong>c<sub>i<\/sub>=E<sub>k<\/sub>(m<sub>i<\/sub>)<\/strong>. \u0422\u0430\u043a \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0435\u0441\u044e\u0440\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0448\u0438\u0444\u0440\u043e\u043c \u043c\u043e\u0433 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0448\u0438\u0444\u0440 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441 \u043b\u043e\u0436\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438, \u0433\u0434\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0448\u0438\u0444\u0440\u0442\u0435\u043a\u0441\u0442\u044b <strong>c<sub>i<\/sub><\/strong> (\u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b) \u043c\u043e\u0433\u043b\u0438 \u043d\u0435 \u0438\u043c\u0435\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 <strong>m<sub>i<\/sub><\/strong>. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u043c \u0438 \u043d\u0435\u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0432 \u0442\u043e\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u043c \u043f\u043b\u0430\u043d\u0435, \u0447\u0442\u043e \u043b\u043e\u0436\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441\u0430\u043c\u0438 \u043f\u043e \u0441\u0435\u0431\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u0437\u0430\u043f\u0443\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u043e\u0431\u043e\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u043e\u0431\u0449\u0443\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \/ \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u0430\u043c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430\u0445 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <\/p>\n<ol>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0432\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f: <strong>E<sub>K <\/sub>= D<sub>K<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044f \u0434\u0432\u0430\u0436\u0434\u044b \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 <strong>M = D<sub>K<\/sub>(E<sub>K<\/sub>(M)) <\/strong>= <strong>E<sub>K<\/sub>(E<sub>K<\/sub>(M)) <\/strong>= <strong>D<sub>K<\/sub>(D<sub>K<\/sub>(M)) = E<sub>K<\/sub>(D<sub>K<\/sub>(M))<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\/\u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f: <strong>E<sub>k<\/sub><\/strong>*<strong>D<sub>K<\/sub>=D<sub>k<\/sub><\/strong>*<strong>E<sub>K<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, <strong>D<sub>K<\/sub>(E<sub>K<\/sub>(M)) = E<sub>K<\/sub>(D<sub>K<\/sub>(M)) = M<\/strong>, \u0438\u043b\u0438: <strong>E<sub>k1<\/sub><\/strong>*<strong>E<sub>k2<\/sub>=E<sub>k2<\/sub><\/strong>*<strong>E<sub>K1<\/sub><\/strong>, \u0438 \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, <strong>E<sub>K1<\/sub>(E<sub>K2<\/sub>(M)) = E<sub>K2<\/sub>(E<sub>K1<\/sub>(M)) = C<\/strong> (\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c).<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0431\u0438\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u041f\u0440\u0438 (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200k\u2208K<\/strong>, <strong>\u2200m\u2208M<\/strong> \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0434\u043d\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <strong>E<sub>k<\/sub>(m) = c<\/strong>. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043f\u0440\u0438 \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0435\u043a\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 <strong>m<\/strong> \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c <strong>k<\/strong> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u0438\u043d \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 <strong>c<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>\u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438<\/strong>. \u041f\u0440\u0438 (\u043b\u044e\u0431\u044b\u0445) <strong>\u2200k<sub>1<\/sub>,k<sub>2<\/sub>\u2208K<\/strong>, <strong>\u2200m\u2208M <\/strong>\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u043a\u043b\u044e\u0447\u0435\u0439 \u043d\u0430\u0434 \u0432\u0445\u043e\u0434\u043d\u044b\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, <strong>E<sub>k1<\/sub>(E<sub>k2<\/sub>(m)) = E<sub>q<\/sub>(m)<\/strong>, \u0433\u0434\u0435 <strong>q=E<sub>k1<\/sub>(k<sub>2<\/sub>)<\/strong>. \u0415\u0441\u043b\u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0437\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f <strong>E<\/strong> \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e <strong>#<\/strong>, \u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: <strong>m#(k<sub>1<\/sub>#k<sub>2<\/sub>) = (m#k<sub>1<\/sub>)#k<sub>2<\/sub><\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <strong>k=13<\/strong> (<strong>ROT13<\/strong>) \u0434\u043b\u044f \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0433\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0430. \u0421 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c <strong>k<\/strong> \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u044b\u043c. \u0422\u0430\u043a\u0436\u0435, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u043d\u0432\u043e\u043b\u044e\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043f\u0430\u0440\u043d\u044b\u0439 \u0448\u0438\u0444\u0440 \u0438 xor-\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f \u0418\u0441\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0435\u0435 \u0418\u041b\u0418).<\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0448\u0438\u0444\u0440 \u0426\u0435\u0437\u0430\u0440\u044f, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a <strong>D<sub>k<\/sub>(E<sub>k<\/sub>(m)) = (m+k)-k = (m-k)+k = E<sub>k<\/sub>(D<sub>k<\/sub>(m)) = m<\/strong>. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0435\u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0448\u0438\u0444\u0440 \u041f\u043e\u0440\u0442\u044b \u043f\u043e<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-401986","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/401986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=401986"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/401986\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=401986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=401986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=401986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}