{"id":325405,"date":"2021-06-24T09:00:47","date_gmt":"2021-06-24T09:00:47","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=325405"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=325405","title":{"rendered":"\u0412\u044b\u0440\u0430\u0449\u0438\u0432\u0430\u043d\u0438\u0435 \u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u041a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Python"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6fc\/d68\/8c9\/6fcd688c9515d967960f28c6e5e29702.JPG\" alt=\"\u0428\u0430\u0431\u043b\u043e\u043d \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 64 (\u043d\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 :)\" title=\"\u0428\u0430\u0431\u043b\u043e\u043d \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 64 (\u043d\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 :)\" width=\"982\" height=\"982\"><figcaption>\u0428\u0430\u0431\u043b\u043e\u043d \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 64 (\u043d\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \ud83d\ude42<\/figcaption><\/figure>\n<p>\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043e\u043f\u0438\u0448\u0443 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 n<sup>m<\/sup>, \u0433\u0434\u0435 n \u0438 m &#8212; \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 n<\/p>\n<p>\u041e\u0434\u043d\u0430\u0436\u0434\u044b, \u0435\u0449\u0435 \u0432 \u0448\u043a\u043e\u043b\u0435, \u044f \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0441\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c\u0438, \u043a\u0430\u043a \u0432\u0435\u0441\u044c\u043c\u0430 \u0445\u0430\u0440\u0434\u043a\u043e\u0440\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0441\u0443\u0434\u043e\u043a\u0443. \u041f\u043e-\u0441\u0443\u0442\u0438, \u0432\u0441\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0448\u043a\u043e\u043b\u0435 \u044f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u0437\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c, \u043f\u043e\u0434 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c \u044f \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9C%D0%B0%D0%B3%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D0%B2%D0%B0%D0%B4%D1%80%D0%B0%D1%82\" rel=\"noopener noreferrer nofollow\">\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442<\/a>.<\/p>\n<h2>\u041a\u0430\u043a \u044d\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c<\/h2>\n<p>\u042f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0437\u0443\u0447\u0430\u043b \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435, \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b\u0438 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435, \u0438 \u043d\u0435 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c &#171;\u0440\u0435\u0446\u0435\u043f\u0442\u0430\u043c&#187;.<\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b\u0441\u044f \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442, \u0445\u043e\u0442\u044f \u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043b\u043e\u0436\u0435\u043d \u0432 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0442\u0435\u0442\u0440\u0430\u0434\u043d\u043e\u0439 \u0431\u0443\u043c\u0430\u0433\u0435 \u0432 \u043a\u043b\u0435\u0442\u043a\u0443:<\/p>\n<ol>\n<li>\n<p>\u0420\u0438\u0441\u0443\u0435\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0438 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043e\u0442 1 \u0434\u043e n<sup>2<\/sup>, \u0433\u0434\u0435 n &#8212; \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430, \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e, \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e, \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445, \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u0445 \u0438 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044f\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u0445 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0441\u0443\u043c\u043c\u044b \u0447\u0438\u0441\u0435\u043b \u043d\u0435 \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u044b (\u0441\u043b\u0435\u0434\u0443\u044f \u0438\u043d\u0442\u0443\u0438\u0446\u0438\u0438 \u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0430\u043c). \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u044f \u0442\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u043d\u0430\u043b, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u0437\u0430\u0441\u0442\u0440\u044f\u043b \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435 6\u04456.<\/p>\n<\/li>\n<li>\n<p>\u0420\u044f\u0434\u043e\u043c \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c \u0440\u0438\u0441\u0443\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u043a\u043b\u0435\u0442\u043a\u0438, \u0447\u0438\u0441\u043b\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 &#171;\u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0438&#187;.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0445\u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u043a \u0441\u0442\u0440\u043e\u043a\u0430\u043c, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0441\u044f \u043d\u0430 \u0442\u0430\u043a\u043e\u043c \u0436\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u043c\u043c\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p><em>\u0425\u043e\u0442\u0435\u043b \u0431\u044b \u044f \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442, \u043d\u043e, \u0431\u043e\u044e\u0441\u044c, \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0433\u043e\u043d\u043a\u0430: \u0441\u043a\u0440\u0443\u043f\u0443\u043b\u0435\u0437\u043d\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u044b, \u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0447\u0438\u0441\u043b\u0430, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430, \u0441\u0447\u0438\u0442\u0430\u044f \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0441\u0442\u0440\u043e\u043a\/\u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432.<\/em><\/p>\n<\/li>\n<\/ol>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0448\u0430\u0433\u043e\u0432, \u0442\u0435\u0442\u0440\u0430\u0434\u043d\u044b\u0439 \u043b\u0438\u0441\u0442 \u043f\u043e\u0440\u043e\u0439 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c: \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e &#171;\u0447\u0435\u0440\u043d\u043e\u0432\u044b\u0445&#187; \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432, \u043d\u0435\u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b (\u0441\u0445\u0435\u043c \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438), \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435, \u0435\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0437\u0435\u0442, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0438 \u0440\u0430\u0431\u043e\u0447\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b. \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 L \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 L, \u0442\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u043c, \u043d\u043e \u0441\u0445\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0421 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c\u0438 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c\u0438 \u0432\u0441\u0435 \u0431\u044b\u043b\u043e \u0434\u043e\u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e (n=3 \u0438 n=4), \u0438 \u043c\u0435\u043d\u044f \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b\u0438 \u0441\u0445\u0435\u043c\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0432 \u0438\u0442\u043e\u0433\u0435. \u042d\u0442\u043e \u0431\u044b\u043b\u0438 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0440\u0438\u0441\u0443\u043d\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043d\u0435 \u0432\u0438\u0434\u0435\u043b\u043e\u0441\u044c \u043d\u0435\u0447\u0442\u043e \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435. \u0417\u0430\u0433\u0430\u0434\u043a\u043e\u0439 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u043d\u0435 \u0442\u043e, \u043e\u0442\u0447\u0435\u0433\u043e \u043e\u043d\u0438 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442, \u0430 \u0442\u043e, \u043a\u0430\u043a\u0438\u0435 \u0440\u0438\u0441\u0443\u043d\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0441\u044f \u043e\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0441 \u0431<strong>\u043e<\/strong>\u043b\u044c\u0448\u0438\u043c\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c\u0438, \u043e\u0442\u0447\u0435\u0433\u043e \u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043a \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c 5\u04455, 6\u04456, 7\u04457 \u0438 9\u04459.<\/p>\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u0438, \u0431\u0443\u043c\u0430\u0433\u0438 \u0438 \u0447\u0435\u0440\u043d\u0438\u043b \u0443\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0435\u043c\u0435\u0440\u0435\u043d\u043e, \u043d\u043e \u044f \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0438\u043c\u0438, \u043a\u0440\u043e\u043c\u0435 6\u04456. \u041f\u043e\u0440\u044b\u0432\u0448\u0438\u0441\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u043a \u043c\u043e\u0435\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 6\u04456 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. \u0417\u0430\u043e\u0434\u043d\u043e \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \ud83d\ude42<\/p>\n<p>\u0417\u0430\u043a\u043e\u043d\u0447\u0438\u0432 \u0441 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c 9\u04459, \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0431\u0443\u043c\u0430\u0433\u0438 \u0443\u0445\u043e\u0434\u0438\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e: \u043d\u0430 \u043e\u0434\u0438\u043d \u0442\u0435\u0442\u0440\u0430\u0434\u043d\u044b\u0439 \u043b\u0438\u0441\u0442 \u043f\u043e\u043c\u0435\u0449\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0438-\u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0430\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430, \u0430 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043c\u043e\u044e \u043b\u044e\u0431\u043e\u0432\u044c \u043a \u0437\u0430\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u044e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0430\u043c\u0438 &#171;\u043f\u0443\u0442\u0435\u0439 \u0447\u0438\u0441\u0435\u043b&#187;, \u043c\u0435\u0441\u0442\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u043c\u0435\u043d\u044c\u0448\u0435. <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0437\u0430\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a: \u0442\u0430\u043a\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e, \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0436\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442. \u0422\u0430\u043a\u0436\u0435 \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0431\u0443\u0434\u0443\u0447\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435, \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u0447\u0442\u043e \u043c\u0435\u043d\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c \u0443\u0434\u0438\u0432\u0438\u043b\u043e. \u042d\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a \u0447\u0435\u0442\u043d\u044b\u043c \u0438 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u043c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u0430\u043c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a \u043b\u044e\u0431\u044b\u043c \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u0430\u043c, \u0438\u0434\u0443\u0449\u0438\u043c \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e \u0438\u043b\u0438 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e. <\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c\u0438 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0438\u043b\u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044f\u043c\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430. \u0411\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u0432\u0435\u0434\u044c \u0437\u0430 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0434\u0430\u0436\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 <a href=\"http:\/\/www.multimagie.com\/English\/Enigmas.htm\" rel=\"noopener noreferrer nofollow\">\u043d\u0430\u0433\u0440\u0430\u0434\u0430<\/a>.<\/p>\n<h2>\u041d\u0430\u0448\u0438 \u0434\u043d\u0438<\/h2>\n<p>\u0417\u0430\u0431\u0440\u043e\u0441\u0438\u0432 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043a\u0443\u0440\u0441\u0435, \u043e\u0442\u0443\u0447\u0438\u0432\u0448\u0438\u0441\u044c, \u043e\u0442\u0441\u043b\u0443\u0436\u0438\u0432 \u0432 \u0430\u0440\u043c\u0438\u0438 \u0438 \u0443\u0441\u0442\u0440\u043e\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443, \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u043b\u0433\u0438\u0445 \u0437\u0438\u043c\u043d\u0438\u0445 \u0432\u0435\u0447\u0435\u0440\u043e\u0432, \u043e\u0442 \u043d\u0435\u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u043d\u0438\u044f \u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u0445. \u041a \u043c\u043e\u0435\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u043e\u0433\u043e\u0440\u0447\u0435\u043d\u0438\u044e, \u0432\u0441\u0435 \u043c\u043e\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u0445 \u043f\u0440\u043e\u043f\u0430\u043b\u0438, \u0438 \u044f \u0435\u0434\u0432\u0430 \u043d\u0435 \u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0440\u0443\u043a\u0438. \u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0432 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 3\u04453, \u044f \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u0440\u044f\u0434\u043e\u043c \u0435\u0433\u043e \u0441\u0445\u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 &#171;\u0448\u0430\u0431\u043b\u043e\u043d&#187;. \u041a\u0430\u043a \u0438\u0441\u0442\u0438\u043d\u043d\u043e \u043b\u0435\u043d\u0438\u0432\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b: \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u043a \u0431\u0430\u0437\u043e\u0432\u043e\u043c\u0443 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0443 9\u04459, \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0432 \u0435\u0433\u043e \u043d\u0430 9 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u043f\u043e \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0436\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0435\u043a\u0442\u043e\u0440\u0443. \u0427\u0442\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442?<\/p>\n<p>\u041f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0432 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u044f \u0431\u044b\u0441\u0442\u0440\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u043b \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0435 \u0438 \u0441 \u0437\u0430\u043c\u0438\u0440\u0430\u043d\u0438\u0435\u043c \u0441\u0435\u0440\u0434\u0446\u0430 \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440. \u041d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442!<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043c\u043e\u0435\u0439 \u0438\u0434\u0435\u0435\u0439 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435 27\u044527, \u043d\u043e \u043e\u0434\u043d\u0430 \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043e\u0442 \u0440\u0443\u043a\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c 729 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 1 \u0434\u043e 729, \u0432\u0435\u0440\u043d\u0443\u043b\u0430 \u043c\u0435\u043d\u044f \u0441 \u043d\u0435\u0431\u0435\u0441 \u043d\u0430 \u0437\u0435\u043c\u043b\u044e. \u0421\u0442\u0440\u0430\u0448\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u0430 \u0442\u043e, \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u044f \u043e\u0448\u0438\u0431\u0443\u0441\u044c, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e, \u0430 \u0431\u0435\u0437 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 (\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0447\u0438\u0441\u043b\u0430 \u0438\u0434\u0443\u0442 \u043f\u043e-\u043f\u043e\u0440\u044f\u0434\u043a\u0443) \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043b\u0430 \u0432 \u0440\u0430\u0437\u044b&#8230; \u041d\u043e \u044f \u043d\u0435 \u0441\u0434\u0430\u043b\u0441\u044f. \u0417\u0430\u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0437\u0430 \u0442\u0435\u0431\u044f?<\/p>\n<h2>NumPy + PyGame = Profit!<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043a\u043e\u0434. \u0414\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f Python \u0432\u0435\u0440\u0441\u0438\u0438 3.9 \u0438 opensource-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Numpy \u0438 PyGame.<\/p>\n<pre><code class=\"python\">import numpy as np import pygame as pg<\/code><\/pre>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0434\u043b\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e &#8212; \u044d\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430, \u0433\u0434\u0435 m<sub>x,y<\/sub> == x + y * n + 1, \u0433\u0434\u0435 n &#8212; \u0434\u043b\u0438\u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430. \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440:<\/p>\n<pre><code class=\"python\">def create_matrix(n: int):     return np.arange(1, n ** 2 + 1).reshape(n, n)<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u0437\u0430\u043f\u0438\u0441\u0430\u043b \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 3&#215;3 \u0438 4&#215;4, \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a:<\/p>\n<pre><code class=\"python\">m_3 = [[[1, 0], [0, 0], [1, 2], [2, 2]], [[2, 0], [2, 1], [0, 2], [0, 1]]] m_4 = [[[0, 0], [2, 2]], [[1, 0], [0, 1]],        [[2, 0], [3, 1]], [[3, 0], [1, 2]],        [[0, 2], [1, 3]], [[1, 1], [3, 3]],        [[2, 1], [0, 3]], [[3, 2], [2, 3]]]<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 \u0432\u0434\u0443\u043c\u0447\u0438\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u043e\u0433\u043e NumPy \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430, \u0431\u044b\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u043d\u0438\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043d\u0430 \u0441\u0435\u043a\u0442\u043e\u0440\u0430, \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438:<\/p>\n<pre><code class=\"python\"># _m - input matrix, _x - base row length def m_split(_m, _x):     return [np.vsplit(x, _x) for x in np.hsplit(_m, _x)]   # _m - input \"previous splitted\" matrix, _x - base row length def m_join(_m, _x):     return np.vstack([np.hstack(np.vstack(_m)[x::_x]) for x in range(_x)])<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u0446\u0435\u043f\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a, \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c:<\/p>\n<pre><code class=\"python\"># _m - input \"previous splitted\" matrix, idxs - indices of matrix cells. def m_rot(_m, idxs):   \t#      [-----X----][-----Y----]     a0 = _m[idxs[0][0]][idxs[0][1]]     for i in range(len(idxs) - 1):         _m[idxs[i][0]][idxs[i][1]] = _m[idxs[i + 1][0]][idxs[i + 1][1]]     _m[idxs[-1][0]][idxs[-1][1]] = a0     return _m   #_m - input \"previous splitted\" matrix, _steps - pattern of digits swaps (m_3, m_r, ...)... def magic_steps(_m, _steps):     m0 = _m     for step in _steps:         m0 = m_rot(m0, step)     return m0<\/code><\/pre>\n<p>\u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 n<sup>pow<\/sup>:<\/p>\n<pre><code class=\"python\"># _mss - magic steps (m_3, m_4, or ...) def pow_square(_root, _pow, _mss):     m_dmag = lambda x, d: m_join(magic_steps(m_split(x, d), _mss), d)     _p = _root ** _pow     m0 = m_dmag(create_matrix(_p), _root)     for i in range(1, _pow):         m0 = m_join([[m_dmag(x, _root) for x in y] for y in m_split(m0, _root ** i)], _root ** i)     return m0<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0442\u0435\u0448\u0438\u0442\u044c \u043d\u043e\u0441\u0442\u0430\u043b\u044c\u0433\u0438\u044e, \u0438 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 PyGame, \u043a\u0430\u043a \u0432 \u0440\u0430\u0437\u044b \u0431\u043e\u043b\u0435\u0435 \u0448\u0443\u0441\u0442\u0440\u0443\u044e \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u043c\u043e\u0434\u0443\u043b\u044e turtle, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043f\u043e \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u044e \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0430\u0447\u0430\u043b\u0435:<\/p>\n<pre><code class=\"python\"># returns list of [list of coordinates for all moved digits in move-chain] def get_cycles(_m):     ret = []     dim = len(_m)     used = []     j_to_xy = lambda _j, _d: [(_j - 1) % _d, int((_j - 1) \/ _d)]     xy_to_j = lambda _xy, _d: _xy[0] + _xy[1] * _d + 1     for j in range(1, dim * dim + 1):         _p = []         x, y = j_to_xy(j, dim)         if _m[y][x] in used:             continue         if _m[y][x] == j:             used += [_m[y][x]]             continue         _p += [[x, y]]         while True:             a = _m[y][x]             x, y = j_to_xy(a, dim)             _p += [[x, y]]             used += [a]             if xy_to_j([x, y], dim) == j:                 ret += [_p]                 break     return ret     # returns list of digits, that's just stay on their base coordinates. def get_statics(_m):     dim = len(_m)     j_to_xy = lambda _j, _d: [(_j - 1) % _d, int((_j - 1) \/ _d)]     ret = []     for j in range(1, dim * dim + 1):         x, y = j_to_xy(j, dim)         if _m[y][x] == j:             ret += [[x, y]]     return ret   # drawing function. def to_star(_m):     # compute optimal window width\\height (d_sz) and step length multiplier (sz)...     dim = len(_m)     max_sz = 1000     _sz = int(max_sz \/ dim)     sz = 20 if _sz &gt; 20 else 1 if _sz == 0 else _sz     d_sz = (sz * dim + 20, sz * dim + 20)     # initialize PyGame window and drawing field:     pygame.init()     _sc = pygame.display.set_mode(d_sz)     _sc.fill((255, 255, 255))     pg.display.flip()     # begin drawing     for _c in get_cycles(_m):         sc = _sc.convert_alpha()         sc.fill([0, 0, 0, 0])         # scale coordinates with computed step length multiplier (sz)         # last point excluded, as it is equals to the first.         points = [(x * sz + 10, y * sz + 10) for x, y in _c[:-1]]         # draw line or polygon between the coordinates of the moved numbers         # lines have 55% opacity.         r = pg.draw.lines(sc, (0, 0, 0, 15), True, points) \\             if len(points) &gt; 2 \\             else pg.draw.line(sc, (0, 0, 0, 55), points[0], points[1])         _sc.blit(sc, (0, 0))         pg.display.update(r)     for _s in [(x * sz + 10, y * sz + 10) for x, y in get_statics(_m)]:         # draw small yellow circle on the coordinates of the numbers          # that have retained their positions         r = pg.draw.circle(_sc, (200, 200, 0, 70), _s, 5)         pg.display.update(r)     # end drawing, wait for exit.     c = pg.time.Clock()     while True:         c.tick(60)         for events in pg.event.get():             if events.type == pg.QUIT:                 pg.quit()         pygame.display.update()<\/code><\/pre>\n<p>\u0418 \u0432 \u043a\u043e\u043d\u0446\u0435 &#8212; \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>main<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0441\u043e\u0431\u0435\u0440\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0432 \u043a\u0443\u0447\u0443 \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442:<\/p>\n<pre><code class=\"python\">if __name__ == '__main__':     pow = 3     root = 4     m1 = pow_square(root, pow, m_4)     try:         to_star(m1)     except pygame.error:         print('Drawing finished.')     print(m1)     # Compute sums of all digits in rows, columns and diagonals.     m2 = np.rot90(m1)     print([sum(x) for x in m1])     print([sum(x) for x in m2])     print(sum([m1[x, x] for x in range(root ** pow)]))     print(sum([m2[x, x] for x in range(root ** pow)]))<\/code><\/pre>\n<p>\u0411\u044b\u0441\u0442\u0440\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430, \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0418 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c &#8212; \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 3\u04453, \u043d\u043e \u0438 \u043d\u0430 4\u04454, 5\u04455, \u0438, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0430 \u0432\u0441\u0435\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u0445. \u041c\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 3n, 4n \u0438 5n \u0431\u0435\u0437\u0443\u043a\u043e\u0440\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0438 \u0431\u0435\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043b\u044e\u0431\u044b\u043c \u0434\u0440\u0443\u0433\u0438\u043c \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u043c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c (\u043f\u0440\u0438\u0447\u0435\u043c, \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u043c &#8212; \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430)!<\/p>\n<details class=\"spoiler\">\n<summary>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/363\/247\/ce6\/363247ce6b384ccea455a57a85827976.JPG\" alt=\"\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 256. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b.\" title=\"\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 256. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b.\" width=\"790\" height=\"789\"><figcaption>\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 256. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b.<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/44f\/4e0\/d3c\/44f4e0d3cb8fe57b8cbbbfc22df13edc.JPG\" alt=\"\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 256. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b.\" title=\"\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 256. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b.\" width=\"790\" height=\"790\"><figcaption>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 256. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b.<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/94e\/42b\/fe2\/94e42bfe25261b557871fdea97b303b6.JPG\" alt=\"\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 125. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0435 \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u044b\u0435 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0449\u0435\u043c \u0444\u043e\u043d\u0435. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u043d\u0438\u0438 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0434\u0440\u0443\u0433 \u043d\u0430\u0434 \u0434\u0440\u0443\u0436\u043a\u043e\u0439, \u0438 \u043d\u0435 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f.\" title=\"\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 125. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0435 \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u044b\u0435 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0449\u0435\u043c \u0444\u043e\u043d\u0435. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u043d\u0438\u0438 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0434\u0440\u0443\u0433 \u043d\u0430\u0434 \u0434\u0440\u0443\u0436\u043a\u043e\u0439, \u0438 \u043d\u0435 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f.\" width=\"1020\" height=\"1011\"><figcaption>\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 125. \u0421\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043e\u0432\u0430\u043d\u044b. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0435 \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u043f\u0440\u044f\u043c\u044b\u0435 \u0432\u044b\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0449\u0435\u043c \u0444\u043e\u043d\u0435. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u0438\u043d\u0438\u0438 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0434\u0440\u0443\u0433 \u043d\u0430\u0434 \u0434\u0440\u0443\u0436\u043a\u043e\u0439, \u0438 \u043d\u0435 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f.<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d50\/793\/b3e\/d50793b3ed2213ca03849e7d3ad4e018.JPG\" alt=\"\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 81 \u0432 MS Excel.\" title=\"\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 81 \u0432 MS Excel.\" width=\"1737\" height=\"602\"><figcaption>\u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 81 \u0432 MS Excel.<\/figcaption><\/figure>\n<p><a href=\"https:\/\/mega.nz\/file\/1LQw0bhZ#7PDxPZ2YcTMzFCwQ3LlhED93FEdkIBX2RrWYVKwNIGA\" rel=\"noopener noreferrer nofollow\">\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 81<\/a> (.csv)<\/p>\n<p><a href=\"https:\/\/github.com\/Xanaj-Kimberly\/MagicSquare\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 GitHub<\/a><\/p>\n<\/div>\n<\/details>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0441 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c\u0438 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 &gt; 1000. \u041d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0430 \u0441\u043b\u0430\u0431\u044b\u0445 \u041f\u041a \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044f\u0445. \u041f\u043e\u0434\u0432\u0438\u0441\u0430\u0435\u0442 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438.<\/p>\n<p><strong>P.S.<\/strong> \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043a\u043e\u0434 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435, \u0438\u043c\u0435\u0435\u0442 \u043e\u0433\u0440\u043e\u043c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0447\u0435\u043a \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438, \u0438, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043c\u0430\u0442\u0440\u0438\u0446\u0443 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0438\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043a\u0440\u043e\u043c\u0435 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432, \u043e\u043d \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d, \u043a\u0430\u043a \u0435\u0441\u0442\u044c. \u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u0432\u0438\u043d\u044f\u044e\u0441\u044c \u0437\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u044d\u0441\u0442\u0435\u0442\u0438\u043a\u0438 \u0432 \u043a\u043e\u0434\u0435&#8230;<\/p>\n<\/div>\n<p> \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\/post\/564394\/\"> https:\/\/habr.com\/ru\/post\/564394\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<figure class=\"full-width\"><figcaption>\u0428\u0430\u0431\u043b\u043e\u043d \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 64 (\u043d\u0438 \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \ud83d\ude42<\/figcaption><\/figure>\n<p>\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a.<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043e\u043f\u0438\u0448\u0443 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 n<sup>m<\/sup>, \u0433\u0434\u0435 n \u0438 m &#8212; \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430, \u043f\u0440\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0438, \u0447\u0442\u043e \u043d\u0430\u043c \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 n<\/p>\n<p>\u041e\u0434\u043d\u0430\u0436\u0434\u044b, \u0435\u0449\u0435 \u0432 \u0448\u043a\u043e\u043b\u0435, \u044f \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0441\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c\u0438, \u043a\u0430\u043a \u0432\u0435\u0441\u044c\u043c\u0430 \u0445\u0430\u0440\u0434\u043a\u043e\u0440\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0441\u0443\u0434\u043e\u043a\u0443. \u041f\u043e-\u0441\u0443\u0442\u0438, \u0432\u0441\u0435 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432 \u0448\u043a\u043e\u043b\u0435 \u044f \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u0437\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c, \u043f\u043e\u0434 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c \u044f \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u044e <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%9C%D0%B0%D0%B3%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B9_%D0%BA%D0%B2%D0%B0%D0%B4%D1%80%D0%B0%D1%82\" rel=\"noopener noreferrer nofollow\">\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442<\/a>.<\/p>\n<h2>\u041a\u0430\u043a \u044d\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u043e\u0441\u044c<\/h2>\n<p>\u042f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0438\u0437\u0443\u0447\u0430\u043b \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435, \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u044b\u043b\u0438 \u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u0435, \u0438 \u043d\u0435 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c &#171;\u0440\u0435\u0446\u0435\u043f\u0442\u0430\u043c&#187;.<\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b\u0441\u044f \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442, \u0445\u043e\u0442\u044f \u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043b\u043e\u0436\u0435\u043d \u0432 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438, \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0442\u0435\u0442\u0440\u0430\u0434\u043d\u043e\u0439 \u0431\u0443\u043c\u0430\u0433\u0435 \u0432 \u043a\u043b\u0435\u0442\u043a\u0443:<\/p>\n<ol>\n<li>\n<p>\u0420\u0438\u0441\u0443\u0435\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0438 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043e\u0442 1 \u0434\u043e n<sup>2<\/sup>, \u0433\u0434\u0435 n &#8212; \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430, \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e, \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e, \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0441\u0443\u043c\u043c\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445, \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u0445 \u0438 \u0434\u0438\u0430\u0433\u043e\u043d\u0430\u043b\u044f\u0445.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0446\u0435\u043d\u0442\u0440\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p>\u041c\u0435\u043d\u044f\u0435\u043c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u0445 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0441\u0443\u043c\u043c\u044b \u0447\u0438\u0441\u0435\u043b \u043d\u0435 \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u044b (\u0441\u043b\u0435\u0434\u0443\u044f \u0438\u043d\u0442\u0443\u0438\u0446\u0438\u0438 \u0438 \u0440\u0430\u0441\u0447\u0435\u0442\u0430\u043c). \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u044f \u0442\u043e\u0433\u0434\u0430 \u043d\u0435 \u0437\u043d\u0430\u043b, \u0438\u0437-\u0437\u0430 \u0447\u0435\u0433\u043e \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e \u0437\u0430\u0441\u0442\u0440\u044f\u043b \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435 6\u04456.<\/p>\n<\/li>\n<li>\n<p>\u0420\u044f\u0434\u043e\u043c \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c \u0440\u0438\u0441\u0443\u0435\u043c \u043f\u0443\u0441\u0442\u043e\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u043a\u043b\u0435\u0442\u043a\u0438, \u0447\u0438\u0441\u043b\u0430 \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 &#171;\u043f\u0435\u0440\u0435\u0435\u0445\u0430\u043b\u0438&#187;.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u0441\u0445\u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u043a \u0441\u0442\u0440\u043e\u043a\u0430\u043c, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0441\u044f \u043d\u0430 \u0442\u0430\u043a\u043e\u043c \u0436\u0435 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u0443\u043c\u043c\u044b \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445.<\/p>\n<\/li>\n<li>\n<p><em>\u0425\u043e\u0442\u0435\u043b \u0431\u044b \u044f \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442, \u043d\u043e, \u0431\u043e\u044e\u0441\u044c, \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0433\u043e\u043d\u043a\u0430: \u0441\u043a\u0440\u0443\u043f\u0443\u043b\u0435\u0437\u043d\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0441\u0443\u043c\u043c\u044b, \u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0447\u0438\u0441\u043b\u0430, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430, \u0441\u0447\u0438\u0442\u0430\u044f \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0441\u0442\u0440\u043e\u043a\/\u0441\u0442\u043e\u043b\u0431\u0446\u043e\u0432.<\/em><\/p>\n<\/li>\n<\/ol>\n<p>\u0418\u0442\u0430\u043a, \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0448\u0430\u0433\u043e\u0432, \u0442\u0435\u0442\u0440\u0430\u0434\u043d\u044b\u0439 \u043b\u0438\u0441\u0442 \u043f\u043e\u0440\u043e\u0439 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c: \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e &#171;\u0447\u0435\u0440\u043d\u043e\u0432\u044b\u0445&#187; \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432, \u043d\u0435\u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b (\u0441\u0445\u0435\u043c \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438), \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435, \u0435\u0441\u043b\u0438 \u043f\u043e\u0432\u0435\u0437\u0435\u0442, \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0438 \u0440\u0430\u0431\u043e\u0447\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b. \u0417\u0434\u0435\u0441\u044c \u0441\u0442\u043e\u0438\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u043e\u043c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0434\u0432\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 L \u043e\u0442 \u0446\u0435\u043d\u0442\u0440\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u0430\u043c\u0438 \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0435\u0441\u044f \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 L, \u0442\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u043c, \u043d\u043e \u0441\u0445\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0447\u0438\u0441\u0435\u043b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0421 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u043c\u0438 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c\u0438 \u0432\u0441\u0435 \u0431\u044b\u043b\u043e \u0434\u043e\u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e (n=3 \u0438 n=4), \u0438 \u043c\u0435\u043d\u044f \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b\u0438 \u0441\u0445\u0435\u043c\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0432 \u0438\u0442\u043e\u0433\u0435. \u042d\u0442\u043e \u0431\u044b\u043b\u0438 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u0435 \u0440\u0438\u0441\u0443\u043d\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043d\u0435 \u0432\u0438\u0434\u0435\u043b\u043e\u0441\u044c \u043d\u0435\u0447\u0442\u043e \u0437\u0430\u0433\u0430\u0434\u043e\u0447\u043d\u043e\u0435. \u0417\u0430\u0433\u0430\u0434\u043a\u043e\u0439 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u043d\u0435 \u0442\u043e, \u043e\u0442\u0447\u0435\u0433\u043e \u043e\u043d\u0438 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442, \u0430 \u0442\u043e, \u043a\u0430\u043a\u0438\u0435 \u0440\u0438\u0441\u0443\u043d\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u0441\u044f \u043e\u0442 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0441 \u0431<strong>\u043e<\/strong>\u043b\u044c\u0448\u0438\u043c\u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c\u0438, \u043e\u0442\u0447\u0435\u0433\u043e \u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0448\u0435\u043b \u043a \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c 5\u04455, 6\u04456, 7\u04457 \u0438 9\u04459.<\/p>\n<p>\u0412\u0440\u0435\u043c\u0435\u043d\u0438, \u0431\u0443\u043c\u0430\u0433\u0438 \u0438 \u0447\u0435\u0440\u043d\u0438\u043b \u0443\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0435\u043c\u0435\u0440\u0435\u043d\u043e, \u043d\u043e \u044f \u0441\u043f\u0440\u0430\u0432\u0438\u043b\u0441\u044f \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u0438\u043c\u0438, \u043a\u0440\u043e\u043c\u0435 6\u04456. \u041f\u043e\u0440\u044b\u0432\u0448\u0438\u0441\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435, \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u043a \u043c\u043e\u0435\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 6\u04456 \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. \u0417\u0430\u043e\u0434\u043d\u043e \u0443\u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \ud83d\ude42<\/p>\n<p>\u0417\u0430\u043a\u043e\u043d\u0447\u0438\u0432 \u0441 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u043c 9\u04459, \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0431\u0443\u043c\u0430\u0433\u0438 \u0443\u0445\u043e\u0434\u0438\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e: \u043d\u0430 \u043e\u0434\u0438\u043d \u0442\u0435\u0442\u0440\u0430\u0434\u043d\u044b\u0439 \u043b\u0438\u0441\u0442 \u043f\u043e\u043c\u0435\u0449\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0440\u0438-\u0447\u0435\u0442\u044b\u0440\u0435 \u0442\u0430\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430, \u0430 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u043c\u043e\u044e \u043b\u044e\u0431\u043e\u0432\u044c \u043a \u0437\u0430\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u044e \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0430\u043c\u0438 &#171;\u043f\u0443\u0442\u0435\u0439 \u0447\u0438\u0441\u0435\u043b&#187;, \u043c\u0435\u0441\u0442\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u043c\u0435\u043d\u044c\u0448\u0435. <\/p>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u0437\u0430\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u043d\u0438\u0435\u043c \u044f \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0430\u043a: \u0442\u0430\u043a\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0431\u044b\u043b\u0430 \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e, \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0436\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442. \u0422\u0430\u043a\u0436\u0435 \u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0431\u0443\u0434\u0443\u0447\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435, \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u0447\u0442\u043e \u043c\u0435\u043d\u044f \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u043c \u0443\u0434\u0438\u0432\u0438\u043b\u043e. \u042d\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a \u0447\u0435\u0442\u043d\u044b\u043c \u0438 \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u043c \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u0430\u043c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a \u043b\u044e\u0431\u044b\u043c \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u0430\u043c, \u0438\u0434\u0443\u0449\u0438\u043c \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e \u0438\u043b\u0438 \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e. <\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0441\u043a\u0430\u0436\u0443, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u043c\u0438 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0438\u043b\u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044f\u043c\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430. \u0411\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e, \u0432\u0435\u0434\u044c \u0437\u0430 \u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u0434\u0430\u0436\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 <a href=\"http:\/\/www.multimagie.com\/English\/Enigmas.htm\" rel=\"noopener noreferrer nofollow\">\u043d\u0430\u0433\u0440\u0430\u0434\u0430<\/a>.<\/p>\n<h2>\u041d\u0430\u0448\u0438 \u0434\u043d\u0438<\/h2>\n<p>\u0417\u0430\u0431\u0440\u043e\u0441\u0438\u0432 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043a\u0443\u0440\u0441\u0435, \u043e\u0442\u0443\u0447\u0438\u0432\u0448\u0438\u0441\u044c, \u043e\u0442\u0441\u043b\u0443\u0436\u0438\u0432 \u0432 \u0430\u0440\u043c\u0438\u0438 \u0438 \u0443\u0441\u0442\u0440\u043e\u0438\u0432\u0448\u0438\u0441\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443, \u0432 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u043b\u0433\u0438\u0445 \u0437\u0438\u043c\u043d\u0438\u0445 \u0432\u0435\u0447\u0435\u0440\u043e\u0432, \u043e\u0442 \u043d\u0435\u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c, \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0437\u043d\u0430\u043d\u0438\u044f \u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u0445. \u041a \u043c\u043e\u0435\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u043e\u0433\u043e\u0440\u0447\u0435\u043d\u0438\u044e, \u0432\u0441\u0435 \u043c\u043e\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043e \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u0445 \u043f\u0440\u043e\u043f\u0430\u043b\u0438, \u0438 \u044f \u0435\u0434\u0432\u0430 \u043d\u0435 \u043e\u043f\u0443\u0441\u0442\u0438\u043b \u0440\u0443\u043a\u0438. \u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0432 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 3\u04453, \u044f \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043b \u0440\u044f\u0434\u043e\u043c \u0435\u0433\u043e \u0441\u0445\u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f, \u0438\u043b\u0438 &#171;\u0448\u0430\u0431\u043b\u043e\u043d&#187;. \u041a\u0430\u043a \u0438\u0441\u0442\u0438\u043d\u043d\u043e \u043b\u0435\u043d\u0438\u0432\u044b\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442, \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u043b: \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u043a \u0431\u0430\u0437\u043e\u0432\u043e\u043c\u0443 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0443 9\u04459, \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0432 \u0435\u0433\u043e \u043d\u0430 9 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432, \u043f\u043e \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0441\u0442\u043e\u043b\u0431\u0446\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0436\u0435 \u0448\u0430\u0431\u043b\u043e\u043d \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0435\u043a\u0442\u043e\u0440\u0443. \u0427\u0442\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442?<\/p>\n<p>\u041f\u043e-\u0431\u044b\u0441\u0442\u0440\u043e\u043c\u0443 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0432 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442, \u044f \u0431\u044b\u0441\u0442\u0440\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u043b \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0435 \u0438 \u0441 \u0437\u0430\u043c\u0438\u0440\u0430\u043d\u0438\u0435\u043c \u0441\u0435\u0440\u0434\u0446\u0430 \u0432\u0437\u044f\u043b\u0441\u044f \u0437\u0430 \u043a\u0430\u043b\u044c\u043a\u0443\u043b\u044f\u0442\u043e\u0440. \u041d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u0435\u0434\u0435\u043b\u0430 \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044e, \u043a\u043e\u0433\u0434\u0430 \u044f \u043f\u043e\u043d\u044f\u043b, \u0447\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442!<\/p>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043c\u043e\u0435\u0439 \u0438\u0434\u0435\u0435\u0439 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u043d\u0430 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0435 27\u044527, \u043d\u043e \u043e\u0434\u043d\u0430 \u043c\u044b\u0441\u043b\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043e\u0442 \u0440\u0443\u043a\u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c 729 \u0447\u0438\u0441\u0435\u043b \u043e\u0442 1 \u0434\u043e 729, \u0432\u0435\u0440\u043d\u0443\u043b\u0430 \u043c\u0435\u043d\u044f \u0441 \u043d\u0435\u0431\u0435\u0441 \u043d\u0430 \u0437\u0435\u043c\u043b\u044e. \u0421\u0442\u0440\u0430\u0448\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u0430\u0436\u0435 \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u0430 \u0442\u043e, \u0447\u0442\u043e, \u0435\u0441\u043b\u0438 \u044f \u043e\u0448\u0438\u0431\u0443\u0441\u044c, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0432\u0441\u0435 \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e, \u0430 \u0431\u0435\u0437 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 (\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0447\u0438\u0441\u043b\u0430 \u0438\u0434\u0443\u0442 \u043f\u043e-\u043f\u043e\u0440\u044f\u0434\u043a\u0443) \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043b\u0430 \u0432 \u0440\u0430\u0437\u044b&#8230; \u041d\u043e \u044f \u043d\u0435 \u0441\u0434\u0430\u043b\u0441\u044f. \u0417\u0430\u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0435\u0441\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u0437\u0430 \u0442\u0435\u0431\u044f?<\/p>\n<h2>NumPy + PyGame = Profit!<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043a\u043e\u0434. \u0414\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f Python \u0432\u0435\u0440\u0441\u0438\u0438 3.9 \u0438 opensource-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Numpy \u0438 PyGame.<\/p>\n<pre><code class=\"python\">import numpy as np import pygame as pg<\/code><\/pre>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u043a\u0432\u0430\u0434\u0440\u0430\u0442 \u0434\u043b\u044f \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e &#8212; \u044d\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u0440\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430, \u0433\u0434\u0435 m<sub>x,y<\/sub> == x + y * n + 1, \u0433\u0434\u0435 n &#8212; \u0434\u043b\u0438\u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430. \u041d\u0430\u043f\u0438\u0448\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e-\u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440:<\/p>\n<pre><code class=\"python\">def create_matrix(n: int):     return np.arange(1, n ** 2 + 1).reshape(n, n)<\/code><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u044f \u0437\u0430\u043f\u0438\u0441\u0430\u043b \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043e\u0432 3&#215;3 \u0438 4&#215;4, \u0432 \u0432\u0438\u0434\u0435 \u0441\u043f\u0438\u0441\u043a\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0435\u0439 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a:<\/p>\n<pre><code class=\"python\">m_3 = [[[1, 0], [0, 0], [1, 2], [2, 2]], [[2, 0], [2, 1], [0, 2], [0, 1]]] m_4 = [[[0, 0], [2, 2]], [[1, 0], [0, 1]],        [[2, 0], [3, 1]], [[3, 0], [1, 2]],        [[0, 2], [1, 3]], [[1, 1], [3, 3]],        [[2, 1], [0, 3]], [[3, 2], [2, 3]]]<\/code><\/pre>\n<p>\u0417\u0430\u0442\u0435\u043c, \u043f\u043e\u0441\u043b\u0435 \u0432\u0434\u0443\u043c\u0447\u0438\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u043c\u043e\u0433\u043e NumPy \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430, \u0431\u044b\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u043d\u0438\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b \u043d\u0430 \u0441\u0435\u043a\u0442\u043e\u0440\u0430, \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438:<\/p>\n<pre><code class=\"python\"># _m - input matrix, _x - base row length def m_split(_m, _x):     return [np.vsplit(x, _x) for x in np.hsplit(_m, _x)]   # _m - input \"previous splitted\" matrix, _x - base row length def m_join(_m, _x):     return np.vstack([np.hstack(np.vstack(_m)[x::_x]) for x in range(_x)])<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u0446\u0435\u043f\u044c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u043e\u0432\u043e\u043a, \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c:<\/p>\n<pre><code class=\"python\"># _m - input \"previous splitted\" matrix, idxs - indices of matrix cells. def m_rot(_m, idxs):   \t#      [-----X----][-----Y----]     a0 = _m[idxs[0][0]][idxs[0][1]]     for i in range(len(idxs) - 1):         _m[idxs[i][0]][idxs[i][1]] = _m[idxs[i + 1][0]][idxs[i + 1][1]]     _m[idxs[-1][0]][idxs[-1][1]] = a0     return _m   #_m - input \"previous splitted\" matrix, _steps - pattern of digits swaps (m_3, m_r, ...)... def magic_steps(_m, _steps):     m0 = _m     for step in _steps:         m0 = m_rot(m0, step)     return m0<\/code><\/pre>\n<p>\u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043e\u0439 n<sup>pow<\/sup>:<\/p>\n<pre><code class=\"python\"># _mss - magic steps (m_3, m_4, or ...) def pow_square(_root, _pow, _mss):     m_dmag = lambda x, d: m_join(magic_steps(m_split(x, d), _mss), d)     _p = _root ** _pow     m0 = m_dmag(create_matrix(_p), _root)     for i in range(1, _pow):         m0 = m_join([[m_dmag(x, _root) for x in y] for y in m_split(m0, _root ** i)], _root ** i)     return m0<\/code><\/pre>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0442\u0435\u0448\u0438\u0442\u044c \u043d\u043e\u0441\u0442\u0430\u043b\u044c\u0433\u0438\u044e, \u0438 \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 PyGame, \u043a\u0430\u043a \u0432 \u0440\u0430\u0437\u044b \u0431\u043e\u043b\u0435\u0435 \u0448\u0443\u0441\u0442\u0440\u0443\u044e \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u0443 \u043c\u043e\u0434\u0443\u043b\u044e turtle, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043f\u043e \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u044e \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043d\u0430\u0447\u0430\u043b\u0435:<\/p>\n<pre><code class=\"python\"># returns list of [list of coordinates for all moved digits in move-chain] def get_cycles(_m):     ret = []     dim = len(_m)     used = []     j_to_xy = lambda _j, _d: [(_j - 1) % _d, int((_j - 1) \/ _d)]     xy_to_j = lambda _xy, _d: _xy[0] + _xy[1] * _d + 1     for j in range(1, dim * dim + 1):         _p = []         x, y = j_to_xy(j, dim)         if _m[y][x] in used:             continue         if _m[y][x] == j:             used += [_m[y][x]]             continue         _p += [[x, y]]         while True:             a = _m[y][x]             x, y = j_to_xy(a, dim)             _p += [[x, y]]             used += [a]             if xy_to_j([x, y], dim) == j:                 ret += [_p]                 break     return ret     # returns list of digits, that's just stay on their base coordinates. def get_statics(_m):     dim = len(_m)     j_to_xy = lambda _j, _d: [(_j - 1) % _d, int((_j - 1) \/ _d)]     ret = []     for j in range(1, dim * dim + 1):         x, y = j_to_xy(j, dim)         if _m[y][x] == j:             ret += [[x, y]]     return ret   # drawing function. def to_star(_m):     # compute optimal window width\\height (d_sz) and step length multiplier (sz)...     dim = len(_m)     max_sz = 1000     _sz = int(max_sz \/ dim)     sz = 20 if _sz &gt; 20 else 1 if _sz == 0 else _sz     d_sz = (sz * dim + 20, sz * dim + 20)     # initialize PyGame window and drawing field:     pygame.init()     _sc = pygame.display.set_mode(d_sz)     _sc.fill((255, 255, 255))     pg.display.flip()     # begin drawing     for _c in get_cycles(_m):         sc = _sc.convert_alpha()         sc.fill([0, 0, 0, 0])         # scale coordinates with computed step length multiplier (sz)         # last point excluded, as it is equals to the first.         points = [(x * sz + 10, y * sz + 10) for x, y in _c[:-1]]         # draw line or polygon between the coordinates of the moved numbers         # lines have 55% opacity.         r = pg.draw.lines(sc, (0, 0, 0, 15), True, points) \\             if len(points) &gt; 2 \\             else pg.draw.line(sc, (0, 0, 0, 55), points[0], points[1])         _sc.blit(sc, (0, 0))         pg.display.update(r)     for _s in [(x * sz + 10, y * sz + 10) for x, y<\/code><\/pre>\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-325405","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325405","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=325405"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/325405\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=325405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=325405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=325405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}