{"id":341888,"date":"2022-11-29T09:00:16","date_gmt":"2022-11-29T09:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=341888"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=341888","title":{"rendered":"<span>\u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0439\u0442\u0435 \u0441\u0443\u043c\u043c\u0443 n-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u043d\u0435\u0447\u0435\u0442\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0430 \u043c\u0435\u043d\u044f \u043d\u0430 \u0434\u0432\u0443\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043f\u043e\u0434\u0440\u044f\u0434, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0435\u0435!<\/p>\n<details class=\"spoiler\">\n<summary>TL;DR<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">def row_sum(n: int):     prev_row: list[int] = []     n_row: list[int] = []      if n > 1:         for i in range(1,n*(n-1),2):             prev_row.append(i)          for i in range(prev_row[-1]+2, prev_row[-1]+(n*2)+2, 2):             n_row.append(i)     else:         n_row.append(n)      return sum(n_row)<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h2>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435, \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043c\u043d\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0442\u043e\u043b\u043a\u043e\u043c \u043d\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b\u0438, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432\u043e\u0442 \u044d\u0442\u043e:<\/p>\n<pre><code>     1     3 5    7 9 11  13 15 17 19 21 23 25 27 29<\/code><\/pre>\n<p>\u042f \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0430\u043a (\u043d\u0435 \u0441\u0440\u0430\u0437\u0443):<\/p>\n<blockquote>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"y_{n} = 2_n-1\" alt=\"y_{n} = 2_n-1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/deb\/cdf\/095\/debcdf095616482c636edb169c10b8e4.svg\" width=\"100\" height=\"21\"\/>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"y_{1}\" alt=\"y_{1}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aec\/572\/858\/aec57285824b40ac83cd2dcac7fd3ae0.svg\" width=\"18\" height=\"16\"\/>\u0435\u0441\u0442\u044c  \u0432\u0435\u0440\u0448\u0438\u043d\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b, \u0430 \u043a\u0430\u0436\u0434\u0430\u044f \u043d\u0438\u0436\u0435\u043b\u0435\u0436\u0430\u0449\u0430\u044f \u0441\u0442\u0443\u043f\u0435\u043d\u044c \u0435\u0441\u0442\u044c \u0440\u044f\u0434 \u0432\u0438\u0434\u0430:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n = \\sum_{n=y_n}^{y_n+2n}y_{n-1}\" alt=\"x_n = \\sum_{n=y_n}^{y_n+2n}y_{n-1}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f98\/d1d\/f84\/f98d1df84b7272c97d075b1f3998cffc.svg\" width=\"128\" height=\"64\"\/>;<\/p>\n<p>\u041d\u0430\u0439\u0442\u0438 \u0441\u0443\u043c\u043c\u0443 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"S_n\" alt=\"S_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0e9\/eab\/8c0\/0e9eab8c07efa732bb5c439e08d8e669.svg\" width=\"22\" height=\"20\"\/>\u0440\u044f\u0434\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n\" alt=\"x_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1e4\/344\/e9d\/1e4344e9de437c27eb4341dbcc8761ee.svg\" width=\"21\" height=\"15\"\/>.<\/p>\n<\/blockquote>\n<p>\u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u044f\u0434 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0441\u0435\u0433\u043e \u0440\u044f\u0434\u0430, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u0443. \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u044d\u0442\u043e \u043a\u0430\u043a \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 <code>y<\/code> \u0434\u043b\u0438\u043d\u044b <code>n<\/code> \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 <code>x<\/code> \u0434\u043b\u0438\u043d\u044b <code>y[i]<\/code>.<\/p>\n<h2>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439<\/h2>\n<p>\u0422\u0435\u0445\u043d\u0438\u043a\u0430 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Divide-and-conquer_algorithm\" rel=\"noopener noreferrer nofollow\">Divide-and-conquer<\/a> \u2013 \u044d\u0442\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432. \u0415\u0433\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u043c \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 (\u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445) \u043d\u0430 \u043c\u0435\u043d\u044c\u0448\u0438\u0435 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u0430\u043b\u044b (\u043f\u0440\u043e\u0441\u0442\u044b) \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u0438\u0445. \u0417\u0430\u0442\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u0447 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0447\u0435\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>\u0412 \u043c\u043e\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043d\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438, \u043d\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u042f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"y_n\" alt=\"y_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/31d\/608\/f7c\/31d608f7ca5cbd752de962683d903981.svg\" width=\"20\" height=\"16\"\/>\u043d\u0430 \u0434\u0432\u0430 \u0441\u043f\u0438\u0441\u043a\u0430:<\/p>\n<ul>\n<li>\n<p><code>prev_row<\/code> \u2013 \u0440\u044f\u0434 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_n = \\sum_{n=1}^{n(n-1)}y_{n-1}\" alt=\"z_n = \\sum_{n=1}^{n(n-1)}y_{n-1}\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d8e\/b3d\/a37\/d8eb3da370126f54e2e743c848b7b0b7.svg\" width=\"131\" height=\"63\"\/>\u2013 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0447\u043b\u0435\u043d\u0430 \u0440\u044f\u0434\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n\" alt=\"x_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1d1\/788\/492\/1d17884926315a1a8048dc408fc5dd28.svg\" width=\"21\" height=\"15\"\/>. <\/p>\n<\/li>\n<li>\n<p><code>n_row<\/code> \u2013 \u0440\u044f\u0434 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n\" alt=\"x_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3e2\/8cc\/2ed\/3e28cc2ed8071064ad66803e2840ac3b.svg\" width=\"21\" height=\"15\"\/>.<\/p>\n<\/li>\n<\/ul>\n<h3>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c<\/h3>\n<ol>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u044f\u0434 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_n\" alt=\"z_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4da\/1b4\/35d\/4da1b435d491a16b8a894c29fcb0c4f7.svg\" width=\"19\" height=\"15\"\/>\u2013 \u043e\u043d \u043d\u0443\u0436\u0435\u043d \u043c\u043d\u0435 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u043b\u0435\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n\" alt=\"x_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/393\/550\/851\/39355085164134d4ca6336b30dd18ef0.svg\" width=\"21\" height=\"15\"\/>\u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"y_n\" alt=\"y_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3f1\/e0c\/041\/3f1e0c0411e7e895cb03fa8859a03ac8.svg\" width=\"20\" height=\"16\"\/>.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u044f\u0434 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n\" alt=\"x_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cd3\/664\/51c\/cd366451c3280aa4aaf05230098d5a29.svg\" width=\"21\" height=\"15\"\/>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u043b\u0435\u043d\u044b n-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u0440\u044f\u0434\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n\" alt=\"x_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3dd\/99c\/b3c\/3dd99cb3c3fe24d1de005c883635a552.svg\" width=\"21\" height=\"15\"\/>.<\/p>\n<\/li>\n<\/ol>\n<h3>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0443 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0435\u0445 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445.<\/p>\n<h4>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u044f\u0434 \u0441 \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u043f\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0447\u043b\u0435\u043d n-\u0433\u043e \u0440\u044f\u0434\u0430 <\/h4>\n<pre><code class=\"python\">prev_row: list[int] = []  for i in range(1,n*(n-1),2):     prev_row.append(i)<\/code><\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a <code>prev_row<\/code> \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f n-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b. \u041e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0438\u0436\u043d\u044e\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u0440\u044f\u0434\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_n\" alt=\"x_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2d8\/fa2\/9c8\/2d8fa29c83c3b4b2a44b5edddfc82337.svg\" width=\"21\" height=\"15\"\/> \u0432 \u0432\u0438\u0434\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041e\u043d\u0430 \u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u0441\u0430\u043c\u043e\u0433\u043e \u0440\u044f\u0434\u0430 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_n\" alt=\"z_n\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/399\/be2\/833\/399be2833ea94da476b0668db3a28026.svg\" width=\"19\" height=\"15\"\/>.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0437\u0430\u0434\u0430\u0447\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u0447\u0435\u0442\u043d\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0447\u0438\u0441\u0435\u043b, \u0442\u043e \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u044e <code>2<\/code> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <code>step<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>range<\/code>. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <code>1<\/code>, \u043e\u043d\u0430 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u0442 <code>2<\/code> \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u0447\u043b\u0435\u043d\u0443.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0443\u043c\u043c\u0443 3-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"n=3\" alt=\"n=3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1c5\/b85\/ea3\/1c5b85ea31309bfda678f09bcaf786dc.svg\" width=\"48\" height=\"17\"\/>, \u0442\u0430\u043a \u043a\u0430\u043a \u0446\u0438\u043a\u043b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0440\u044f\u0434\u0430. \u041d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_1 = 1\" alt=\"z_1 = 1\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/157\/bfe\/576\/157bfe5768eb166a1cbee866a47fcfd3.svg\" width=\"54\" height=\"19\"\/>, \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_2=1+2=3\" alt=\"z_2=1+2=3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3b2\/54d\/b08\/3b254db08d2624b822c190c39d111daf.svg\" width=\"123\" height=\"19\"\/>, \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_3=3+2 = 5\" alt=\"z_3=3+2 = 5\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fad\/4dd\/e6e\/fad4dde6ee1d760149f167e0b02d3045.svg\" width=\"123\" height=\"20\"\/>, \u0430 \u0437\u0430\u0442\u0435\u043c \u043a\u043e\u043d\u0435\u0446 \u0438 \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0432\u0435\u0434\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <code>n*(n-1)<\/code>\u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>stop<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>range<\/code>\u0438 \u0437\u0430\u0434\u0430\u0435\u0442 \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438: <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_3=3(3-1)=5\" alt=\"z_3=3(3-1)=5\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4a5\/f0b\/de2\/4a5f0bde2e8564c51fd46bd038a341bf.svg\" width=\"148\" height=\"22\"\/>.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0448\u0430\u0433\u0435 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"z_3=1,3,5\" alt=\"z_3=1,3,5\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/658\/4e1\/0bf\/6584e10bf802987af1283fe97d9ff48e.svg\" width=\"91\" height=\"20\"\/>\u2013 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0441\u0435 \u0440\u044f\u0434\u044b \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u0434\u043e n-\u0440\u044f\u0434\u0430.<\/p>\n<h4>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c n-\u0440\u044f\u0434 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b<\/h4>\n<pre><code class=\"python\">for i in range(prev_row[-1]+2, (prev_row[-1]+n*2)+2, 2):     n_row.append(i)<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u0446\u0438\u043a\u043b \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0438\u0436\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u044f\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <code>prev_row,<\/code>\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435, \u0438 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043d\u0435\u043c\u0443 <code>2<\/code>. \u041f\u0440\u0438 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"n=3\" alt=\"n=3\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aec\/8e3\/97e\/aec8e397ee56c324fcb2d057a5b769e4.svg\" width=\"48\" height=\"17\"\/>\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_1=5+2=7\" alt=\"x_1=5+2=7\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/067\/6a8\/b6a\/0676a8b6aa15637d0d3c128c6f1be578.svg\" width=\"126\" height=\"19\"\/>\u2013 \u043f\u0435\u0440\u0432\u044b\u0439 \u0447\u043b\u0435\u043d n-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b. \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438: <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_2=7+2=9\" alt=\"x_2=7+2=9\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/28c\/845\/cd7\/28c845cd72e32654b82d426afcabaf66.svg\" width=\"126\" height=\"19\"\/>, \u0434\u0430\u043b\u0435\u0435 <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"x_3=9+2=11\" alt=\"x_3=9+2=11\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c81\/491\/92a\/c8149192a57a4a3cbc172c64331b22ad.svg\" width=\"135\" height=\"20\"\/>\u2013 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u043b\u0435\u043d \u0440\u044f\u0434\u0430, \u0442\u0430\u043a \u043a\u0430\u043a <img loading=\"lazy\" decoding=\"async\" class=\"formula inline\" source=\"5+(3*2)=11\" alt=\"5+(3*2)=11\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4cc\/929\/462\/4cc92946265143f67feb282fd88cc4de.svg\" width=\"133\" height=\"22\"\/>.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b n-\u0440\u044f\u0434 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b, \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0449\u0435.<\/p>\n<h4>\u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 n-\u0433\u043e \u0440\u044f\u0434\u0430<\/h4>\n<pre><code class=\"python\">return sum(n_row)<\/code><\/pre>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0432 <code>n_row<\/code> \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0447\u043b\u0435\u043d\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e n-\u0433\u043e \u0440\u044f\u0434\u0430, \u0438\u0445 \u0441\u0443\u043c\u043c\u0443 \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<h2>\u041b\u0438\u0441\u0442\u0438\u043d\u0433<\/h2>\n<pre><code class=\"python\">def row_sum(n: int):     prev_row: list[int] = []     n_row: list[int] = []      if n > 1:         for i in range(1,n*(n-1),2):             prev_row.append(i)          for i in range(prev_row[-1]+2, prev_row[-1]+(n*2)+2, 2):             n_row.append(i)     else:         n_row.append(n)      return sum(n_row)<\/code><\/pre>\n<h2>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>\u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043c\u043e\u0433\u0443 \u0441\u0443\u0434\u0438\u0442\u044c, \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c O(n). \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043c\u043e\u0439 \u043a\u043e\u0434 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d, \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u0430\u043a \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u043f\u0440\u043e\u0448\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. \u0411\u044b\u043b\u043e \u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u044c\u044f?<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"embed_link\">\n<div class=\"embed__thumb\" style=\"background-image: url(&quot;https:\/\/cdn4.telegram-cdn.org\/file\/ew6FpoPDTlQJI_5dFsgN_uvGJ6qk8FXvqpFq6JIoTKOeqA0b0091I-kJGmMiFjP-x_05qTkdKjkbAhWNw1XzFlrkQ-JkDS6A3ySnN7gkBJYdFeOugu2UZLAIvm7HZuSj7HZrs3AhouYmDf87QX1XXlAlrdxZOmml6FMoauDBNEki8Lo2JkpaGllb59EY1vgNVzS9ReRkigsL3yrD0HouKxP5JisYyiprq1hk1wCk7HXAsXtaCSre04IpMbbPfianBEDTi5B4FjUZywduUYkJicg9NR-XFpaRblivzq9o4Wkw7WIEzVZ-Hnr8-e-yMpzjvJz5zM_MEJnA0L0_uFFvBg.jpg&quot;);\"><\/div>\n<div class=\"embed__caption\">\n<div class=\"embed__caption-title\"><span>Pro \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443<\/span><\/div>\n<p><a href=\"https:\/\/t.me\/bachelorscoding\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" class=\"embed__caption-link\">t.me<\/a><\/div>\n<\/div>\n<p>\u041c\u043e\u0439 \u043a\u0430\u043d\u0430\u043b \u0432 Telegram ?<\/p>\n<\/div>\n<\/details>\n<h2>\u0420\u0435\u0441\u0443\u0440\u0441\u044b<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%D1%8F%D0%B9_%D0%B8_%D0%B2%D0%BB%D0%B0%D1%81%D1%82%D0%B2%D1%83%D0%B9_(%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0)\" rel=\"noopener noreferrer nofollow\">\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439 (\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430)<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/latex.codecogs.com\/eqneditor\/editor.php\" rel=\"noopener noreferrer nofollow\">https:\/\/latex.codecogs.com\/eqneditor\/editor.php<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/mathprofi.ru\/ryady_dlya_chajnikov.html\" rel=\"noopener noreferrer nofollow\">\u0420\u044f\u0434\u044b \u0434\u043b\u044f \u0447\u0430\u0439\u043d\u0438\u043a\u043e\u0432. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/yukhym.com\/ru\/vychislenie-predelov\/chislovaya-posledovatelnost-obshchij-chlen-posledovatelnosti.html\" rel=\"noopener noreferrer nofollow\">\u0427\u0438\u0441\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0435\u0435 \u043f\u0440\u0435\u0434\u0435\u043b. \u041e\u0431\u0449\u0438\u0439 \u0447\u043b\u0435\u043d \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/mathprofi.ru\/predel_posledovatelnosti.html\" rel=\"noopener noreferrer nofollow\">\u0427\u0438\u0441\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.\u041a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0435\u0434\u0435\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438?<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/702162\/\"> https:\/\/habr.com\/ru\/post\/702162\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042d\u0442\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u0440\u0435\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u0430 \u043c\u0435\u043d\u044f \u043d\u0430 \u0434\u0432\u0443\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043f\u043e\u0434\u0440\u044f\u0434, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0435\u0435!<\/p>\n<details class=\"spoiler\">\n<summary>TL;DR<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"python\">def row_sum(n: int):     prev_row: list[int] = []     n_row: list[int] = []      if n > 1:         for i in range(1,n*(n-1),2):             prev_row.append(i)          for i in range(prev_row[-1]+2, prev_row[-1]+(n*2)+2, 2):             n_row.append(i)     else:         n_row.append(n)      return sum(n_row)<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<h2>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u0430\u0434\u0430\u0447\u0438<\/h2>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435, \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043c\u043d\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0442\u043e\u043b\u043a\u043e\u043c \u043d\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b\u0438, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432\u043e\u0442 \u044d\u0442\u043e:<\/p>\n<pre><code>     1     3 5    7 9 11  13 15 17 19 21 23 25 27 29<\/code><\/pre>\n<p>\u042f \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043b \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0442\u0430\u043a (\u043d\u0435 \u0441\u0440\u0430\u0437\u0443):<\/p>\n<blockquote>\n<p>\u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0435\u0441\u0442\u044c  \u0432\u0435\u0440\u0448\u0438\u043d\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b, \u0430 \u043a\u0430\u0436\u0434\u0430\u044f \u043d\u0438\u0436\u0435\u043b\u0435\u0436\u0430\u0449\u0430\u044f \u0441\u0442\u0443\u043f\u0435\u043d\u044c \u0435\u0441\u0442\u044c \u0440\u044f\u0434 \u0432\u0438\u0434\u0430:<\/p>\n<p>;<\/p>\n<p>\u041d\u0430\u0439\u0442\u0438 \u0441\u0443\u043c\u043c\u0443 \u0440\u044f\u0434\u0430 .<\/p>\n<\/blockquote>\n<p>\u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u044f\u0434 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u0441\u0435\u0433\u043e \u0440\u044f\u0434\u0430, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u0443. \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u044d\u0442\u043e \u043a\u0430\u043a \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 <code>y<\/code> \u0434\u043b\u0438\u043d\u044b <code>n<\/code> \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 <code>x<\/code> \u0434\u043b\u0438\u043d\u044b <code>y[i]<\/code>.<\/p>\n<h2>\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439<\/h2>\n<p>\u0422\u0435\u0445\u043d\u0438\u043a\u0430 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Divide-and-conquer_algorithm\" rel=\"noopener noreferrer nofollow\">Divide-and-conquer<\/a> \u2013 \u044d\u0442\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0439 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432. \u0415\u0433\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e\u043c \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 (\u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445) \u043d\u0430 \u043c\u0435\u043d\u044c\u0448\u0438\u0435 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u0430\u043b\u044b (\u043f\u0440\u043e\u0441\u0442\u044b) \u0447\u0442\u043e\u0431\u044b \u0440\u0435\u0448\u0438\u0442\u044c \u0438\u0445. \u0417\u0430\u0442\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u0434\u0437\u0430\u0434\u0430\u0447 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0447\u0435\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>\u0412 \u043c\u043e\u0435\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u043d\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438, \u043d\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u042f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0434\u0432\u0430 \u0441\u043f\u0438\u0441\u043a\u0430:<\/p>\n<ul>\n<li>\n<p><code>prev_row<\/code> \u2013 \u0440\u044f\u0434 \u2013 \u0432\u0441\u0435 \u0447\u0438\u0441\u043b\u0430 \u0441 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0447\u043b\u0435\u043d\u0430 \u0440\u044f\u0434\u0430 . <\/p>\n<\/li>\n<li>\n<p><code>n_row<\/code> \u2013 \u0440\u044f\u0434 .<\/p>\n<\/li>\n<\/ul>\n<h3>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c<\/h3>\n<ol>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u044f\u0434 \u2013 \u043e\u043d \u043d\u0443\u0436\u0435\u043d \u043c\u043d\u0435 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0447\u043b\u0435\u043d\u044b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 .<\/p>\n<\/li>\n<li>\n<p>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u044f\u0434 , \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u043b\u0435\u043d\u044b n-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b.<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 \u0440\u044f\u0434\u0430 .<\/p>\n<\/li>\n<\/ol>\n<h3>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>\u041d\u0435 \u0431\u0443\u0434\u0443 \u043a\u0430\u0441\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0435\u0445 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445.<\/p>\n<h4>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u044f\u0434 \u0441 \u0432\u0435\u0440\u0448\u0438\u043d\u044b \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u043f\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u0447\u043b\u0435\u043d n-\u0433\u043e \u0440\u044f\u0434\u0430 <\/h4>\n<pre><code class=\"python\">prev_row: list[int] = []  for i in range(1,n*(n-1),2):     prev_row.append(i)<\/code><\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a <code>prev_row<\/code> \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f n-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b. \u041e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0438\u0436\u043d\u044e\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u0440\u044f\u0434\u0430  \u0432 \u0432\u0438\u0434\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u041e\u043d\u0430 \u0436\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0435\u0440\u0445\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435\u0439 \u0441\u0430\u043c\u043e\u0433\u043e \u0440\u044f\u0434\u0430 .<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0432 \u0437\u0430\u0434\u0430\u0447\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0435\u0447\u0435\u0442\u043d\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0447\u0438\u0441\u0435\u043b, \u0442\u043e \u044f \u043f\u0435\u0440\u0435\u0434\u0430\u044e <code>2<\/code> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0430 <code>step<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>range<\/code>. \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 <code>1<\/code>, \u043e\u043d\u0430 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u0442 <code>2<\/code> \u043a \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u0447\u043b\u0435\u043d\u0443.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0443\u043c\u043c\u0443 3-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 , \u0442\u0430\u043a \u043a\u0430\u043a \u0446\u0438\u043a\u043b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0440\u044f\u0434\u0430. \u041d\u0430 \u043f\u0435\u0440\u0432\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043c , \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 , \u043d\u0430 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 , \u0430 \u0437\u0430\u0442\u0435\u043c \u043a\u043e\u043d\u0435\u0446 \u0438 \u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0432\u0435\u0434\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 <code>n*(n-1)<\/code>\u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>stop<\/code> \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <code>range<\/code>\u0438 \u0437\u0430\u0434\u0430\u0435\u0442 \u0432\u0435\u0440\u0445\u043d\u044e\u044e \u0433\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438: .<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u0448\u0430\u0433\u0435 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u2013 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0441\u0435 \u0440\u044f\u0434\u044b \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b \u0434\u043e n-\u0440\u044f\u0434\u0430.<\/p>\n<h4>\u0421\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c n-\u0440\u044f\u0434 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b<\/h4>\n<pre><code class=\"python\">for i in range(prev_row[-1]+2, (prev_row[-1]+n*2)+2, 2):     n_row.append(i)<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u0446\u0438\u043a\u043b \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0437\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043d\u0438\u0436\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u0440\u044f\u0434\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <code>prev_row,<\/code>\u0441\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435, \u0438 \u043f\u0440\u0438\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u043d\u0435\u043c\u0443 <code>2<\/code>. \u041f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u2013 \u043f\u0435\u0440\u0432\u044b\u0439 \u0447\u043b\u0435\u043d n-\u0433\u043e \u0440\u044f\u0434\u0430 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b. \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438: , \u0434\u0430\u043b\u0435\u0435 \u2013 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0447\u043b\u0435\u043d \u0440\u044f\u0434\u0430, \u0442\u0430\u043a \u043a\u0430\u043a .<\/p>\n<p>\u0418\u0442\u0430\u043a, \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b n-\u0440\u044f\u0434 \u043f\u0438\u0440\u0430\u043c\u0438\u0434\u044b, \u0434\u0430\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0449\u0435.<\/p>\n<h4>\u041f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0443\u043c\u043c\u0443 n-\u0433\u043e \u0440\u044f\u0434\u0430<\/h4>\n<pre><code class=\"python\">return sum(n_row)<\/code><\/pre>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u0432 <code>n_row<\/code> \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0447\u043b\u0435\u043d\u044b \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e n-\u0433\u043e \u0440\u044f\u0434\u0430, \u0438\u0445 \u0441\u0443\u043c\u043c\u0443 \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u0442\u044c.<\/p>\n<h2>\u041b\u0438\u0441\u0442\u0438\u043d\u0433<\/h2>\n<pre><code class=\"python\">def row_sum(n: int):     prev_row: list[int] = []     n_row: list[int] = []      if n > 1:         for i in range(1,n*(n-1),2):             prev_row.append(i)          for i in range(prev_row[-1]+2, prev_row[-1]+(n*2)+2, 2):             n_row.append(i)     else:         n_row.append(n)      return sum(n_row)<\/code><\/pre>\n<h2>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>\u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f \u043c\u043e\u0433\u0443 \u0441\u0443\u0434\u0438\u0442\u044c, \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u044d\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c O(n). \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043c\u043e\u0439 \u043a\u043e\u0434 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d, \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u0430\u043a \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0435, \u043f\u0440\u043e\u0448\u0443 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445. \u0411\u044b\u043b\u043e \u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u0442\u0430\u0442\u044c\u044f?<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"embed_link\">\n<div class=\"embed__thumb\" style=\"background-image: url(&quot;https:\/\/cdn4.telegram-cdn.org\/file\/ew6FpoPDTlQJI_5dFsgN_uvGJ6qk8FXvqpFq6JIoTKOeqA0b0091I-kJGmMiFjP-x_05qTkdKjkbAhWNw1XzFlrkQ-JkDS6A3ySnN7gkBJYdFeOugu2UZLAIvm7HZuSj7HZrs3AhouYmDf87QX1XXlAlrdxZOmml6FMoauDBNEki8Lo2JkpaGllb59EY1vgNVzS9ReRkigsL3yrD0HouKxP5JisYyiprq1hk1wCk7HXAsXtaCSre04IpMbbPfianBEDTi5B4FjUZywduUYkJicg9NR-XFpaRblivzq9o4Wkw7WIEzVZ-Hnr8-e-yMpzjvJz5zM_MEJnA0L0_uFFvBg.jpg&quot;);\"><\/div>\n<div class=\"embed__caption\">\n<div class=\"embed__caption-title\"><span>Pro \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443<\/span><\/div>\n<p><a href=\"https:\/\/t.me\/bachelorscoding\" target=\"_blank\" rel=\"noopener noreferrer nofollow\" class=\"embed__caption-link\">t.me<\/a><\/div>\n<\/div>\n<p>\u041c\u043e\u0439 \u043a\u0430\u043d\u0430\u043b \u0432 Telegram ?<\/p>\n<\/div>\n<\/details>\n<h2>\u0420\u0435\u0441\u0443\u0440\u0441\u044b<\/h2>\n<ul>\n<li>\n<p><a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A0%D0%B0%D0%B7%D0%B4%D0%B5%D0%BB%D1%8F%D0%B9_%D0%B8_%D0%B2%D0%BB%D0%B0%D1%81%D1%82%D0%B2%D1%83%D0%B9_(%D0%B8%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0)\" rel=\"noopener noreferrer nofollow\">\u0420\u0430\u0437\u0434\u0435\u043b\u044f\u0439 \u0438 \u0432\u043b\u0430\u0441\u0442\u0432\u0443\u0439 (\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u043a\u0430)<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/latex.codecogs.com\/eqneditor\/editor.php\" rel=\"noopener noreferrer nofollow\">https:\/\/latex.codecogs.com\/eqneditor\/editor.php<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/mathprofi.ru\/ryady_dlya_chajnikov.html\" rel=\"noopener noreferrer nofollow\">\u0420\u044f\u0434\u044b \u0434\u043b\u044f \u0447\u0430\u0439\u043d\u0438\u043a\u043e\u0432. \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u0439<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/yukhym.com\/ru\/vychislenie-predelov\/chislovaya-posledovatelnost-obshchij-chlen-posledovatelnosti.html\" rel=\"noopener noreferrer nofollow\">\u0427\u0438\u0441\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0435\u0435 \u043f\u0440\u0435\u0434\u0435\u043b. \u041e\u0431\u0449\u0438\u0439 \u0447\u043b\u0435\u043d \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"http:\/\/mathprofi.ru\/predel_posledovatelnosti.html\" rel=\"noopener noreferrer nofollow\">\u0427\u0438\u0441\u043b\u043e\u0432\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c.\u041a\u0430\u043a \u043d\u0430\u0439\u0442\u0438 \u043f\u0440\u0435\u0434\u0435\u043b \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438?<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/702162\/\"> https:\/\/habr.com\/ru\/post\/702162\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-341888","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/341888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=341888"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/341888\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=341888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=341888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=341888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}