{"id":783,"date":"2014-11-19T22:14:11","date_gmt":"2014-11-19T21:14:11","guid":{"rendered":"http:\/\/www.unimath.fr\/?p=783"},"modified":"2016-05-28T15:03:12","modified_gmt":"2016-05-28T14:03:12","slug":"dm-guide-algorithme-ts","status":"publish","type":"post","link":"http:\/\/www.unimath.fr\/?p=783","title":{"rendered":"DM guid\u00e9 Suites n\u00b02 (algorithme)"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><strong>Partie 1<br \/>\n<\/strong>On consid\u00e8re l&rsquo;algorithme suivant :<br \/>\n<em>Entr\u00e9e<\/em> :<br \/>\n<img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> un entier naturel.<br \/>\n<em style=\"line-height: 1.714285714; font-size: 1rem;\">Initialisation<\/em><span style=\"line-height: 1.714285714; font-size: 1rem;\"> :<br \/>\n<\/span>affecter \u00e0 <img src='http:\/\/s0.wp.com\/latex.php?latex=u&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u' title='u' class='latex' \/> la valeur 1<br \/>\naffecter \u00e0 <img src='http:\/\/s0.wp.com\/latex.php?latex=S&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S' title='S' class='latex' \/> la valeur 1<br \/>\n<span style=\"line-height: 1.714285714; font-size: 1rem;\">affecter \u00e0 <img src='http:\/\/s0.wp.com\/latex.php?latex=i&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='i' title='i' class='latex' \/> la valeur 0.<br \/>\n<\/span><em style=\"line-height: 1.714285714; font-size: 1rem;\">Traitement<\/em><span style=\"line-height: 1.714285714; font-size: 1rem;\"> :<br \/>\n<\/span>tant que <img src='http:\/\/s0.wp.com\/latex.php?latex=i+%3C+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='i &lt; n' title='i &lt; n' class='latex' \/><br \/>\n<span style=\"line-height: 1.714285714; font-size: 1rem;\">affecter \u00e0 <img src='http:\/\/s0.wp.com\/latex.php?latex=u&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u' title='u' class='latex' \/> la valeur <img src='http:\/\/s0.wp.com\/latex.php?latex=2u+%2B+1+-+i&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='2u + 1 - i' title='2u + 1 - i' class='latex' \/><br \/>\n<\/span><span style=\"line-height: 1.714285714; font-size: 1rem;\">affecter \u00e0 <img src='http:\/\/s0.wp.com\/latex.php?latex=S&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S' title='S' class='latex' \/> la valeur <img src='http:\/\/s0.wp.com\/latex.php?latex=S+%2B+u&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S + u' title='S + u' class='latex' \/><br \/>\n<\/span><span style=\"line-height: 1.714285714; font-size: 1rem;\">affecter \u00e0 <img src='http:\/\/s0.wp.com\/latex.php?latex=i&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='i' title='i' class='latex' \/> la valeur <img src='http:\/\/s0.wp.com\/latex.php?latex=i+%2B+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='i + 1' title='i + 1' class='latex' \/>.<br \/>\n<\/span><span style=\"line-height: 1.714285714; font-size: 1rem;\">fin du tant que<br \/>\n<\/span><em>Sortie<\/em> :<br \/>\n<span style=\"line-height: 1.714285714; font-size: 1rem;\">afficher <img src='http:\/\/s0.wp.com\/latex.php?latex=u&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u' title='u' class='latex' \/><br \/>\n<\/span><span style=\"line-height: 1.714285714; font-size: 1rem;\">afficher <img src='http:\/\/s0.wp.com\/latex.php?latex=S&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S' title='S' class='latex' \/>.<\/span><\/p>\n<p>Pour <img src='http:\/\/s0.wp.com\/latex.php?latex=n+%3D+5&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n = 5' title='n = 5' class='latex' \/>, quelles sont les valeurs de <img src='http:\/\/s0.wp.com\/latex.php?latex=u&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u' title='u' class='latex' \/> et <img src='http:\/\/s0.wp.com\/latex.php?latex=S&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S' title='S' class='latex' \/> affich\u00e9es ?<\/p>\n<p><strong>Partie 2<\/strong><br \/>\nSoit la suite <img src='http:\/\/s0.wp.com\/latex.php?latex=%5Cleft%28u_%7Bn%7D%5Cright%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\left(u_{n}\\right)' title='\\left(u_{n}\\right)' class='latex' \/> d\u00e9finie par :<br \/>\n<img src='http:\/\/s0.wp.com\/latex.php?latex=u_%7B0%7D+%3D+1&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u_{0} = 1' title='u_{0} = 1' class='latex' \/> et, pour tout entier naturel <img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/>, <img src='http:\/\/s0.wp.com\/latex.php?latex=u_%7Bn+%2B+1%7D+%3D+2u_%7Bn%7D+%2B+1+-+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u_{n + 1} = 2u_{n} + 1 - n' title='u_{n + 1} = 2u_{n} + 1 - n' class='latex' \/>\u00a0et la suite <img src='http:\/\/s0.wp.com\/latex.php?latex=%5Cleft%28S_%7Bn%7D%5Cright%29&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='\\left(S_{n}\\right)' title='\\left(S_{n}\\right)' class='latex' \/> d\u00e9finie sur N par : <img src='http:\/\/s0.wp.com\/latex.php?latex=S_%7Bn%7D+%3D+u_%7B0%7D+%2B+u_%7B1%7D+%2B+%5Ccdots+%2B+u_%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_{n} = u_{0} + u_{1} + \\cdots + u_{n}' title='S_{n} = u_{0} + u_{1} + \\cdots + u_{n}' class='latex' \/>.<\/p>\n<ol>\n<li>Pour un entier naturel <img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> donn\u00e9, que repr\u00e9sentent les valeurs affich\u00e9es par l&rsquo;algorithme de la partie 1 ?<br \/>\n[peekaboo_link name=\u00a0\u00bbaide1&Prime;] <span style=\"color: #d62647;\">V\u00e9rification <\/span>[\/peekaboo_link][peekaboo_content name=\u00a0\u00bbaide1&Prime;] Au 3\u00e8me passage de la boucle, on obtient u=11et S=21[\/peekaboo_content]<\/li>\n<li>Le but de cette question est d&rsquo;exprimer <img src='http:\/\/s0.wp.com\/latex.php?latex=u_%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='u_{n}' title='u_{n}' class='latex' \/> en fonction de <img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/>.\n<ul style=\"list-style-type: lower-alpha;\">\n<li>Recopier et compl\u00e9ter le tableau suivant (pour <img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> allant de 0 \u00e0 5) :<br \/>\n<a href=\"http:\/\/www.s431178539.onlinehome.fr\/wordpressnath\/wp-content\/uploads\/2014\/11\/tableau-DM-algorithme.png\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-784\" src=\"http:\/\/www.s431178539.onlinehome.fr\/wordpressnath\/wp-content\/uploads\/2014\/11\/tableau-DM-algorithme-300x94.png\" alt=\"tableau DM algorithme\" width=\"300\" height=\"94\" srcset=\"http:\/\/www.s431178539.onlinehome.fr\/wordpressnath\/wp-content\/uploads\/2014\/11\/tableau-DM-algorithme-300x94.png 300w, http:\/\/www.s431178539.onlinehome.fr\/wordpressnath\/wp-content\/uploads\/2014\/11\/tableau-DM-algorithme.png 311w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>[peekaboo_link name=\u00a0\u00bbaide2&Prime;]<span style=\"color: #d62647;\">V\u00e9rification <\/span>[\/peekaboo_link][peekaboo_content name=\u00a0\u00bbaide2&Prime;] pour n=3, on a u=11[\/peekaboo_content]<\/li>\n<li>Quelle conjecture peut-on faire \u00e0 partir des r\u00e9sultats de ce tableau ?<br \/>\n[peekaboo_link name=\u00a0\u00bbaide3&Prime;]<span style=\"color: #d62647;\">Aide <\/span>[\/peekaboo_link][peekaboo_content name=\u00a0\u00bbaide3&Prime;] Les termes peuvent s&rsquo;\u00e9crire comme une puissance d&rsquo;un m\u00eame nombre [\/peekaboo_content]<\/li>\n<li>D\u00e9montrer par r\u00e9currence que, pour tout entier naturel <img src='http:\/\/s0.wp.com\/latex.php?latex=n%2C%7Eu_%7Bn%7D+%3D+2%5En+%2B+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n,~u_{n} = 2^n + n' title='n,~u_{n} = 2^n + n' class='latex' \/>.<\/li>\n<\/ul>\n<\/li>\n<li>Le but de cette question est de calculer <img src='http:\/\/s0.wp.com\/latex.php?latex=S_%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_{n}' title='S_{n}' class='latex' \/> en fonction de <img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> et d&rsquo;utiliser un r\u00e9sultat de la premi\u00e8re partie pour contr\u00f4ler l&rsquo;exactitude de ce calcul.\n<ul style=\"list-style-type: lower-alpha;\">\n<li>Exprimer en fonction de <img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/> les sommes :\u00a0<img src='http:\/\/s0.wp.com\/latex.php?latex=1+%2B+2+%2B%5Ccdots%2B+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1 + 2 +\\cdots+ n' title='1 + 2 +\\cdots+ n' class='latex' \/> et <img src='http:\/\/s0.wp.com\/latex.php?latex=1+%2B+2+%2B+2%5E2+%2B+%5Ccdots%2B+2%5En&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1 + 2 + 2^2 + \\cdots+ 2^n' title='1 + 2 + 2^2 + \\cdots+ 2^n' class='latex' \/><br \/>\n[peekaboo_link name=\u00a0\u00bbaide4&Prime;]<span style=\"color: #d62647;\">Aide <\/span>[\/peekaboo_link][peekaboo_content name=\u00a0\u00bbaide4&Prime;] <img src='http:\/\/s0.wp.com\/latex.php?latex=1+%2B+2+%2B%5Ccdots%2B+n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1 + 2 +\\cdots+ n' title='1 + 2 +\\cdots+ n' class='latex' \/> est la somme des termes d&rsquo;une suite arithm\u00e9tique<br \/>\net <img src='http:\/\/s0.wp.com\/latex.php?latex=1+%2B+2+%2B+2%5E2+%2B+%5Ccdots%2B+2%5En&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='1 + 2 + 2^2 + \\cdots+ 2^n' title='1 + 2 + 2^2 + \\cdots+ 2^n' class='latex' \/> est la somme des termes d&rsquo;une suite g\u00e9om\u00e9trique [\/peekaboo_content]<\/li>\n<li>En d\u00e9duire une expression de <img src='http:\/\/s0.wp.com\/latex.php?latex=S_%7Bn%7D&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_{n}' title='S_{n}' class='latex' \/> en fonction de <img src='http:\/\/s0.wp.com\/latex.php?latex=n&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n' title='n' class='latex' \/>.<br \/>\n[peekaboo_link name=\u00a0\u00bbaide5&Prime;]<span style=\"color: #d62647;\">Aide <\/span>[\/peekaboo_link][peekaboo_content name=\u00a0\u00bbaide5&Prime;] Remplacer chaque terme de la somme par son expression puis faire des regroupements pour faire appara\u00eetre les sommes pr\u00e9c\u00e9dentes. [\/peekaboo_content]<\/li>\n<li>V\u00e9rifier le r\u00e9sultat obtenu dans la premi\u00e8re partie pour <img src='http:\/\/s0.wp.com\/latex.php?latex=n+%3D+5&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='n = 5' title='n = 5' class='latex' \/>.<br \/>\n[peekaboo_link name=\u00a0\u00bbaide6&Prime;]<span style=\"color: #d62647;\">Aide <\/span>[\/peekaboo_link][peekaboo_content name=\u00a0\u00bbaide6&Prime;] On doit trouver <img src='http:\/\/s0.wp.com\/latex.php?latex=S_5%3D78&#038;bg=ffffff&#038;fg=000000&#038;s=0' alt='S_5=78' title='S_5=78' class='latex' \/> comme dans la partie 1\u00a0[\/peekaboo_content]<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>Correction<\/strong> :\u00a0<a href=\"http:\/\/www.s431178539.onlinehome.fr\/wordpressnath\/wp-content\/uploads\/2014\/11\/C-DM-guide-suites-algorithme.pdf\" rel=\"\">Cliquer ici<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Partie 1 On consid\u00e8re l&rsquo;algorithme suivant : Entr\u00e9e : un entier naturel. Initialisation : affecter \u00e0 la valeur 1 affecter \u00e0 la valeur 1 affecter \u00e0 la valeur 0. Traitement : tant que affecter \u00e0 la valeur affecter \u00e0 la valeur affecter \u00e0 la valeur . fin du tant que Sortie : afficher afficher [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.unimath.fr\/index.php?rest_route=\/wp\/v2\/posts\/783"}],"collection":[{"href":"http:\/\/www.unimath.fr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.unimath.fr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.unimath.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.unimath.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=783"}],"version-history":[{"count":27,"href":"http:\/\/www.unimath.fr\/index.php?rest_route=\/wp\/v2\/posts\/783\/revisions"}],"predecessor-version":[{"id":2312,"href":"http:\/\/www.unimath.fr\/index.php?rest_route=\/wp\/v2\/posts\/783\/revisions\/2312"}],"wp:attachment":[{"href":"http:\/\/www.unimath.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=783"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.unimath.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=783"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.unimath.fr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=783"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}