{"id":376404,"date":"2024-05-21T06:49:54","date_gmt":"2024-05-21T06:49:54","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=376404"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=376404","title":{"rendered":"<span>\u041f\u0435\u0440\u0435\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0446\u0435\u043b\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<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2b4\/bf2\/af0\/2b4bf2af06a1898307a42411ef7e7451.png\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2b4\/bf2\/af0\/2b4bf2af06a1898307a42411ef7e7451.png\"\/><\/figure>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u041c\u0443\u043d\u044c\u0438\u0441 <a href=\"https:\/\/mathstodon.xyz\/@two_star\/112242224494626411\"><strong>\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b<\/strong> <\/a>\u043d\u043e\u0432\u0443\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u0433\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0437\u0432\u0430\u043b \u00ab\u041f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b\u00bb. \u0417\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u043d\u0430 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c.<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10 5 3). \u0412\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u2014 \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u00ab\u0445\u043e\u0434\u044b\u00bb \u0434\u0432\u0443\u0445 \u0432\u0438\u0434\u043e\u0432:<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435 \u043e\u0434\u043d\u043e \u0438\u0437 \u0447\u0438\u0441\u0435\u043b \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0441\u0443\u043c\u043c\u0435 \u0434\u0430\u044e\u0442 \u0446\u0435\u043b\u043e\u0435; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, (10 5 4) \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (7 3 5 4) \u0438\u043b\u0438 (10 2 3 4).<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u0435 \u0434\u0432\u0430 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0438\u0445 \u0441\u0443\u043c\u043c\u0443; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, (7 3 5 4) \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (7 8 4) \u0438\u043b\u0438 (7 3 9).<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c (10 5 4), \u0442\u043e (7 5 3 4) \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (7 8 4), \u043d\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (12 3 4), \u0442\u0430\u043a \u043a\u0430\u043a 12 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c 10 \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430. \u0422\u0430\u043a\u0436\u0435 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, (7 5 3 4) \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043d\u0438 (7 5 7), \u043d\u0438 (7 2 3 3 4).<\/p>\n<p>\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442: \u043a\u0430\u043a\u0438\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0438\u043b\u0438 \u043e\u0431\u0449\u0438\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0437\u0430\u0434\u0430\u0447? \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e <em>n<\/em> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u0433\u0434\u0435 <em>n<\/em> \u2014 \u0441\u0430\u043c\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0445\u043e\u0434\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0438, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c. \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0445\u043e\u0434\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 <em>n<\/em>? \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u0430\u043c\u044b\u0435 \u00ab\u0441\u043b\u043e\u0436\u043d\u044b\u0435\u00bb \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0438? \u0415\u0441\u0442\u044c \u043b\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u044d\u0442\u043e \u0431\u0435\u0437 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430?<\/p>\n<hr\/>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c HackerNews \u043f\u043e\u0434 \u043d\u0438\u043a\u043d\u0435\u0439\u043c\u043e\u043c Someone \u0443\u0434\u0430\u0447\u043d\u043e\u00a0\u043e\u043f\u0438\u0441\u0430\u043b \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0433\u0440\u044b. \u0412\u043e\u0437\u044c\u043c\u0438\u0442\u0435 \u043f\u0430\u043b\u043e\u0447\u043a\u0438 \u0434\u043b\u0438\u043d\u043e\u0439 \u043e\u0442 1 \u0434\u043e <em>n<\/em>. \u041f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0445 \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u0440\u044f\u0434 \u0432 \u00ab\u0436\u0451\u043b\u043e\u0431 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u00bb, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 \u0432 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0436\u0451\u043b\u043e\u0431\u00bb. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435: \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0432\u0435 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u043f\u0430\u043b\u043e\u0447\u043a\u0438 \u0432 \u00ab\u0436\u0451\u043b\u043e\u0431\u0435 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u00bb \u043d\u0430 \u043e\u0434\u043d\u0443 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0443\u044e \u043f\u0430\u043b\u043e\u0447\u043a\u0443 \u0442\u043e\u0439 \u0436\u0435 \u0434\u043b\u0438\u043d\u044b \u0438\u0437 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0436\u0451\u043b\u043e\u0431\u0430\u00bb \u0438\u043b\u0438 \u0436\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u043f\u0430\u043b\u043e\u0447\u043a\u0443 \u0432 \u00ab\u0436\u0451\u043b\u043e\u0431\u0435 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u00bb \u043b\u044e\u0431\u044b\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u043f\u0430\u043b\u043e\u0447\u043a\u0430\u043c\u0438 \u0438\u0437 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0436\u0451\u043b\u043e\u0431\u0430\u00bb.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f4e\/128\/01d\/f4e12801dd532b6a4225690cee9e1664.png\" width=\"3096\" height=\"1836\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f4e\/128\/01d\/f4e12801dd532b6a4225690cee9e1664.png\"\/><\/figure>\n<p>\u0421\u0443\u043c\u043c\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439; \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0441\u0443\u043c\u043c\u043e\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (\u043f\u0430\u043b\u043e\u0447\u0435\u043a \u0432 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u043c \u0436\u0451\u043b\u043e\u0431\u0435\u00bb).<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0438\u043d\u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u0445, \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u043d\u0438\u0436\u0435; \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <em>a<\/em>, \u0435\u0441\u043b\u0438 \u0441\u0443\u043c\u043c\u0430 \u043f\u0430\u043b\u043e\u0447\u0435\u043a \u0432 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u043c \u0436\u0451\u043b\u043e\u0431\u0435\u00bb \u043c\u0435\u043d\u044c\u0448\u0435 <em>a<\/em>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0433\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0443\u043c\u043c\u0430 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c <em>n \u2013 1<\/em>, \u0442\u043e \u043d\u0438  <em>n \u2013 1<\/em>, \u043d\u0438 <em>n<\/em> \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b; \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u043d\u0438 \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043c\u0435\u0441\u0442\u0430\u043c\u0438, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u043c.<\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0438\u0445 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e <em>n<\/em> \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u0435 <em>k<\/em>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 (10 3 5) \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u043e 10, \u0430 \u0434\u043b\u0438\u043d\u0430 \u2014 3.<\/p>\n<p>\u0422\u043e\u043c\u0430\u0448 \u0420\u043e\u043a\u0438\u0446\u043a\u0438 \u0443\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 OEIS-\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e. OEIS <a href=\"https:\/\/oeis.org\/A372008\"><strong>A372008<\/strong> <\/a>\u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u0438\u0445\u0443\u0434\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0445\u043e\u0434\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em>. \u0415\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u2014 \u044d\u0442\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u044b \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 <em>M(n, k)<\/em>, \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u043d\u0430\u0438\u0445\u0443\u0434\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0445\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em>.<\/p>\n<p>(\u0417\u0430\u043f\u0438\u0441\u0438 \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c <code>?<\/code> \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u043e\u0442 \u0422\u043e\u043c\u0430\u0448\u0430 \u0420\u043e\u043a\u0438\u0446\u043a\u0438, \u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438\u0441\u044c \u043c\u043e\u0438\u043c \u0431\u043e\u043b\u0435\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c).<\/p>\n<pre><code>n=1:  0 n=2:  0 - n=3:  0 - - n=4:  0 - -  - n=5:  0 - -  -   - n=6:  0 6 14  6  -  - n=7:  0 4 12 24 26  -    - n=8:  0 4 14 32 64 74    -    - n=9:  0 4  8 18 66 76   86    -    - n=10: 0 4  8 14 20 88  124  126   36    - n=11: 0 4  8 12 16 26   90? 100? 106?   -  - n=12: 0 4  8 12 16 20?  34? 112? 128? 130? - - n=13: 0 4  8 10 14 n=14: 0 4  8 12 16 n=15: 0 4  8 10 14 n=16: 0 4  8 12 n=17: 0 4  8 10 n=18: 0 4  8 12 n=19: 0 4  8 10 n=20: 0 4  8<\/code><\/pre>\n<p>\u041c\u0435\u0436\u0434\u0443 \u0442\u0435\u043c, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e <em>C(n, k)<\/em> \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em> \u044d\u0442\u043e:<\/p>\n<pre><code>n=1:  1 n=2:  1  0 n=3:  1  0    0 n=4:  1  0    0     0 n=5:  1  0    0     0      0 n=6:  1  8   26    12      0      0 n=7:  1 12   82   294    244      0        0 n=8:  1 14  126   760   2316   1846        0         0 n=9:  1 16  168  1344   8238  31678    47164         0         0 n=10: 1 18  216  2016  15098  89078   336154    480598      2640         0 n=11: 1 20  270  2880  25200 181308  1039174?  3907420?  5673092?        0  0 n=12: 1 22  330  3960  39600 332582? 2323524? 12999906? 47886678? 67645030? 0 0 n=13: 1 24  396  5280  59400      ?        ?         ?         ?         ?  ? ? 0 n=14: 1 26  468  6864  85800      ?        ?         ?         ?         ?  ? ? ? 0 n=15: 1 28  546  8736 120120      ?        ?         ?         ?         ?  ? ? ? 0 0 n=16: 1 30  630 10920      ?      ?        ?         ?         ?         ?  ? ? ? ? 0 0 n=17: 1 32  720 13440      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? 0 n=18: 1 34  816 16320      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? ? 0 n=19: 1 36  918 19584      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? ? 0 0 n=20: 1 38 1026     ?      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? ? ? 0 0<\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u0432 (\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u0445 \u0438\u043b\u0438 \u043d\u0435\u0442) \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em> \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d9d\/988\/475\/d9d988475103046b8e90fdfbcf5acfce.png\" width=\"418\" height=\"77\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d9d\/988\/475\/d9d988475103046b8e90fdfbcf5acfce.png\"\/><\/figure>\n<ul>\n<li>\n<p>\u041d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e, <em>C(n, 1) = 1<\/em> \u0438 <em>M(n, 1) = 0<\/em>.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f <em>n \u2265 2<\/em> \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <em>C(n, n) = 0<\/em>, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 <em>n<\/em> \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0437\u0430\u043a\u043e\u043d\u043d\u044b\u0445 \u0445\u043e\u0434\u043e\u0432 \u043d\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043b\u0438\u043d\u043e\u0439 <em>k = n \u2013 1<\/em>. \u0422\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e <em>a &lt; n<\/em> \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435; \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>n<\/em> \u043d\u0430 \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f, \u043b\u0438\u0448\u044c \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 <em>n<\/em>. \u0418\u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u043c, \u0441\u0443\u043c\u043c\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 <em>n<\/em> \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u0430 \u0441\u0443\u043c\u043c\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 <em>n<\/em>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u0442\u0443 \u0436\u0435 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0438 <em>n(n + 1) \/ 2<\/em>. \u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 <em>n \u2013 1<\/em> \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043d\u0430\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0443\u043c\u043c\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 <em>n \u2013 1<\/em>; \u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043b\u0438\u0448\u044c <em>a<\/em> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c. \u0418\u0442\u0430\u043a, \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <em>a<\/em> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <em>n \u2013 1<\/em>, \u0438 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u0442\u0443 \u0436\u0435 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0438 <em>n(n + 1) \/ 2<\/em> , \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043f\u043e\u0440\u043e\u0432\u043d\u0443 \u043c\u0435\u0436\u0434\u0443 \u043b\u0435\u0432\u043e\u0439 \u0438 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u044f\u043c\u0438. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u044d\u0442\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435, <em>C(n, n \u2013 1)<\/em> \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0440\u0430\u0432\u0435\u043d \u043d\u0443\u043b\u044e \u0434\u043b\u044f <em>n \u2208 {11, 12, 15, 16, 19, 20&#8230;}<\/em>. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <em>C(10, 9) = 2640<\/em>.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c, \u0447\u0442\u043e <em>\u2200k\u2203m\u2200n > m : C(n, k) = Total(n, k). <\/em><\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>\u0414\u043b\u044f <em>n<\/em> <em>\u2265 7<\/em> \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <em>C(n, 2) = Total(n, 2)<\/em> \u0438 <em>M(n, 2) = 4<\/em>. \u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f SevenNinths \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 <a href=\"https:\/\/pawb.fun\/@SevenNinths\/112255955334040349\"><strong>\u0437\u0434\u0435\u0441\u044c<\/strong><\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f <em>n<\/em> <em>\u2265 9<\/em> \u0443 \u043d\u0430\u0441, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c <em>C(n, 3) = Total(n, 3)<\/em> \u0438 <em>M(n, 3) = 8<\/em>.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f <em>n<\/em> <em>\u2265 9<\/em> \u0443 \u043d\u0430\u0441, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c <em>C(n, 4) = Total(n, 4)<\/em>; \u043d\u043e \u043f\u043e\u043a\u0430 <em>M(n, 4)<\/em> \u043a\u043e\u043b\u0435\u0431\u043b\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 10 \u0438 12. \u0411\u0443\u0434\u0435\u0442 \u043b\u0438 \u043e\u043d\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e 12 (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044f, \u0447\u0442\u043e <em>\u2200k\u2203m\u2200n > m : M(n, k) = 4(k \u2013 1)<\/em>), \u0438\u043b\u0438 \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435?   <\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c SevenNinths <a href=\"https:\/\/pawb.fun\/@SevenNinths\/112255955334040349\"><strong>\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442<\/strong> <\/a>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u2200n <em>\u2265 7 : M(n, 2) = 4<\/em>,<em> <\/em>\u0432 \u0432\u0438\u0434\u0435 \u0431\u0435\u0437\u0443\u043f\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0432\u0443\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 <em>n \u2265 7<\/em>. \u0418\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0438\u0437 3, 4 \u0438 \u0431\u043e\u043b\u0435\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c SevenNinths\u00a0\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0440\u0430\u0432\u043d\u043e\u0439 4 \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435, \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0445 <em>n<\/em>. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 <em>L(n, k) &lt; n<\/em> \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em> \u043c\u043e\u0433 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d \u0431\u0435\u0437 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043b\u0438\u043d\u043d\u0435\u0435 \u0447\u0435\u043c <em>L(n,k)<\/em>. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f <em>L(n, k)<\/em> \u043c\u043e\u0436\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u043e\u043c \u0437\u0430 \u0441\u0447\u0451\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u043f\u043e\u0438\u0441\u043a\u0430.<\/p>\n<p>\u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u043e\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 <em>L(n, k)<\/em> \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em>, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f:<\/p>\n<pre><code>n=1:  1 n=2:  1 - n=3:  1 - - n=4:  1 - - - n=5:  1 - - - - n=6:  1 4 4 4 - - n=7:  1 4 5 5 5 - - n=8:  1 4 5 6 7 7 - - n=9:  1 4 5 7 7 8 8 - - n=10: 1 4 5 7 8 9 9 9 9 - n=11: 1 4 5 7 8 9 ? ? ? - - n=12: 1 4 5 6 8 ? ? ? ? ? - - n=13: 1 4 5 7 8 ? ? ? ? ? ? ? - n=14: 1 4 5 6 7 ? ? ? ? ? ? ? ? - n=15: 1 4 5 7 8 ? ? ? ? ? ? ? ? - - n=16: 1 4 5 6 ? ? ? ? ? ? ? ? ? ? - - n=17: 1 4 5 7 ? ? ? ? ? ? ? ? ? ? ? ? - n=18: 1 4 5 6 ? ? ? ? ? ? ? ? ? ? ? ? ? - n=19: 1 4 5 7 ? ? ? ? ? ? ? ? ? ? ? ? ? - - n=20: 1 4 5 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? - -<\/code><\/pre>\n<p>\u041a\u043e\u0434 C++17, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <a href=\"https:\/\/quuxplusone.github.io\/blog\/code\/2024-04-22-solver.cpp\"><strong>\u0437\u0434\u0435\u0441\u044c<\/strong><\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/815059\/\"> https:\/\/habr.com\/ru\/articles\/815059\/<\/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<figure class=\"full-width\"><\/figure>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u041c\u0443\u043d\u044c\u0438\u0441 <a href=\"https:\/\/mathstodon.xyz\/@two_star\/112242224494626411\"><strong>\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043b<\/strong> <\/a>\u043d\u043e\u0432\u0443\u044e \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0438\u0433\u0440\u0443, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u0437\u0432\u0430\u043b \u00ab\u041f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b\u00bb. \u0417\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u043d\u0430 \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c.<\/p>\n<ul>\n<li>\n<p>\u0421\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10 5 3). \u0412\u0430\u0448\u0430 \u0446\u0435\u043b\u044c \u2014 \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u00ab\u0445\u043e\u0434\u044b\u00bb \u0434\u0432\u0443\u0445 \u0432\u0438\u0434\u043e\u0432:<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435 \u043e\u0434\u043d\u043e \u0438\u0437 \u0447\u0438\u0441\u0435\u043b \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0441\u0443\u043c\u043c\u0435 \u0434\u0430\u044e\u0442 \u0446\u0435\u043b\u043e\u0435; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, (10 5 4) \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (7 3 5 4) \u0438\u043b\u0438 (10 2 3 4).<\/p>\n<\/li>\n<li>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u0435 \u0434\u0432\u0430 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0445 \u0447\u0438\u0441\u043b\u0430 \u0432 \u0438\u0445 \u0441\u0443\u043c\u043c\u0443; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, (7 3 5 4) \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (7 8 4) \u0438\u043b\u0438 (7 3 9).<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0435\u043b\u044c\u0437\u044f \u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c (10 5 4), \u0442\u043e (7 5 3 4) \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (7 8 4), \u043d\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c (12 3 4), \u0442\u0430\u043a \u043a\u0430\u043a 12 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c 10 \u2014 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430. \u0422\u0430\u043a\u0436\u0435 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043e\u043b\u0436\u043d\u044b \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u043c\u0438; \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, (7 5 3 4) \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043d\u0438 (7 5 7), \u043d\u0438 (7 2 3 3 4).<\/p>\n<p>\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442: \u043a\u0430\u043a\u0438\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0438\u043b\u0438 \u043e\u0431\u0449\u0438\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u0437\u0430\u0434\u0430\u0447? \u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e <em>n<\/em> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a, \u0433\u0434\u0435 <em>n<\/em> \u2014 \u0441\u0430\u043c\u043e\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0447\u0438\u0441\u043b\u043e, \u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0445\u043e\u0434\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0438, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c. \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0445\u043e\u0434\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 <em>n<\/em>? \u041a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0441\u0430\u043c\u044b\u0435 \u00ab\u0441\u043b\u043e\u0436\u043d\u044b\u0435\u00bb \u0433\u043e\u043b\u043e\u0432\u043e\u043b\u043e\u043c\u043a\u0438? \u0415\u0441\u0442\u044c \u043b\u0438 \u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u044d\u0442\u043e \u0431\u0435\u0437 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u0430?<\/p>\n<hr\/>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c HackerNews \u043f\u043e\u0434 \u043d\u0438\u043a\u043d\u0435\u0439\u043c\u043e\u043c Someone \u0443\u0434\u0430\u0447\u043d\u043e\u00a0\u043e\u043f\u0438\u0441\u0430\u043b \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0433\u0440\u044b. \u0412\u043e\u0437\u044c\u043c\u0438\u0442\u0435 \u043f\u0430\u043b\u043e\u0447\u043a\u0438 \u0434\u043b\u0438\u043d\u043e\u0439 \u043e\u0442 1 \u0434\u043e <em>n<\/em>. \u041f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0445 \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u0440\u044f\u0434 \u0432 \u00ab\u0436\u0451\u043b\u043e\u0431 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u00bb, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u2014 \u0432 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0436\u0451\u043b\u043e\u0431\u00bb. \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435: \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0432\u0435 \u0441\u043e\u0441\u0435\u0434\u043d\u0438\u0435 \u043f\u0430\u043b\u043e\u0447\u043a\u0438 \u0432 \u00ab\u0436\u0451\u043b\u043e\u0431\u0435 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u00bb \u043d\u0430 \u043e\u0434\u043d\u0443 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0443\u044e \u043f\u0430\u043b\u043e\u0447\u043a\u0443 \u0442\u043e\u0439 \u0436\u0435 \u0434\u043b\u0438\u043d\u044b \u0438\u0437 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0436\u0451\u043b\u043e\u0431\u0430\u00bb \u0438\u043b\u0438 \u0436\u0435 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u043f\u0430\u043b\u043e\u0447\u043a\u0443 \u0432 \u00ab\u0436\u0451\u043b\u043e\u0431\u0435 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f\u00bb \u043b\u044e\u0431\u044b\u043c\u0438 \u0434\u0432\u0443\u043c\u044f \u043f\u0430\u043b\u043e\u0447\u043a\u0430\u043c\u0438 \u0438\u0437 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0436\u0451\u043b\u043e\u0431\u0430\u00bb.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0421\u0443\u043c\u043c\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0438\u0441\u043a\u0430 \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439; \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0441\u0443\u043c\u043c\u043e\u0439 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (\u043f\u0430\u043b\u043e\u0447\u0435\u043a \u0432 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u043c \u0436\u0451\u043b\u043e\u0431\u0435\u00bb).<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0438\u043d\u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u0445, \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u043d\u0438\u0436\u0435; \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <em>a<\/em>, \u0435\u0441\u043b\u0438 \u0441\u0443\u043c\u043c\u0430 \u043f\u0430\u043b\u043e\u0447\u0435\u043a \u0432 \u00ab\u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u043c \u0436\u0451\u043b\u043e\u0431\u0435\u00bb \u043c\u0435\u043d\u044c\u0448\u0435 <em>a<\/em>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0433\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u0443\u043c\u043c\u0430 \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c <em>n \u2013 1<\/em>, \u0442\u043e \u043d\u0438  <em>n \u2013 1<\/em>, \u043d\u0438 <em>n<\/em> \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b; \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u043d\u0438 \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043c\u0435\u0441\u0442\u0430\u043c\u0438, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442, \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u043c.<\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0446\u0435\u043b\u0435\u0441\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u044b\u043c \u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0438\u0445 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e <em>n<\/em> \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u0435 <em>k<\/em>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 (10 3 5) \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0432\u043d\u043e 10, \u0430 \u0434\u043b\u0438\u043d\u0430 \u2014 3.<\/p>\n<p>\u0422\u043e\u043c\u0430\u0448 \u0420\u043e\u043a\u0438\u0446\u043a\u0438 \u0443\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 OEIS-\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e. OEIS <a href=\"https:\/\/oeis.org\/A372008\"><strong>A372008<\/strong> <\/a>\u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u0438\u0445\u0443\u0434\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0445\u043e\u0434\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em>. \u0415\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0438 \u2014 \u044d\u0442\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c\u044b \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0442\u0440\u0435\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 <em>M(n, k)<\/em>, \u0437\u0430\u043f\u0438\u0441\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043d\u0430 \u043d\u0430\u0438\u0445\u0443\u0434\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0445\u043e\u0434\u043e\u0432 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em>.<\/p>\n<p>(\u0417\u0430\u043f\u0438\u0441\u0438 \u0441 \u0441\u0443\u0444\u0444\u0438\u043a\u0441\u043e\u043c <code>?<\/code> \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u044b \u043e\u0442 \u0422\u043e\u043c\u0430\u0448\u0430 \u0420\u043e\u043a\u0438\u0446\u043a\u0438, \u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438\u0441\u044c \u043c\u043e\u0438\u043c \u0431\u043e\u043b\u0435\u0435 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c).<\/p>\n<pre><code>n=1:  0 n=2:  0 - n=3:  0 - - n=4:  0 - -  - n=5:  0 - -  -   - n=6:  0 6 14  6  -  - n=7:  0 4 12 24 26  -    - n=8:  0 4 14 32 64 74    -    - n=9:  0 4  8 18 66 76   86    -    - n=10: 0 4  8 14 20 88  124  126   36    - n=11: 0 4  8 12 16 26   90? 100? 106?   -  - n=12: 0 4  8 12 16 20?  34? 112? 128? 130? - - n=13: 0 4  8 10 14 n=14: 0 4  8 12 16 n=15: 0 4  8 10 14 n=16: 0 4  8 12 n=17: 0 4  8 10 n=18: 0 4  8 12 n=19: 0 4  8 10 n=20: 0 4  8<\/code><\/pre>\n<p>\u041c\u0435\u0436\u0434\u0443 \u0442\u0435\u043c, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e <em>C(n, k)<\/em> \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em> \u044d\u0442\u043e:<\/p>\n<pre><code>n=1:  1 n=2:  1  0 n=3:  1  0    0 n=4:  1  0    0     0 n=5:  1  0    0     0      0 n=6:  1  8   26    12      0      0 n=7:  1 12   82   294    244      0        0 n=8:  1 14  126   760   2316   1846        0         0 n=9:  1 16  168  1344   8238  31678    47164         0         0 n=10: 1 18  216  2016  15098  89078   336154    480598      2640         0 n=11: 1 20  270  2880  25200 181308  1039174?  3907420?  5673092?        0  0 n=12: 1 22  330  3960  39600 332582? 2323524? 12999906? 47886678? 67645030? 0 0 n=13: 1 24  396  5280  59400      ?        ?         ?         ?         ?  ? ? 0 n=14: 1 26  468  6864  85800      ?        ?         ?         ?         ?  ? ? ? 0 n=15: 1 28  546  8736 120120      ?        ?         ?         ?         ?  ? ? ? 0 0 n=16: 1 30  630 10920      ?      ?        ?         ?         ?         ?  ? ? ? ? 0 0 n=17: 1 32  720 13440      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? 0 n=18: 1 34  816 16320      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? ? 0 n=19: 1 36  918 19584      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? ? 0 0 n=20: 1 38 1026     ?      ?      ?        ?         ?         ?         ?  ? ? ? ? ? ? ? ? 0 0<\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u0432 (\u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u0445 \u0438\u043b\u0438 \u043d\u0435\u0442) \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em> \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 <\/p>\n<\/li>\n<\/ul>\n<figure class=\"\"><\/figure>\n<ul>\n<li>\n<p>\u041d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e, <em>C(n, 1) = 1<\/em> \u0438 <em>M(n, 1) = 0<\/em>.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f <em>n \u2265 2<\/em> \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <em>C(n, n) = 0<\/em>, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 <em>n<\/em> \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0437\u0430\u043a\u043e\u043d\u043d\u044b\u0445 \u0445\u043e\u0434\u043e\u0432 \u043d\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043b\u0438\u043d\u043e\u0439 <em>k = n \u2013 1<\/em>. \u0422\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u0447\u0438\u0441\u043b\u043e <em>a &lt; n<\/em> \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435; \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u043c\u044b \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <em>n<\/em> \u043d\u0430 \u0441\u0430\u043c\u043e \u0441\u0435\u0431\u044f, \u043b\u0438\u0448\u044c \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0441\u043b\u0435\u0432\u0430 \u0438 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 <em>n<\/em>. \u0418\u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u044b\u043b \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u043c, \u0441\u0443\u043c\u043c\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043b\u0435\u0432\u0430 \u043e\u0442 <em>n<\/em> \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0440\u0430\u0432\u043d\u0430 \u0441\u0443\u043c\u043c\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 <em>n<\/em>. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u0442\u0443 \u0436\u0435 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0438 <em>n(n + 1) \/ 2<\/em>. \u0422\u0435\u043f\u0435\u0440\u044c, \u0435\u0441\u043b\u0438 <em>n \u2013 1<\/em> \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043b\u0435\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u043d\u0430\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u0435\u0433\u043e \u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u0443\u043c\u043c\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 <em>n \u2013 1<\/em>; \u043d\u043e \u044d\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043b\u0438\u0448\u044c <em>a<\/em> \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u043c. \u0418\u0442\u0430\u043a, \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 <em>a<\/em> \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c <em>n \u2013 1<\/em>, \u0438 \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u0442\u0443 \u0436\u0435 \u0447\u0451\u0442\u043d\u043e\u0441\u0442\u044c, \u0447\u0442\u043e \u0438 <em>n(n + 1) \/ 2<\/em> , \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043f\u043e\u0440\u043e\u0432\u043d\u0443 \u043c\u0435\u0436\u0434\u0443 \u043b\u0435\u0432\u043e\u0439 \u0438 \u043f\u0440\u0430\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u044f\u043c\u0438. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u044d\u0442\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u0435, <em>C(n, n \u2013 1)<\/em> \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u0440\u0430\u0432\u0435\u043d \u043d\u0443\u043b\u044e \u0434\u043b\u044f <em>n \u2208 {11, 12, 15, 16, 19, 20&#8230;}<\/em>. \u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u043d\u0443\u043b\u0435\u0432\u044b\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <em>C(10, 9) = 2640<\/em>.<\/p>\n<\/li>\n<li>\n<p>\u0418\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u043c, \u0447\u0442\u043e <em>\u2200k\u2203m\u2200n > m : C(n, k) = Total(n, k). <\/em><\/p>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<p>\u0414\u043b\u044f <em>n<\/em> <em>\u2265 7<\/em> \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c <em>C(n, 2) = Total(n, 2)<\/em> \u0438 <em>M(n, 2) = 4<\/em>. \u0414\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f SevenNinths \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 <a href=\"https:\/\/pawb.fun\/@SevenNinths\/112255955334040349\"><strong>\u0437\u0434\u0435\u0441\u044c<\/strong><\/a>.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f <em>n<\/em> <em>\u2265 9<\/em> \u0443 \u043d\u0430\u0441, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c <em>C(n, 3) = Total(n, 3)<\/em> \u0438 <em>M(n, 3) = 8<\/em>.<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f <em>n<\/em> <em>\u2265 9<\/em> \u0443 \u043d\u0430\u0441, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0435\u0441\u0442\u044c <em>C(n, 4) = Total(n, 4)<\/em>; \u043d\u043e \u043f\u043e\u043a\u0430 <em>M(n, 4)<\/em> \u043a\u043e\u043b\u0435\u0431\u043b\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 10 \u0438 12. \u0411\u0443\u0434\u0435\u0442 \u043b\u0438 \u043e\u043d\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043e 12 (\u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044f, \u0447\u0442\u043e <em>\u2200k\u2203m\u2200n > m : M(n, k) = 4(k \u2013 1)<\/em>), \u0438\u043b\u0438 \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0435?   <\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c SevenNinths <a href=\"https:\/\/pawb.fun\/@SevenNinths\/112255955334040349\"><strong>\u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442<\/strong> <\/a>\u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u2200n <em>\u2265 7 : M(n, 2) = 4<\/em>,<em> <\/em>\u0432 \u0432\u0438\u0434\u0435 \u0431\u0435\u0437\u0443\u043f\u0440\u0435\u0447\u043d\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0434\u0432\u0443\u0445\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 <em>n \u2265 7<\/em>. \u0418\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0438\u0437 3, 4 \u0438 \u0431\u043e\u043b\u0435\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c SevenNinths\u00a0\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0434\u043b\u0438\u043d\u0443 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0440\u0430\u0432\u043d\u043e\u0439 4 \u0438\u043b\u0438 \u043c\u0435\u043d\u044c\u0448\u0435, \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0445 <em>n<\/em>. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 <em>L(n, k) &lt; n<\/em> \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em> \u043c\u043e\u0433 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0451\u043d \u0431\u0435\u0437 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u043f\u0438\u0441\u043a\u0430 \u0434\u043b\u0438\u043d\u043d\u0435\u0435 \u0447\u0435\u043c <em>L(n,k)<\/em>. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f <em>L(n, k)<\/em> \u043c\u043e\u0436\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u0440\u0443\u0442\u0444\u043e\u0440\u0441\u043e\u043c \u0437\u0430 \u0441\u0447\u0451\u0442 \u0441\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u043f\u043e\u0438\u0441\u043a\u0430.<\/p>\n<p>\u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u043e\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 <em>L(n, k)<\/em> \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 \u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <em>n<\/em> \u0438 \u0434\u043b\u0438\u043d\u043e\u0439 <em>k<\/em>, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f:<\/p>\n<pre><code>n=1:  1 n=2:  1 - n=3:  1 - - n=4:  1 - - - n=5:  1 - - - - n=6:  1 4 4 4 - - n=7:  1 4 5 5 5 - - n=8:  1 4 5 6 7 7 - - n=9:  1 4 5 7 7 8 8 - - n=10: 1 4 5 7 8 9 9 9 9 - n=11: 1 4 5 7 8 9 ? ? ? - - n=12: 1 4 5 6 8 ? ? ? ? ? - - n=13: 1 4 5 7 8 ? ? ? ? ? ? ? - n=14: 1 4 5 6 7 ? ? ? ? ? ? ? ? - n=15: 1 4 5 7 8 ? ? ? ? ? ? ? ? - - n=16: 1 4 5 6 ? ? ? ? ? ? ? ? ? ? - - n=17: 1 4 5 7 ? ? ? ? ? ? ? ? ? ? ? ? - n=18: 1 4 5 6 ? ? ? ? ? ? ? ? ? ? ? ? ? - n=19: 1 4 5 7 ? ? ? ? ? ? ? ? ? ? ? ? ? - - n=20: 1 4 5 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? - -<\/code><\/pre>\n<p>\u041a\u043e\u0434 C++17, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d <a href=\"https:\/\/quuxplusone.github.io\/blog\/code\/2024-04-22-solver.cpp\"><strong>\u0437\u0434\u0435\u0441\u044c<\/strong><\/a>.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/815059\/\"> https:\/\/habr.com\/ru\/articles\/815059\/<\/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-376404","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/376404","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=376404"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/376404\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=376404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=376404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=376404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}