{"id":5120,"date":"2026-09-24T09:00:00","date_gmt":"2026-09-24T09:00:00","guid":{"rendered":"https:\/\/otus.ru\/journal\/?p=5120"},"modified":"2026-09-25T15:27:49","modified_gmt":"2026-09-25T15:27:49","slug":"teoriya-chisel-deliteli-i-kratnye","status":"publish","type":"post","link":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/","title":{"rendered":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0438 \u043a\u0440\u0430\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438, \u041d\u041e\u0414, \u041d\u041e\u041a \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430"},"content":{"rendered":"<p><strong>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/strong> \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 a &#8212; \u044d\u0442\u043e \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e d, \u043d\u0435 \u0440\u0430\u0432\u043d\u043e\u0435 \u043d\u0443\u043b\u044e, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 a \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u043e\u0441\u0442\u0430\u0442\u043a\u0430: a = d * k \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e k. <strong>\u041a\u0440\u0430\u0442\u043d\u043e\u0435<\/strong> \u0447\u0438\u0441\u043b\u0430 d &#8212; \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432\u0438\u0434\u0430 d * k. \u042d\u0442\u043e \u043e\u0434\u043d\u0430 \u0441\u0432\u044f\u0437\u044c, \u0443\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u0441 \u0434\u0432\u0443\u0445 \u0441\u0442\u043e\u0440\u043e\u043d: \u00ab3 &#8212; \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c 12\u00bb \u0438 \u00ab12 \u043a\u0440\u0430\u0442\u043d\u043e 3\u00bb \u0437\u043d\u0430\u0447\u0430\u0442 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435. \u041d\u0438\u0436\u0435 &#8212; \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0447\u0438\u0441\u043b\u0430, \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0432 \u043a\u043e\u0434\u0435 (\u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u043d\u0430 Python 3.14.7, \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2026).<\/p>\n<div class=\"oj-toc\" style=\"background:#f6f6f6;border-radius:8px;padding:14px 20px;margin:20px 0\">\n<p><strong>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/strong><\/p>\n<ol>\n<li><a href=\"#s1\">\u041c\u0438\u043d\u0438-\u0441\u043b\u043e\u0432\u0430\u0440\u044c: \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, \u043a\u0440\u0430\u0442\u043d\u043e\u0435, \u041d\u041e\u0414, \u041d\u041e\u041a<\/a><\/li>\n<li><a href=\"#s2\">\u041a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0447\u0438\u0441\u043b\u0430<\/a><\/li>\n<li><a href=\"#s3\">\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438<\/a><\/li>\n<li><a href=\"#s4\">\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438<\/a><\/li>\n<li><a href=\"#s5\">\u041d\u041e\u0414 \u0438 \u041d\u041e\u041a<\/a><\/li>\n<li><a href=\"#s6\">\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430: \u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0439\u0442\u0438 \u041d\u041e\u0414<\/a><\/li>\n<li><a href=\"#s7\">\u041e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b: \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u044f\u0437\u044b\u043a\u0430<\/a><\/li>\n<li><a href=\"#s8\">\u0412\u044b\u0432\u043e\u0434\u044b<\/a><\/li>\n<li><a href=\"#s9\">\u0413\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \/ \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/a><\/li>\n<li><a href=\"#s10\">FAQ<\/a><\/li>\n<\/ol>\n<\/div>\n<h2 id=\"s1\">\u041c\u0438\u043d\u0438-\u0441\u043b\u043e\u0432\u0430\u0440\u044c: \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c, \u043a\u0440\u0430\u0442\u043d\u043e\u0435, \u041d\u041e\u0414, \u041d\u041e\u041a<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u0422\u0435\u0440\u043c\u0438\u043d<\/th>\n<th>\u0427\u0442\u043e \u044d\u0442\u043e<\/th>\n<th>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043b\u044f 12 \u0438 18<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td>d, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u043e\u0441\u0442\u0430\u0442\u043a\u0430<\/td>\n<td>\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 12: 1, 2, 3, 4, 6, 12<\/td>\n<\/tr>\n<tr>\n<td>\u041a\u0440\u0430\u0442\u043d\u043e\u0435<\/td>\n<td>\u0447\u0438\u0441\u043b\u043e \u0432\u0438\u0434\u0430 d * k<\/td>\n<td>\u043a\u0440\u0430\u0442\u043d\u044b\u0435 12: 12, 24, 36, 48, &#8230;<\/td>\n<\/tr>\n<tr>\n<td>\u041e\u0431\u0449\u0438\u0439 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td>\u0434\u0435\u043b\u0438\u0442 \u043e\u0431\u0430 \u0447\u0438\u0441\u043b\u0430<\/td>\n<td>1, 2, 3, 6<\/td>\n<\/tr>\n<tr>\n<td>\u041d\u041e\u0414<\/td>\n<td>\u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0431\u0449\u0438\u0439 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/td>\n<td>\u041d\u041e\u0414(12, 18) = 6<\/td>\n<\/tr>\n<tr>\n<td>\u041e\u0431\u0449\u0435\u0435 \u043a\u0440\u0430\u0442\u043d\u043e\u0435<\/td>\n<td>\u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0430 \u0447\u0438\u0441\u043b\u0430<\/td>\n<td>36, 72, 108, &#8230;<\/td>\n<\/tr>\n<tr>\n<td>\u041d\u041e\u041a<\/td>\n<td>\u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043e\u0431\u0449\u0435\u0435 \u043a\u0440\u0430\u0442\u043d\u043e\u0435<\/td>\n<td>\u041d\u041e\u041a(12, 18) = 36<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0413\u0440\u0430\u043d\u0438\u0447\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0443\u0442\u0430\u044e\u0442\u0441\u044f:<\/p>\n<ul>\n<li>\u0443 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439, \u043d\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043a\u0440\u0430\u0442\u043d\u044b\u0445; \u0443 \u043d\u0443\u043b\u044f \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442: \u0435\u0433\u043e \u0434\u0435\u043b\u0438\u0442 \u043b\u044e\u0431\u043e\u0435 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e;<\/li>\n<li>1 \u0438 \u0441\u0430\u043c\u043e \u0447\u0438\u0441\u043b\u043e \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0445\u043e\u0434\u044f\u0442 \u0432 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 (\u0434\u043b\u044f n &gt;= 1);<\/li>\n<li>0 \u043a\u0440\u0430\u0442\u0435\u043d \u043b\u044e\u0431\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443 (0 = d * 0), \u043d\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442: \u043d\u0430 \u043d\u043e\u043b\u044c \u043d\u0435 \u0434\u0435\u043b\u044f\u0442;<\/li>\n<li>\u0432 \u0448\u043a\u043e\u043b\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0441\u0447\u0438\u0442\u0430\u044e\u0442 \u0441\u0440\u0435\u0434\u0438 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b; \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u0447\u0438\u0441\u0435\u043b \u0443 12 \u0435\u0441\u0442\u044c \u0438 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 -1, -2, &#8230;, -12. \u0414\u0430\u043b\u044c\u0448\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0438\u043d\u043e\u0435, \u0440\u0435\u0447\u044c \u043e \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445.<\/li>\n<\/ul>\n<p>\u0427\u0430\u0441\u0442\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0432 \u0448\u043a\u043e\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0441\u043a\u0430\u0437\u0430\u0445 &#8212; \u00ab\u0443 21 \u0434\u0432\u0430 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f: 3 \u0438 7\u00bb. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0447\u0435\u0442\u044b\u0440\u0435: 1, 3, 7, 21. \u0427\u0438\u0441\u043b\u0430 3 \u0438 7 &#8212; \u044d\u0442\u043e <strong>\u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0435<\/strong> \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 (\u0432\u0441\u0435, \u043a\u0440\u043e\u043c\u0435 1 \u0438 \u0441\u0430\u043c\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430). <strong>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438<\/strong> \u043e\u0431\u044b\u0447\u043d\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u043a\u0440\u043e\u043c\u0435 \u0441\u0430\u043c\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430: \u0443 21 \u044d\u0442\u043e 1, 3 \u0438 7.<\/p>\n<h2 id=\"s2\">\u041a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0447\u0438\u0441\u043b\u0430<\/h2>\n<p>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0438\u0434\u0443\u0442 \u043f\u0430\u0440\u0430\u043c\u0438: \u0435\u0441\u043b\u0438 d \u0434\u0435\u043b\u0438\u0442 n, \u0442\u043e \u0434\u0435\u043b\u0438\u0442 \u0438 n \/ d. \u0414\u043b\u044f 36 \u044d\u0442\u043e \u043f\u0430\u0440\u044b 1-36, 2-18, 3-12, 4-9 \u0438 6-6. \u041c\u0435\u043d\u044c\u0448\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u0430\u0440\u044b \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u043e\u0440\u043d\u044f \u0438\u0437 n, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0434\u043e n \u043d\u0435 \u043d\u0443\u0436\u043d\u043e &#8212; \u0445\u0432\u0430\u0442\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c d \u043e\u0442 1 \u0434\u043e \u221an.<\/p>\n<p>\u041f\u0440\u043e\u0433\u043e\u043d\u0438\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u0434\u043b\u044f 36 (\u221a36 = 6):<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">d = 1  -&gt; 36 % 1 = 0 -&gt; \u043f\u0430\u0440\u0430 (1, 36)\nd = 2  -&gt; 36 % 2 = 0 -&gt; \u043f\u0430\u0440\u0430 (2, 18)\nd = 3  -&gt; 36 % 3 = 0 -&gt; \u043f\u0430\u0440\u0430 (3, 12)\nd = 4  -&gt; 36 % 4 = 0 -&gt; \u043f\u0430\u0440\u0430 (4, 9)\nd = 5  -&gt; 36 % 5 = 1 -&gt; \u043d\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\nd = 6  -&gt; 36 % 6 = 0 -&gt; \u043f\u0430\u0440\u0430 (6, 6), \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\n<\/code><\/pre>\n<p>\u0422\u043e\u0442 \u0436\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0432 \u043a\u043e\u0434\u0435:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">import<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">math<\/span>\n\n<span style=\"color: #C678DD\">def<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">divisors<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">:<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">-&gt;<\/span> <span style=\"color: #E5C07B\">list<\/span><span style=\"color: #ABB2BF\">[<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">]:<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #98C379\">\"\"\"\u0412\u0441\u0435 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 n &gt;= 1 \u0437\u0430 O(sqrt(n)) \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a.\"\"\"<\/span>\n    <span style=\"color: #C678DD\">if<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">&lt;<\/span> <span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">:<\/span>\n        <span style=\"color: #C678DD\">raise<\/span> <span style=\"color: #E06C75\">ValueError<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #98C379\">\"\u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 n &gt;= 1\"<\/span><span style=\"color: #ABB2BF\">)<\/span>\n    <span style=\"color: #E06C75\">small<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">large<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #ABB2BF\">[],<\/span> <span style=\"color: #ABB2BF\">[]<\/span>\n    <span style=\"color: #C678DD\">for<\/span> <span style=\"color: #E06C75\">d<\/span> <span style=\"color: #56B6C2\">in<\/span> <span style=\"color: #E5C07B\">range<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">isqrt<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">+<\/span> <span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">):<\/span>\n        <span style=\"color: #C678DD\">if<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #E06C75\">d<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">:<\/span>\n            <span style=\"color: #E06C75\">small<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">append<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">d<\/span><span style=\"color: #ABB2BF\">)<\/span>\n            <span style=\"color: #C678DD\">if<\/span> <span style=\"color: #E06C75\">d<\/span> <span style=\"color: #56B6C2\">!=<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">\/\/<\/span> <span style=\"color: #E06C75\">d<\/span><span style=\"color: #ABB2BF\">:<\/span>          <span style=\"color: #7F848E\"># \u0443 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430 \u043f\u0430\u0440\u0430 d*d - \u043e\u0434\u0438\u043d \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/span>\n                <span style=\"color: #E06C75\">large<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">append<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">\/\/<\/span> <span style=\"color: #E06C75\">d<\/span><span style=\"color: #ABB2BF\">)<\/span>\n    <span style=\"color: #C678DD\">return<\/span> <span style=\"color: #E06C75\">small<\/span> <span style=\"color: #56B6C2\">+<\/span> <span style=\"color: #E06C75\">large<\/span><span style=\"color: #ABB2BF\">[::<\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">]<\/span>\n\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">divisors<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">36<\/span><span style=\"color: #ABB2BF\">))<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">divisors<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">21<\/span><span style=\"color: #ABB2BF\">))<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">divisors<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">97<\/span><span style=\"color: #ABB2BF\">))<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">len<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">divisors<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">720720<\/span><span style=\"color: #ABB2BF\">)))<\/span><\/code><\/pre>\n<p>\u0412\u044b\u0432\u043e\u0434:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">[1, 2, 3, 4, 6, 9, 12, 18, 36]\n[1, 3, 7, 21]\n[1, 97]\n240\n<\/code><\/pre>\n<p><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">math.isqrt<\/code> \u0434\u0430\u0435\u0442 \u0446\u0435\u043b\u044b\u0439 \u043a\u043e\u0440\u0435\u043d\u044c \u0431\u0435\u0437 \u043f\u043e\u0433\u0440\u0435\u0448\u043d\u043e\u0441\u0442\u0438 float. \u0414\u043b\u044f 720 720 \u044d\u0442\u043e 848 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0432\u043c\u0435\u0441\u0442\u043e 720 720.<\/p>\n<p><strong>\u041e\u0448\u0438\u0431\u043a\u0430: \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u0447\u0435\u0442 \u0443 \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430.<\/strong> \u0415\u0441\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0431\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043f\u0430\u0440\u044b \u0431\u0435\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c 6 \u0443 \u0447\u0438\u0441\u043b\u0430 36 \u043f\u043e\u043f\u0430\u0434\u0435\u0442 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u0432\u0430\u0436\u0434\u044b:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">import<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">math<\/span>\n\n<span style=\"color: #C678DD\">def<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">divisors_bad<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">):<\/span>\n    <span style=\"color: #E06C75\">res<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #ABB2BF\">[]<\/span>\n    <span style=\"color: #C678DD\">for<\/span> <span style=\"color: #E06C75\">d<\/span> <span style=\"color: #56B6C2\">in<\/span> <span style=\"color: #E5C07B\">range<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">isqrt<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">+<\/span> <span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">):<\/span>\n        <span style=\"color: #C678DD\">if<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #E06C75\">d<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">:<\/span>\n            <span style=\"color: #E06C75\">res<\/span> <span style=\"color: #56B6C2\">+=<\/span> <span style=\"color: #ABB2BF\">[<\/span><span style=\"color: #E06C75\">d<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">\/\/<\/span> <span style=\"color: #E06C75\">d<\/span><span style=\"color: #ABB2BF\">]<\/span>\n    <span style=\"color: #C678DD\">return<\/span> <span style=\"color: #E5C07B\">sorted<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">res<\/span><span style=\"color: #ABB2BF\">)<\/span>\n\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">divisors_bad<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">36<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E5C07B\">len<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">divisors_bad<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">36<\/span><span style=\"color: #ABB2BF\">)))<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">[1, 2, 3, 4, 6, 6, 9, 12, 18, 36] 10\n<\/code><\/pre>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 &#8212; \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">if d != n \/\/ d<\/code>, \u043a\u0430\u043a \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u0438\u0434\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0442\u043e\u0447\u043d\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u0445: \u0442\u0435\u0441\u0442 \u043d\u0430 12 \u0438\u043b\u0438 21 \u0435\u0435 \u043d\u0435 \u043f\u043e\u0439\u043c\u0430\u0435\u0442.<\/p>\n<h2 id=\"s3\">\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438<\/h2>\n<p><strong>\u041f\u0440\u043e\u0441\u0442\u043e\u0435<\/strong> \u0447\u0438\u0441\u043b\u043e &#8212; \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 1, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u043e\u0432\u043d\u043e \u0434\u0432\u0430 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f: 1 \u0438 \u043e\u043d\u043e \u0441\u0430\u043c\u043e (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">divisors(97)<\/code> \u0432\u044b\u0448\u0435). <strong>\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435<\/strong> &#8212; \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435 1, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0432\u0443\u0445. \u0415\u0434\u0438\u043d\u0438\u0446\u0430 \u043d\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043d\u0438 \u043a \u0442\u0435\u043c, \u043d\u0438 \u043a \u0434\u0440\u0443\u0433\u0438\u043c: \u0443 \u043d\u0435\u0435 \u043e\u0434\u0438\u043d \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c \u0441\u0442\u043e\u0438\u0442 O(\u221an), \u0430 \u043d\u0435 O(n): \u0443 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u221an \u043f\u0430\u0440\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 \u221an \u0438 \u043d\u0430\u0439\u0434\u0435\u0442\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435. \u0414\u043b\u044f \u0447\u0438\u0441\u0435\u043b \u0432 \u0441\u043e\u0442\u043d\u0438 \u0446\u0438\u0444\u0440 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u044e\u0442 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u041c\u0438\u043b\u043b\u0435\u0440\u0430 &#8212; \u0420\u0430\u0431\u0438\u043d\u0430).<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u0438\u0435 n \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u0438 n = p1^a1 * p2^a2 * &#8230;, \u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0432\u043d\u043e (a1 + 1)(a2 + 1)&#8230; \u0414\u043b\u044f 720 720 = 2^4 * 3^2 * 5 * 7 * 11 * 13 \u044d\u0442\u043e 5 * 3 * 2 * 2 * 2 * 2 = 240, \u0447\u0442\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043a\u043e\u0434\u0430. \u0421\u0430\u043c\u043e \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u0438 &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u0430.<\/p>\n<h2 id=\"s4\">\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438<\/h2>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u044c \u0432 \u0443\u043c\u0435 \u043f\u043e \u0446\u0438\u0444\u0440\u0430\u043c \u0447\u0438\u0441\u043b\u0430. \u0412 \u043a\u043e\u0434\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">n % d == 0<\/code>.<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c<\/th>\n<th>\u041f\u0440\u0438\u0437\u043d\u0430\u043a<\/th>\n<th>\u041f\u0440\u0438\u043c\u0435\u0440<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>2<\/td>\n<td>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0446\u0438\u0444\u0440\u0430 \u0447\u0435\u0442\u043d\u0430\u044f (0, 2, 4, 6, 8)<\/td>\n<td>1 358<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 3<\/td>\n<td>471: 4+7+1 = 12<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u0447\u0438\u0441\u043b\u043e \u0438\u0437 \u0434\u0432\u0443\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0446\u0438\u0444\u0440 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 4<\/td>\n<td>1 316: 16<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0446\u0438\u0444\u0440\u0430 0 \u0438\u043b\u0438 5<\/td>\n<td>2 045<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0438 \u043d\u0430 2, \u0438 \u043d\u0430 3<\/td>\n<td>474<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>\u0447\u0438\u0441\u043b\u043e \u0438\u0437 \u0442\u0440\u0435\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0446\u0438\u0444\u0440 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 8<\/td>\n<td>5 120: 120<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>\u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 9<\/td>\n<td>4 752: 4+7+5+2 = 18<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0446\u0438\u0444\u0440\u0430 0<\/td>\n<td>930<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>\u0437\u043d\u0430\u043a\u043e\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 11<\/td>\n<td>4 752: 2-5+7-4 = 0<\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<td>\u0434\u0432\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u044b 00, 25, 50 \u0438\u043b\u0438 75<\/td>\n<td>3 175<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442: 10 \u043f\u0440\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043d\u0430 9 (\u0438 \u043d\u0430 3) \u0434\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u0442\u043e\u043a 1, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438\u043c\u0435\u0435\u0442 \u0442\u043e\u0442 \u0436\u0435 \u043e\u0441\u0442\u0430\u0442\u043e\u043a, \u0447\u0442\u043e \u0438 \u0441\u0443\u043c\u043c\u0430 \u0435\u0433\u043e \u0446\u0438\u0444\u0440. \u0410 10 \u043f\u0440\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043d\u0430 11 \u0434\u0430\u0435\u0442 \u043e\u0441\u0442\u0430\u0442\u043e\u043a -1, \u043e\u0442\u0441\u044e\u0434\u0430 \u0437\u043d\u0430\u043a\u043e\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430. \u041f\u0440\u0438\u0437\u043d\u0430\u043a \u0434\u043b\u044f 6 &#8212; \u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043e\u0431\u0449\u0435\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430: \u0435\u0441\u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u0434\u0432\u0430 \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u043b\u0430 (\u041d\u041e\u0414 = 1), \u043e\u043d\u043e \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0438 \u043d\u0430 \u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435. \u0414\u043b\u044f 4 \u0438 6 \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a: 12 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0430, \u043d\u043e \u043d\u0435 \u043d\u0430 24.<\/p>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u043a\u043e\u0434\u043e\u043c \u0438 \u0441\u0440\u0430\u0432\u043d\u0438\u043c \u0441 \u043f\u0440\u044f\u043c\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u043e\u0439 \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u0447\u0438\u0441\u0435\u043b:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">def<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">digit_sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">):<\/span>\n    <span style=\"color: #C678DD\">return<\/span> <span style=\"color: #E5C07B\">sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #C678DD\">for<\/span> <span style=\"color: #E06C75\">c<\/span> <span style=\"color: #56B6C2\">in<\/span> <span style=\"color: #E5C07B\">str<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">))<\/span>\n\n<span style=\"color: #C678DD\">def<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">alt_sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">):<\/span>\n    <span style=\"color: #7F848E\"># \u0437\u043d\u0430\u043a\u043e\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e: + - + - ...<\/span>\n    <span style=\"color: #C678DD\">return<\/span> <span style=\"color: #E5C07B\">sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">c<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">*<\/span> <span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">**<\/span> <span style=\"color: #E06C75\">i<\/span> <span style=\"color: #C678DD\">for<\/span> <span style=\"color: #E06C75\">i<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">c<\/span> <span style=\"color: #56B6C2\">in<\/span> <span style=\"color: #E5C07B\">enumerate<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">reversed<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E5C07B\">str<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">))))<\/span>\n\n<span style=\"color: #C678DD\">for<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">in<\/span> <span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">4752<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">4753<\/span><span style=\"color: #ABB2BF\">):<\/span>\n    <span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #98C379\">\"\u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440\"<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">digit_sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #98C379\">\"-&gt; \u043d\u0430 3:\"<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">3<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #98C379\">\"\u043d\u0430 9:\"<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">9<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span>\n    <span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #98C379\">\"\u0437\u043d\u0430\u043a\u043e\u043f\u0435\u0440\u0435\u043c. \u0441\u0443\u043c\u043c\u0430\"<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">alt_sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #98C379\">\"-&gt; \u043d\u0430 11:\"<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">n<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">11<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span>\n\n<span style=\"color: #7F848E\"># \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u043c \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u0447\u0438\u0441\u0435\u043b<\/span>\n<span style=\"color: #E06C75\">ok<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #E5C07B\">all<\/span><span style=\"color: #ABB2BF\">((<\/span><span style=\"color: #E06C75\">digit_sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">k<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">3<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">k<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">3<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">and<\/span>\n         <span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">digit_sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">k<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">9<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">k<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">9<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">and<\/span>\n         <span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">alt_sum<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">k<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">11<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">k<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #D19A66\">11<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">)<\/span>\n         <span style=\"color: #C678DD\">for<\/span> <span style=\"color: #E06C75\">k<\/span> <span style=\"color: #56B6C2\">in<\/span> <span style=\"color: #E5C07B\">range<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">1_000_001<\/span><span style=\"color: #ABB2BF\">))<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">ok<\/span><span style=\"color: #ABB2BF\">)<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">4752 \u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 18 -&gt; \u043d\u0430 3: True \u043d\u0430 9: True\n4752 \u0437\u043d\u0430\u043a\u043e\u043f\u0435\u0440\u0435\u043c. \u0441\u0443\u043c\u043c\u0430 0 -&gt; \u043d\u0430 11: True\n4753 \u0441\u0443\u043c\u043c\u0430 \u0446\u0438\u0444\u0440 19 -&gt; \u043d\u0430 3: False \u043d\u0430 9: False\n4753 \u0437\u043d\u0430\u043a\u043e\u043f\u0435\u0440\u0435\u043c. \u0441\u0443\u043c\u043c\u0430 1 -&gt; \u043d\u0430 11: False\nTrue\n<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0433\u043e\u043d \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0435 \u0447\u0438\u0441\u0435\u043b &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u0430 \u043d\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e; \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e &#8212; \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u043e \u043e\u0441\u0442\u0430\u0442\u043a\u0438 \u0432\u044b\u0448\u0435.<\/p>\n<h2 id=\"s5\">\u041d\u041e\u0414 \u0438 \u041d\u041e\u041a<\/h2>\n<p><strong>\u041d\u041e\u0414<\/strong> (\u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u043e\u0431\u0449\u0438\u0439 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c) \u0434\u0432\u0443\u0445 \u0447\u0438\u0441\u0435\u043b &#8212; \u0441\u0430\u043c\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u0435\u043b\u0438\u0442 \u043e\u0431\u0430. <strong>\u041d\u041e\u041a<\/strong> (\u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u043e\u0431\u0449\u0435\u0435 \u043a\u0440\u0430\u0442\u043d\u043e\u0435) &#8212; \u0441\u0430\u043c\u043e\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u043d\u0430 \u043e\u0431\u0430. \u0414\u043b\u044f \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 a \u0438 b \u043e\u043d\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0444\u043e\u0440\u043c\u0443\u043b\u043e\u0439 \u041d\u041e\u0414(a, b) * \u041d\u041e\u041a(a, b) = a * b. \u0414\u043b\u044f 84 \u0438 36: \u041d\u041e\u0414 = 12, \u041d\u041e\u041a = 252, \u0438 12 * 252 = 3024 = 84 * 36.<\/p>\n<p>\u0413\u0434\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e:<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0417\u0430\u0434\u0430\u0447\u0430<\/th>\n<th>\u0427\u0442\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c<\/th>\n<th>\u041f\u0440\u0438\u043c\u0435\u0440<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0434\u0440\u043e\u0431\u044c<\/td>\n<td>\u041d\u041e\u0414 \u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044f \u0438 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044f<\/td>\n<td>84\/36 -&gt; 7\/3<\/td>\n<\/tr>\n<tr>\n<td>\u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0434\u0440\u043e\u0431\u0438 \u043a \u043e\u0431\u0449\u0435\u043c\u0443 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044e<\/td>\n<td>\u041d\u041e\u041a \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u0435\u0439<\/td>\n<td>5\/12 + 7\/18 -&gt; \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c 36<\/td>\n<\/tr>\n<tr>\n<td>\u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0443\u0442 \u0434\u0432\u0430 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f<\/td>\n<td>\u041d\u041e\u041a \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432<\/td>\n<td>\u0437\u0430\u0434\u0430\u0447\u0438 \u0440\u0430\u0437 \u0432 12 \u0438 18 \u043c\u0438\u043d\u0443\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0443\u0442 \u0447\u0435\u0440\u0435\u0437 36 \u043c\u0438\u043d\u0443\u0442<\/td>\n<\/tr>\n<tr>\n<td>\u043d\u0430\u0440\u0435\u0437\u0430\u0442\u044c \u0431\u0435\u0437 \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u043d\u0430 \u0440\u0430\u0432\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438<\/td>\n<td>\u041d\u041e\u0414 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432<\/td>\n<td>\u043b\u0438\u0441\u0442 84 x 36 -&gt; \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u044b 12 x 12<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u0415\u0441\u043b\u0438 \u041d\u041e\u0414(a, b) = 1, \u0447\u0438\u0441\u043b\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 <strong>\u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438<\/strong>: 8 \u0438 15 \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0435, \u0445\u043e\u0442\u044f \u043d\u0438 \u043e\u0434\u043d\u043e \u0438\u0437 \u043d\u0438\u0445 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0435.<\/p>\n<h2 id=\"s6\">\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430: \u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0439\u0442\u0438 \u041d\u041e\u0414<\/h2>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u043e\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u041d\u041e\u0414(a, b) = \u041d\u041e\u0414(b, a mod b) \u0438 \u041d\u041e\u0414(a, 0) = a. \u0414\u0435\u043b\u0438\u043c \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c, \u043f\u043e\u043a\u0430 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043d\u0443\u043b\u0435\u043c; \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a &#8212; \u041d\u041e\u0414.<\/p>\n<p>\u0414\u043b\u044f 84 \u0438 36:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">84 = 2*36 + 12\n36 = 3*12 + 0\n<\/code><\/pre>\n<p>\u041e\u0441\u0442\u0430\u0442\u043e\u043a \u0441\u0442\u0430\u043b \u043d\u0443\u043b\u0435\u043c, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0439 &#8212; 12, \u0437\u043d\u0430\u0447\u0438\u0442 \u041d\u041e\u0414(84, 36) = 12. \u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Python:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">import<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">math<\/span>\n\n<span style=\"color: #C678DD\">def<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">:<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">:<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">-&gt;<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">:<\/span>\n<span style=\"color: #ABB2BF\">    <\/span><span style=\"color: #98C379\">\"\"\"\u041d\u041e\u0414 \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 \u0415\u0432\u043a\u043b\u0438\u0434\u0430 (\u0441 \u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c).\"\"\"<\/span>\n    <span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #E5C07B\">abs<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E5C07B\">abs<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">)<\/span>\n    <span style=\"color: #C678DD\">while<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">:<\/span>\n        <span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">a<\/span> <span style=\"color: #56B6C2\">%<\/span> <span style=\"color: #E06C75\">b<\/span>\n    <span style=\"color: #C678DD\">return<\/span> <span style=\"color: #E06C75\">a<\/span>\n\n<span style=\"color: #C678DD\">def<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #61AFEF; font-weight: bold\">lcm<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">:<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">:<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">-&gt;<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">:<\/span>\n    <span style=\"color: #C678DD\">if<\/span> <span style=\"color: #E06C75\">a<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span> <span style=\"color: #56B6C2\">or<\/span> <span style=\"color: #E06C75\">b<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">:<\/span>\n        <span style=\"color: #C678DD\">return<\/span> <span style=\"color: #D19A66\">0<\/span>\n    <span style=\"color: #C678DD\">return<\/span> <span style=\"color: #E5C07B\">abs<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span> <span style=\"color: #56B6C2\">\/\/<\/span> <span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">*<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">)<\/span>\n\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">84<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">36<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E06C75\">lcm<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">84<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">36<\/span><span style=\"color: #ABB2BF\">))<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">12<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">18<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">5<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">))<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">84<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">36<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">lcm<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">84<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">36<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">12<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">18<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">30<\/span><span style=\"color: #ABB2BF\">),<\/span> <span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">lcm<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #D19A66\">4<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">6<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">10<\/span><span style=\"color: #ABB2BF\">))<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">12 252\n6 5 0\n12 252 6 60\n<\/code><\/pre>\n<p><code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">abs<\/code> \u0434\u0435\u043b\u0430\u0435\u0442 \u041d\u041e\u0414 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b. <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">gcd(0, 0)<\/code> = 0 &#8212; \u0441\u043e\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435, \u043f\u0440\u0438\u043d\u044f\u0442\u043e\u0435 \u0438 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435. \u0412 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043a\u043e\u0434\u0435 \u0431\u0435\u0440\u0438\u0442\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">math.gcd<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">math.lcm<\/code>: \u0441 Python 3.9 \u043e\u043d\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0442 \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0431\u044b\u0441\u0442\u0440\u044b\u0439: \u0447\u0438\u0441\u043b\u043e \u0448\u0430\u0433\u043e\u0432 \u0440\u0430\u0441\u0442\u0435\u0442 \u043a\u0430\u043a \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c \u043e\u0442 \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430. \u0425\u0443\u0434\u0448\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 &#8212; \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0424\u0438\u0431\u043e\u043d\u0430\u0447\u0447\u0438, \u0433\u0434\u0435 \u0432\u0441\u0435 \u0447\u0430\u0441\u0442\u043d\u044b\u0435, \u043a\u0440\u043e\u043c\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e, \u0440\u0430\u0432\u043d\u044b 1. \u0414\u043b\u044f 89 \u0438 55 \u043d\u0443\u0436\u043d\u043e 9 \u0434\u0435\u043b\u0435\u043d\u0438\u0439 \u0441 \u043e\u0441\u0442\u0430\u0442\u043a\u043e\u043c, \u0430 \u0434\u043b\u044f 1 000 000 \u0438 999 999 &#8212; \u0432\u0441\u0435\u0433\u043e 2.<\/p>\n<p><strong>\u041e\u0448\u0438\u0431\u043a\u0430: \u041d\u041e\u041a \u0447\u0435\u0440\u0435\u0437 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\/<\/code> \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0447\u0438\u0441\u043b\u0430\u0445.<\/strong> \u0424\u043e\u0440\u043c\u0443\u043b\u0430 a * b \/ \u041d\u041e\u0414 \u0432\u0435\u0440\u043d\u0430 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043d\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\/<\/code> \u0432 Python \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 float, \u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e 53 \u0431\u0438\u0442\u0430 \u043c\u0430\u043d\u0442\u0438\u0441\u0441\u044b:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">import<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">math<\/span>\n<span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #D19A66\">2<\/span><span style=\"color: #56B6C2\">**<\/span><span style=\"color: #D19A66\">61<\/span> <span style=\"color: #56B6C2\">-<\/span> <span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #D19A66\">2<\/span><span style=\"color: #56B6C2\">**<\/span><span style=\"color: #D19A66\">59<\/span> <span style=\"color: #56B6C2\">-<\/span> <span style=\"color: #D19A66\">1<\/span>          <span style=\"color: #7F848E\"># \u0434\u0432\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u043b\u0430<\/span>\n<span style=\"color: #E06C75\">bad<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #E5C07B\">int<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span> <span style=\"color: #56B6C2\">*<\/span> <span style=\"color: #E06C75\">b<\/span> <span style=\"color: #56B6C2\">\/<\/span> <span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">))<\/span>    <span style=\"color: #7F848E\"># \"\/\" \u0434\u0430\u0435\u0442 float<\/span>\n<span style=\"color: #E06C75\">good<\/span> <span style=\"color: #56B6C2\">=<\/span> <span style=\"color: #E06C75\">a<\/span> <span style=\"color: #56B6C2\">\/\/<\/span> <span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">gcd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">*<\/span> <span style=\"color: #E06C75\">b<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">bad<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #E06C75\">good<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">good<\/span> <span style=\"color: #56B6C2\">-<\/span> <span style=\"color: #E06C75\">bad<\/span><span style=\"color: #ABB2BF\">)<\/span>\n<span style=\"color: #E5C07B\">print<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">math<\/span><span style=\"color: #56B6C2\">.<\/span><span style=\"color: #E06C75\">lcm<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">a<\/span><span style=\"color: #ABB2BF\">,<\/span> <span style=\"color: #E06C75\">b<\/span><span style=\"color: #ABB2BF\">)<\/span> <span style=\"color: #56B6C2\">==<\/span> <span style=\"color: #E06C75\">good<\/span><span style=\"color: #ABB2BF\">)<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">False -2882303761517117439\nTrue\n<\/code><\/pre>\n<p>\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 &#8212; \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u043b\u0435\u043d\u0438\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\/\/<\/code>, \u043f\u0440\u0438\u0447\u0435\u043c \u0434\u043e \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f: <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">a \/\/ gcd(a, b) * b<\/code>. \u0412 Python \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043f\u0430\u043c\u044f\u0442\u044c, \u0430 \u0432 C, C++ \u0438 Java \u0441 \u0442\u0438\u043f\u0430\u043c\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0448\u0438\u0440\u0438\u043d\u044b \u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u044b\u043c \u0435\u0449\u0435 \u0438 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u0440\u0438\u0441\u043a \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0438.<\/p>\n<h2 id=\"s7\">\u041e\u0441\u0442\u0430\u0442\u043e\u043a \u043e\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b: \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u044f\u0437\u044b\u043a\u0430<\/h2>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">n % d == 0<\/code> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445, \u0430 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u0441 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c &#8212; \u043d\u0435\u0442. \u0412 Python \u0437\u043d\u0430\u043a \u043e\u0441\u0442\u0430\u0442\u043a\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044f, \u0432 JavaScript, Java, C \u0438 C++ &#8212; \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c \u0434\u0435\u043b\u0438\u043c\u043e\u0433\u043e:<\/p>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\"><span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">isOddBad<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\"> =&gt; <\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">%<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">2<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">===<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">1<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #C678DD\">const<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">isOdd<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">=<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\"> =&gt; <\/span><span style=\"color: #E06C75\">n<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">%<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">2<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">!==<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">0<\/span><span style=\"color: #ABB2BF\">;<\/span>\n<span style=\"color: #E06C75\">console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">log<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">7<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">%<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">3<\/span><span style=\"color: #ABB2BF\">, <\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">3<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #56B6C2\">%<\/span><span style=\"color: #ABB2BF\"> <\/span><span style=\"color: #D19A66\">2<\/span><span style=\"color: #ABB2BF\">);<\/span>\n<span style=\"color: #E06C75\">console<\/span><span style=\"color: #ABB2BF\">.<\/span><span style=\"color: #E06C75\">log<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #E06C75\">isOddBad<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">3<\/span><span style=\"color: #ABB2BF\">), <\/span><span style=\"color: #E06C75\">isOdd<\/span><span style=\"color: #ABB2BF\">(<\/span><span style=\"color: #56B6C2\">-<\/span><span style=\"color: #D19A66\">3<\/span><span style=\"color: #ABB2BF\">));<\/span><\/code><\/pre>\n<pre style=\"background:#282c34;color:#abb2bf;border-radius:8px;padding:16px 20px;margin:20px 0;overflow-x:auto;font-size:14px;line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\"><code style=\"background:none\">-1 -1\nfalse true\n<\/code><\/pre>\n<p>\u0412 Node.js 24 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">-3 % 2<\/code> \u0434\u0430\u0435\u0442 -1, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">isOddBad(-3)<\/code> \u043e\u0448\u0438\u0431\u043e\u0447\u043d\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">false<\/code>. \u0412 Python \u0442\u043e \u0436\u0435 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">-7 % 3<\/code> \u0434\u0430\u0435\u0442 2, \u0430 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">-3 % 2<\/code> &#8212; 1. \u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043d\u0430 \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u043d\u0443\u043b\u044e (<code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">n % 2 !== 0<\/code>), \u0430 \u043d\u0435 \u043d\u0430 \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e 1. \u0422\u043e \u0436\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0432 \u043a\u043e\u043b\u044c\u0446\u0435\u0432\u043e\u043c \u0431\u0443\u0444\u0435\u0440\u0435 \u043f\u0440\u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u0434\u0432\u0438\u0433\u0435.<\/p>\n<h2 id=\"s8\">\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<ul>\n<li>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 &#8212; \u043e\u0434\u043d\u0430 \u0441\u0432\u044f\u0437\u044c \u0441 \u0434\u0432\u0443\u0445 \u0441\u0442\u043e\u0440\u043e\u043d: d \u0434\u0435\u043b\u0438\u0442 n \u0442\u043e\u0433\u0434\u0430 \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 n \u043a\u0440\u0430\u0442\u043d\u043e d. \u0423 \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u0439 \u0438 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u043a\u0440\u0430\u0442\u043d\u044b\u0445; 0 \u043a\u0440\u0430\u0442\u0435\u043d \u043b\u044e\u0431\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443, \u043d\u043e \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442.<\/li>\n<li>\u0412\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438 n \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u043e\u043c \u0434\u043e \u221an \u043f\u0430\u0440\u0430\u043c\u0438 (d, n \/ d); \u043d\u0430 \u0442\u043e\u0447\u043d\u044b\u0445 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u0430\u0445 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u0447\u0435\u0442.<\/li>\n<li>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0441\u0447\u0435\u0442\u0430 \u0432 \u0443\u043c\u0435 \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u044e\u0442\u0441\u044f \u043e\u0441\u0442\u0430\u0442\u043a\u0430\u043c\u0438 10 \u043f\u0440\u0438 \u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043d\u0430 3, 9 \u0438 11; \u0432 \u043a\u043e\u0434\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">n % d == 0<\/code>.<\/li>\n<li>\u041d\u041e\u0414 \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0440\u043e\u0431\u0438 \u0438 \u0440\u0435\u0436\u0435\u0442 \u043d\u0430 \u0440\u0430\u0432\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438, \u041d\u041e\u041a \u0434\u0430\u0435\u0442 \u043e\u0431\u0449\u0438\u0439 \u0437\u043d\u0430\u043c\u0435\u043d\u0430\u0442\u0435\u043b\u044c \u0438 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f; \u041d\u041e\u0414 * \u041d\u041e\u041a = a * b \u0434\u043b\u044f \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b.<\/li>\n<li>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u041d\u041e\u0414 \u0437\u0430 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0448\u0430\u0433\u043e\u0432; \u0432 Python \u0431\u0435\u0440\u0438\u0442\u0435 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">math.gcd<\/code> \u0438 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">math.lcm<\/code>, \u0430 \u041d\u041e\u041a \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\/\/<\/code>, \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">\/<\/code>.<\/li>\n<\/ul>\n<h2 id=\"s9\">\u0413\u0434\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \/ \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u043e\u0439<\/h2>\n<p>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435 \u0447\u0430\u0449\u0435, \u0447\u0435\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f: \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0434\u0440\u043e\u0431\u0435\u0439 \u0432 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">fractions.Fraction<\/code>, \u0440\u0430\u0441\u0447\u0435\u0442 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 \u0443 \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0438 \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439, \u0448\u0430\u0433 \u043e\u0431\u0445\u043e\u0434\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441 \u0435\u0433\u043e \u0434\u043b\u0438\u043d\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0432\u0441\u0435 \u044f\u0447\u0435\u0439\u043a\u0438. \u0412 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0440\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 \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e &#8212; \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430 \u0432 RSA.<\/p>\n<div class=\"oj-cta\" style=\"background:#fbf4e4;border-left:4px solid #c9962b;border-radius:8px;padding:16px 20px;margin:24px 0\">\n<p style=\"margin:0 0 8px\"><strong>\u041e\u0441\u0432\u043e\u0439\u0442\u0435 \u0442\u0435\u043c\u0443 \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u0434\u0438\u0441\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0443, \u043b\u0438\u043d\u0435\u0439\u043d\u0443\u044e \u0430\u043b\u0433\u0435\u0431\u0440\u0443 \u0438 \u0442\u0435\u043e\u0440\u0438\u044e \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u0435\u0439 \u0441 \u0443\u043f\u043e\u0440\u043e\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432 \u043a\u043e\u0434\u0435, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043a\u0443\u0440\u0441 <a href=\"https:\/\/otus.ru\/lessons\/prikladnaya-matematika\/?int_article=teoriya-chisel-deliteli-i-kratnye&amp;int_place=article&amp;int_variant=v1\">\u00ab\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u0439\u00bb<\/a>. \u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u043c\u044b \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/otus.ru\/events\/?int_article=teoriya-chisel-deliteli-i-kratnye&amp;int_place=article&amp;int_variant=v1\">\u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0443\u0440\u043e\u043a\u0430\u0445 Otus<\/a>.<\/p>\n<\/div>\n<h2 id=\"s10\">FAQ<\/h2>\n<p><strong>\u041a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u041d\u041e\u0414 \u0442\u0440\u0435\u0445 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0447\u0438\u0441\u0435\u043b?<\/strong><br \/>\n\u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e: \u041d\u041e\u0414(a, b, c) = \u041d\u041e\u0414(\u041d\u041e\u0414(a, b), c). \u0422\u0430\u043a \u0436\u0435 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u041d\u041e\u041a. \u0412 Python <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">math.gcd(12, 18, 30)<\/code> \u0441\u0440\u0430\u0437\u0443 \u0432\u0435\u0440\u043d\u0435\u0442 6.<\/p>\n<p><strong>\u0427\u0435\u043c \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044f?<\/strong><br \/>\n\u041c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c &#8212; \u0440\u043e\u043b\u044c \u0447\u0438\u0441\u043b\u0430 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0438: \u0432 12 = 3 * 4 \u043e\u0431\u0430 \u0447\u0438\u0441\u043b\u0430 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u0438. \u041b\u044e\u0431\u043e\u0439 \u043d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u043d\u043e\u0436\u0438\u0442\u0435\u043b\u044c \u0432 \u0442\u0430\u043a\u043e\u043c \u0440\u0430\u0437\u043b\u043e\u0436\u0435\u043d\u0438\u0438 &#8212; \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430, \u043d\u043e \u0441\u043b\u043e\u0432\u043e \u00ab\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c\u00bb \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0447\u0438\u0441\u043b\u0430\u043c\u0438, \u0430 \u043d\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c.<\/p>\n<p><strong>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0440\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?<\/strong><br \/>\n\u041e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u041d\u041e\u0414(a, b), \u043d\u043e \u0438 \u0446\u0435\u043b\u044b\u0435 x \u0438 y, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 a * x + b * y = \u041d\u041e\u0414(a, b). \u041a\u043e\u0433\u0434\u0430 \u0447\u0438\u0441\u043b\u0430 \u0432\u0437\u0430\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0435, x \u0434\u0430\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0439 \u043a a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043f\u043e \u043c\u043e\u0434\u0443\u043b\u044e b; \u0441 Python 3.8 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442 <code style=\"background:#eef0f3;color:#24292f;border-radius:4px;padding:1px 5px;font-size:0.92em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace\">pow(a, -1, b)<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0446\u0435\u043b\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 a &#8212; \u044d\u0442\u043e \u0446\u0435\u043b\u043e\u0435 \u0447\u0438\u0441\u043b\u043e d, \u043d\u0435 \u0440\u0430\u0432\u043d\u043e\u0435 \u043d\u0443\u043b\u044e, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 a \u0434\u0435\u043b\u0438\u0442\u0441\u044f \u0431\u0435\u0437 \u043e\u0441\u0442\u0430\u0442\u043a\u0430: a = d * k \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0446\u0435\u043b\u043e\u0433\u043e k. \u041a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430 d &#8212; \u043b\u044e\u0431\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432\u0438\u0434\u0430 d * k. \u042d\u0442\u043e \u043e\u0434\u043d\u0430 \u0441\u0432\u044f\u0437\u044c, \u0443\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u0441 \u0434\u0432\u0443\u0445 \u0441\u0442\u043e\u0440\u043e\u043d: \u00ab3 &#8212; \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c 12\u00bb \u0438 \u00ab12 \u043a\u0440\u0430\u0442\u043d\u043e 3\u00bb \u0437\u043d\u0430\u0447\u0430\u0442 \u043e\u0434\u043d\u043e \u0438 [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":5121,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[44],"class_list":["post-5120","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-polza","tag-matematika"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430, \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430 2-11, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0438 \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Python \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"A. Pavlenko\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#article\",\"name\":\"\\u0414\\u0435\\u043b\\u0438\\u0442\\u0435\\u043b\\u044c \\u0438 \\u043a\\u0440\\u0430\\u0442\\u043d\\u043e\\u0435 \\u0447\\u0438\\u0441\\u043b\\u0430: \\u043f\\u0440\\u0438\\u0437\\u043d\\u0430\\u043a\\u0438, \\u041d\\u041e\\u0414 \\u0438 \\u041d\\u041e\\u041a | Otus\",\"headline\":\"\\u0414\\u0435\\u043b\\u0438\\u0442\\u0435\\u043b\\u0438 \\u0438 \\u043a\\u0440\\u0430\\u0442\\u043d\\u044b\\u0435 \\u0447\\u0438\\u0441\\u043b\\u0430: \\u043f\\u0440\\u0438\\u0437\\u043d\\u0430\\u043a\\u0438 \\u0434\\u0435\\u043b\\u0438\\u043c\\u043e\\u0441\\u0442\\u0438, \\u041d\\u041e\\u0414, \\u041d\\u041e\\u041a \\u0438 \\u0430\\u043b\\u0433\\u043e\\u0440\\u0438\\u0442\\u043c \\u0415\\u0432\\u043a\\u043b\\u0438\\u0434\\u0430\",\"author\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/oj-1080x720-49.png\",\"width\":1080,\"height\":720},\"datePublished\":\"2026-09-24T09:00:00+00:00\",\"dateModified\":\"2026-09-25T15:27:49+00:00\",\"inLanguage\":\"ru-RU\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#webpage\"},\"articleSection\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435, \\u041c\\u0430\\u0442\\u0435\\u043c\\u0430\\u0442\\u0438\\u043a\\u0430\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"position\":2,\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\",\"item\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#listItem\",\"name\":\"\\u0414\\u0435\\u043b\\u0438\\u0442\\u0435\\u043b\\u0438 \\u0438 \\u043a\\u0440\\u0430\\u0442\\u043d\\u044b\\u0435 \\u0447\\u0438\\u0441\\u043b\\u0430: \\u043f\\u0440\\u0438\\u0437\\u043d\\u0430\\u043a\\u0438 \\u0434\\u0435\\u043b\\u0438\\u043c\\u043e\\u0441\\u0442\\u0438, \\u041d\\u041e\\u0414, \\u041d\\u041e\\u041a \\u0438 \\u0430\\u043b\\u0433\\u043e\\u0440\\u0438\\u0442\\u043c \\u0415\\u0432\\u043a\\u043b\\u0438\\u0434\\u0430\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#listItem\",\"position\":3,\"name\":\"\\u0414\\u0435\\u043b\\u0438\\u0442\\u0435\\u043b\\u0438 \\u0438 \\u043a\\u0440\\u0430\\u0442\\u043d\\u044b\\u0435 \\u0447\\u0438\\u0441\\u043b\\u0430: \\u043f\\u0440\\u0438\\u0437\\u043d\\u0430\\u043a\\u0438 \\u0434\\u0435\\u043b\\u0438\\u043c\\u043e\\u0441\\u0442\\u0438, \\u041d\\u041e\\u0414, \\u041d\\u041e\\u041a \\u0438 \\u0430\\u043b\\u0433\\u043e\\u0440\\u0438\\u0442\\u043c \\u0415\\u0432\\u043a\\u043b\\u0438\\u0434\\u0430\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/category\\\/polza\\\/#listItem\",\"name\":\"\\u041f\\u043e\\u043b\\u0435\\u0437\\u043d\\u043e\\u0435\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\",\"name\":\"\\u041e\\u0442\\u0443\\u0441 \\u043e\\u043d\\u043b\\u0430\\u0439\\u043d-\\u043e\\u0431\\u0440\\u0430\\u0437\\u043e\\u0432\\u0430\\u043d\\u0438\\u0435\",\"description\":\"\\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"telephone\":\"+74999389202\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/OTUS-journal-logo-180x180-1.png\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#organizationLogo\",\"width\":180,\"height\":180},\"image\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCetgtvy93o3i3CvyGXKFU3g\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/\",\"name\":\"A. Pavlenko\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/13488c7d5b657aaaf1808afd398f71e0225df07dd94eb7e5fcdfc45feff43cb5?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"A. Pavlenko\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#webpage\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/\",\"name\":\"\\u0414\\u0435\\u043b\\u0438\\u0442\\u0435\\u043b\\u044c \\u0438 \\u043a\\u0440\\u0430\\u0442\\u043d\\u043e\\u0435 \\u0447\\u0438\\u0441\\u043b\\u0430: \\u043f\\u0440\\u0438\\u0437\\u043d\\u0430\\u043a\\u0438, \\u041d\\u041e\\u0414 \\u0438 \\u041d\\u041e\\u041a | Otus\",\"description\":\"\\u0427\\u0442\\u043e \\u0442\\u0430\\u043a\\u043e\\u0435 \\u0434\\u0435\\u043b\\u0438\\u0442\\u0435\\u043b\\u044c \\u0438 \\u043a\\u0440\\u0430\\u0442\\u043d\\u043e\\u0435 \\u0447\\u0438\\u0441\\u043b\\u0430, \\u043a\\u0430\\u043a \\u043d\\u0430\\u0439\\u0442\\u0438 \\u0432\\u0441\\u0435 \\u0434\\u0435\\u043b\\u0438\\u0442\\u0435\\u043b\\u0438, \\u043f\\u0440\\u0438\\u0437\\u043d\\u0430\\u043a\\u0438 \\u0434\\u0435\\u043b\\u0438\\u043c\\u043e\\u0441\\u0442\\u0438 \\u043d\\u0430 2-11, \\u041d\\u041e\\u0414 \\u0438 \\u041d\\u041e\\u041a, \\u0430\\u043b\\u0433\\u043e\\u0440\\u0438\\u0442\\u043c \\u0415\\u0432\\u043a\\u043b\\u0438\\u0434\\u0430 \\u0438 \\u0435\\u0433\\u043e \\u0440\\u0435\\u0430\\u043b\\u0438\\u0437\\u0430\\u0446\\u0438\\u044f \\u043d\\u0430 Python \\u0441 \\u0440\\u0430\\u0437\\u0431\\u043e\\u0440\\u043e\\u043c \\u043e\\u0448\\u0438\\u0431\\u043e\\u043a.\",\"inLanguage\":\"ru-RU\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/author\\\/a-pavlenko\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/oj-1080x720-49.png\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#mainImage\",\"width\":1080,\"height\":720},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/teoriya-chisel-deliteli-i-kratnye\\\/#mainImage\"},\"datePublished\":\"2026-09-24T09:00:00+00:00\",\"dateModified\":\"2026-09-25T15:27:49+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#website\",\"url\":\"https:\\\/\\\/otus.ru\\\/journal\\\/\",\"name\":\"OTUS \\u0416\\u0443\\u0440\\u043d\\u0430\\u043b - \\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"alternateName\":\"OTUS \\u0416\\u0443\\u0440\\u043d\\u0430\\u043b\",\"description\":\"\\u0411\\u043b\\u043e\\u0433 \\u043f\\u0440\\u043e IT\",\"inLanguage\":\"ru-RU\",\"publisher\":{\"@id\":\"https:\\\/\\\/otus.ru\\\/journal\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a | Otus","description":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430, \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430 2-11, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0438 \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Python \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a.","canonical_url":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#article","name":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a | Otus","headline":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0438 \u043a\u0440\u0430\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438, \u041d\u041e\u0414, \u041d\u041e\u041a \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430","author":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"publisher":{"@id":"https:\/\/otus.ru\/journal\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2022\/11\/oj-1080x720-49.png","width":1080,"height":720},"datePublished":"2026-09-24T09:00:00+00:00","dateModified":"2026-09-25T15:27:49+00:00","inLanguage":"ru-RU","mainEntityOfPage":{"@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#webpage"},"isPartOf":{"@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#webpage"},"articleSection":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435, \u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430"},{"@type":"BreadcrumbList","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/#listItem","position":1,"name":"Home","item":"https:\/\/otus.ru\/journal\/","nextItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435"}},{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","position":2,"name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435","item":"https:\/\/otus.ru\/journal\/category\/polza\/","nextItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#listItem","name":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0438 \u043a\u0440\u0430\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438, \u041d\u041e\u0414, \u041d\u041e\u041a \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430"},"previousItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#listItem","position":3,"name":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0438 \u043a\u0440\u0430\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438, \u041d\u041e\u0414, \u041d\u041e\u041a \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430","previousItem":{"@type":"ListItem","@id":"https:\/\/otus.ru\/journal\/category\/polza\/#listItem","name":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435"}}]},{"@type":"Organization","@id":"https:\/\/otus.ru\/journal\/#organization","name":"\u041e\u0442\u0443\u0441 \u043e\u043d\u043b\u0430\u0439\u043d-\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435","description":"\u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","url":"https:\/\/otus.ru\/journal\/","telephone":"+74999389202","logo":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2026\/04\/OTUS-journal-logo-180x180-1.png","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#organizationLogo","width":180,"height":180},"image":{"@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#organizationLogo"},"sameAs":["https:\/\/www.youtube.com\/channel\/UCetgtvy93o3i3CvyGXKFU3g"]},{"@type":"Person","@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author","url":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/","name":"A. Pavlenko","image":{"@type":"ImageObject","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/13488c7d5b657aaaf1808afd398f71e0225df07dd94eb7e5fcdfc45feff43cb5?s=96&d=mm&r=g","width":96,"height":96,"caption":"A. Pavlenko"}},{"@type":"WebPage","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#webpage","url":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/","name":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a | Otus","description":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430, \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430 2-11, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0438 \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Python \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a.","inLanguage":"ru-RU","isPartOf":{"@id":"https:\/\/otus.ru\/journal\/#website"},"breadcrumb":{"@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#breadcrumblist"},"author":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"creator":{"@id":"https:\/\/otus.ru\/journal\/author\/a-pavlenko\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/otus.ru\/journal\/wp-content\/uploads\/2022\/11\/oj-1080x720-49.png","@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#mainImage","width":1080,"height":720},"primaryImageOfPage":{"@id":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/#mainImage"},"datePublished":"2026-09-24T09:00:00+00:00","dateModified":"2026-09-25T15:27:49+00:00"},{"@type":"WebSite","@id":"https:\/\/otus.ru\/journal\/#website","url":"https:\/\/otus.ru\/journal\/","name":"OTUS \u0416\u0443\u0440\u043d\u0430\u043b - \u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","alternateName":"OTUS \u0416\u0443\u0440\u043d\u0430\u043b","description":"\u0411\u043b\u043e\u0433 \u043f\u0440\u043e IT","inLanguage":"ru-RU","publisher":{"@id":"https:\/\/otus.ru\/journal\/#organization"}}]}},"aioseo_meta_data":{"post_id":"5120","title":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a | Otus","description":"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438 \u043a\u0440\u0430\u0442\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u0430, \u043a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0438, \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0430 2-11, \u041d\u041e\u0414 \u0438 \u041d\u041e\u041a, \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430 \u0438 \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 Python \u0441 \u0440\u0430\u0437\u0431\u043e\u0440\u043e\u043c \u043e\u0448\u0438\u0431\u043e\u043a.","keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-11-29 19:22:36","updated":"2026-09-25 17:49:49","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/otus.ru\/journal\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/otus.ru\/journal\/category\/polza\/\" title=\"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435\">\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0438 \u043a\u0440\u0430\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438, \u041d\u041e\u0414, \u041d\u041e\u041a \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/otus.ru\/journal\/"},{"label":"\u041f\u043e\u043b\u0435\u0437\u043d\u043e\u0435","link":"https:\/\/otus.ru\/journal\/category\/polza\/"},{"label":"\u0414\u0435\u043b\u0438\u0442\u0435\u043b\u0438 \u0438 \u043a\u0440\u0430\u0442\u043d\u044b\u0435 \u0447\u0438\u0441\u043b\u0430: \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u0434\u0435\u043b\u0438\u043c\u043e\u0441\u0442\u0438, \u041d\u041e\u0414, \u041d\u041e\u041a \u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0415\u0432\u043a\u043b\u0438\u0434\u0430","link":"https:\/\/otus.ru\/journal\/teoriya-chisel-deliteli-i-kratnye\/"}],"_links":{"self":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/5120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/comments?post=5120"}],"version-history":[{"count":3,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/5120\/revisions"}],"predecessor-version":[{"id":12914,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/posts\/5120\/revisions\/12914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/media\/5121"}],"wp:attachment":[{"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/media?parent=5120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/categories?post=5120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/otus.ru\/journal\/wp-json\/wp\/v2\/tags?post=5120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}