{"id":18185,"date":"2014-04-23T22:44:07","date_gmt":"2014-04-24T01:44:07","guid":{"rendered":"http:\/\/clubes.obmep.org.br\/blog\/?page_id=18185"},"modified":"2023-01-29T21:55:43","modified_gmt":"2023-01-30T00:55:43","slug":"problema-olimpico-nivel-c-somando-somas-2","status":"publish","type":"page","link":"https:\/\/clubes.obmep.org.br\/blog\/problema-olimpico-nivel-c-somando-somas-2\/","title":{"rendered":".Problema Ol\u00edmpico &#8211; N\u00edvel C:  Somando somas &#8211; 2"},"content":{"rendered":"<p style=\"margin:10px\">\n<div class=\"g1n\">\n<p class=\"tit\" style=\"line-height:28px;margin:10px\">Problema<\/p>\n<hr style=\"height:1px; width:100%;background-color:#800000; margin-top: 10px; margin-bottom: 10px;border: 0 none\"\/>\n<p style=\"margin:20px\">\n<p>Se [tex]n[\/tex] \u00e9 um inteiro positivo, denotaremos por [tex]S(n)[\/tex] a soma dos algarismos de [tex]n[\/tex].<br \/>\nPor exemplo, [tex]S(271)=10[\/tex] e [tex]S(12345)=15[\/tex].<br \/>\n<strong>Determine  [tex]n[\/tex]  tal que [tex]n+S(n)+S(S(n))+S(S(S(n)))=1993[\/tex].<\/strong><\/p>\n<p style=\"text-align:center\"><span style=\"color: #BF8000; font-size: 31px;\">&#9733;<\/span><span style=\"color: #808080;font-size: 31px;\">&#9733;<\/span><span style=\"color: #FFBF00;font-size: 31px;\">&#9733;\u00a0<\/span><\/p>\n<\/div>\n<p style=\"margin:30px;line-height:38px;\">\n<div class=\"g1n\">\n<p class=\"tit\" style=\"line-height:30px;margin:10px\">Solu\u00e7\u00e3o<\/p>\n<hr style=\"height:1px; width:100%;background-color:#800000; margin-top: 10px; margin-bottom: 10px;border: 0 none\"\/>\n<p style=\"margin:20px\">\n<p>Claramente [tex]n\\lt 1993[\/tex].<br \/>\nObservamos que, dentre os n\u00fameros entre [tex]1[\/tex]  e [tex]1993[\/tex], os que t\u00eam a maior soma de d\u00edgitos s\u00e3o [tex]999[\/tex], [tex]1898[\/tex] e [tex]1989[\/tex], assim [tex]S(n)\\leq 27[\/tex].<br \/>\nDe [tex]S(n)\\leq 27[\/tex], segue que [tex]S(S(n))\\leq S(19)=10[\/tex] e ainda [tex]S(S(S(n)))\\leq 9[\/tex].<br \/>\nDe [tex]n+S(n)+S(S(n))+S(S(S(n)))=1993[\/tex], segue que:<br \/>\n [tex]\\quad n=1993-S(n)-S(S(n))-S(S(S(n)))[\/tex].<br \/>\nAssim, como [tex]S(n)\\leq 27[\/tex], [tex]S(S(n))\\leq 10[\/tex]  e  [tex]S(S(S(n)))\\leq 9[\/tex], podemos concluir que  [tex]n\\geq 1993-27-10-9[\/tex], ou seja,  [tex]n\\geq 1947[\/tex].<br \/>\nVamos agora utilizar uma conhecida propriedade sobre  restos de uma divis\u00e3o por [tex]9[\/tex].<\/p>\n<div style=\"border: 2px dotted #800000; padding: 10px;\">\n<p><span style=\"color: #FF4500;\"><strong>(*)<\/strong><\/span><strong>Propriedade: <\/strong> Seja [tex]n[\/tex] um n\u00famero inteiro positivo e seja [tex]S(n)[\/tex] a soma dos algarismos de [tex]n[\/tex]. Ent\u00e3o [tex]n[\/tex] e [tex]S(n)[\/tex] deixam o mesmo resto quando divididos por [tex]9[\/tex].<br \/>\nPara voc\u00ea entender melhor, considere a representa\u00e7\u00e3o decimal do n\u00famero [tex]n[\/tex]:<br \/>\n[tex]\\quad n=\\left(a_ma_{m-1}\\cdots a_2a_1a_0\\right)_{10}\\\\<br \/>\n\\quad n= a_m10^m+a_{m-1}10^{m-1}+\\cdots+a_210^2+a_110^1+a_0\\,.[\/tex]<\/p>\n<p>O que estamos afirmando \u00e9 que o resto da divis\u00e3o de [tex]n[\/tex] por [tex]9[\/tex] \u00e9 o mesmo resto da divis\u00e3o de [tex]a_m+a_{m-1}+\\cdots +a_2+a_1+a_0[\/tex] por [tex]9[\/tex].<\/p>\n<table style=\"border: 2px solid #FFFFFF; width:45%; height:auto; text-align:center; margin-left: auto; margin-right: auto;\">\n<tr class=\"bf\">\n<td  style=\"text-align:center; border-RIGHT: 2px solid \"> [tex]n\\, \\, [\/tex]  <\/td>\n<td> &nbsp;&nbsp;[tex]9[\/tex] <\/td>\n<td style=\"border: 2px solid #FFFFFF\"><\/td>\n<td  style=\"text-align:center; border-RIGHT: 2px solid \">[tex]\\qquad a_m+a_{m-1}+\\cdots +a_2+a_1+a_0[\/tex]  <\/td>\n<td > &nbsp;&nbsp;[tex]9[\/tex] <\/td>\n<\/tr>\n<tr class=\"bf\">\n<td style=\"border: 2px solid #FFFFFF\">[tex]r[\/tex]  <\/td>\n<td   style=\"text-align:right; border-top: 2px solid \"> [tex]\\, \\, \\, q_1[\/tex] <\/td>\n<td style=\"border: 2px solid #FFFFFF\"><\/td>\n<td style=\"border: 2px solid #FFFFFF\">[tex]r[\/tex]  <\/td>\n<td   style=\"text-align:right; border-top: 2px solid \"> [tex]\\, \\, \\, q_2[\/tex] <\/td>\n<\/table>\n<\/div>\n<p style=\"margin:20px\">\n<p>Pela propriedade, os n\u00fameros [tex]n,\\, \\, S(n),\\, \\, S(S(n)),\\, \\, S(S(S(n)))[\/tex] deixam o mesmo resto, quando divididos por [tex]9[\/tex]: digamos [tex]r[\/tex].<br \/>\nAssim<br \/>\n[tex]\\qquad \\bullet~ n=9q_1+r,\\, \\, q_1\\in \\mathbb{N}[\/tex];<br \/>\n[tex]\\qquad \\bullet~ S(n)=9q_2+r,\\, \\, q_2\\in \\mathbb{N}[\/tex];<br \/>\n[tex]\\qquad \\bullet~ S(S(n))=9q_3+r,\\, \\, q_3\\in \\mathbb{N}[\/tex];<br \/>\n[tex]\\qquad \\bullet~ S(S(S(n)))=9q_4+r,\\, \\, q_4\\in \\mathbb{N}[\/tex];<br \/>\ne, ent\u00e3o,<br \/>\n[tex]\\quad 1993=n+S(n)+S(S(n))+S(S(S(n)))=9\\times Q+4r[\/tex],<br \/>\ncom [tex]\\, Q=q_1+q_2+q_3+q_4[\/tex].  <\/p>\n<p>Mas [tex]1993=9\\times 221+4[\/tex], assim [tex]9\\times 221+4=9\\times Q+4r[\/tex], donde [tex]9\\times (221-Q)=4\\times (r-1)[\/tex].<br \/>\nEssa \u00faltima equa\u00e7\u00e3o nos garante que [tex]4\\times (r-1)[\/tex] \u00e9  m\u00faltiplo de  [tex]9[\/tex] e como [tex]mdc(4,9)=1[\/tex] (isto \u00e9, [tex]4[\/tex] e [tex]9[\/tex] n\u00e3o t\u00eam fatores em comum) podemos concluir que [tex]r-1[\/tex] \u00e9 m\u00faltiplo de 9.<br \/>\nMas [tex]r[\/tex] \u00e9 um resto de uma divis\u00e3o por 4, logo [tex]r\\lt 4[\/tex], e assim [tex]r-1[\/tex] \u00e9 um m\u00faltiplo de [tex]9[\/tex] menor do que 3, ou seja, [tex]r-1=0[\/tex] e, consequentemente, [tex]r=1[\/tex].<br \/>\nComo [tex]n=9q_1+r[\/tex] , ent\u00e3o [tex]n=9q_1+1[\/tex] o que nos garante que [tex]n[\/tex] \u00e9 um n\u00famero tal que [tex]1947\\leq n \\lt  1993[\/tex] e que, quando dividido por [tex]9[\/tex], deixa resto 1.<br \/>\nOs n\u00fameros que satisfazem essas condi\u00e7\u00f5es s\u00e3o [tex]1954,\\, 1963,\\, 1972,\\, 1981[\/tex] e [tex]1990[\/tex] e desses, apenas [tex]1963[\/tex] satisfaz a equa\u00e7\u00e3o dada.<\/p>\n<p style=\"text-align: right;\"><span style=\"color: #FF4500;\"><strong>(*)<\/strong><\/span> Tente justificar essa propriedade.<\/p>\n<hr style=\"height:1px; width:100%;background-color:#800000; margin-top: 10px; margin-bottom: 15px;border: 0 none\"\/>\n<p class=\"g2\" style=\"line-height:20px;\">Solu\u00e7\u00e3o elaborada pelos <strong>Moderadores do Blog<\/strong>.<\/p>\n<\/div>\n<p style=\"margin:10px\">\n","protected":false},"excerpt":{"rendered":"<p>Problema Se [tex]n[\/tex] \u00e9 um inteiro positivo, denotaremos por [tex]S(n)[\/tex] a soma dos algarismos de [tex]n[\/tex]. Por exemplo, [tex]S(271)=10[\/tex] e [tex]S(12345)=15[\/tex]. Determine [tex]n[\/tex] tal que [tex]n+S(n)+S(S(n))+S(S(S(n)))=1993[\/tex]. &#9733;&#9733;&#9733;\u00a0 Solu\u00e7\u00e3o Claramente [tex]n\\lt 1993[\/tex]. Observamos que, dentre os n\u00fameros entre [tex]1[\/tex] e [tex]1993[\/tex], os que t\u00eam a maior soma de d\u00edgitos s\u00e3o [tex]999[\/tex], [tex]1898[\/tex] e [tex]1989[\/tex], assim [tex]S(n)\\leq &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/clubes.obmep.org.br\/blog\/problema-olimpico-nivel-c-somando-somas-2\/\">Continue lendo<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"template-onecolumn.php","meta":{"footnotes":""},"class_list":["post-18185","page","type-page","status-publish","hentry","nodate","item-wrap"],"_links":{"self":[{"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/pages\/18185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/comments?post=18185"}],"version-history":[{"count":33,"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/pages\/18185\/revisions"}],"predecessor-version":[{"id":18206,"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/pages\/18185\/revisions\/18206"}],"wp:attachment":[{"href":"https:\/\/clubes.obmep.org.br\/blog\/wp-json\/wp\/v2\/media?parent=18185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}