<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>1541</id>
  <path>/www/nrich/html/content/00/02/logo1/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;div&gt;This builds on the Challenge &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=1540&amp;amp;part=1540&quot;&gt;Circles as Animals&lt;/a&gt; .&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The idea of &amp;#39;bugs&amp;#39; that grow with each successive generation and (when this problem was written) thoughts of the Y2K bugs- which if the newspapers were to be believedwould be here, there, everywhere. Surely some mistake! And it was!&lt;/div&gt;
&lt;p&gt;However below are some bugs for the new millennium that can be replicated with some elegant programming.&lt;/p&gt;
&lt;p&gt;&lt;mdo:image align=&quot;middle&quot; alt=&quot;LogoLand&quot; heigh=&quot;301&quot; src=&quot;fig1.gif&quot; width=&quot;279&quot;&gt;&lt;/mdo:image&gt; &lt;mdo:image align=&quot;middle&quot; alt=&quot;LogoLand&quot; height=&quot;193&quot; src=&quot;fig3.gif&quot; width=&quot;163&quot;&gt;&lt;/mdo:image&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: center;&quot;&gt;&lt;mdo:image alt=&quot;&quot; height=&quot;332&quot; src=&quot;fig2.gif&quot; width=&quot;331&quot;&gt;&lt;/mdo:image&gt;&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;You might like to think about, discuss with others and try evaluating before copying out the following procedures and experimenting further&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;TO FIB :X :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;PR :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;WAIT 15&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;FIB :Y :X +:Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;END&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;Try FIB 0 1&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;TO POW :X :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;PR :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;WAIT 15&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;POW :X :X * :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;END&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;Try POW 2 1&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;TO TRI :X :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;PR :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;WAIT 15&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;TRI :X + 1 :X + :Y&lt;/p&gt;
&lt;p style=&quot;text-align: left; margin-left: 40px;&quot;&gt;END&lt;/p&gt;
&lt;p style=&quot;text-align: left;&quot;&gt;Try TRI 1 0&lt;/p&gt;
&lt;p&gt;You may even like to consider sending us other procedures that generate other special sequences of numbers.&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Some of these circle designs are very attractive, especially with
the colour, and also very demanding. Close attention to detail is
needed, but if you have done some of the other challenges involving
circles you might feel quite confident. Otherwise why not go back
and look at LOGO Challenges &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=1539&amp;amp;part=1539&quot;&gt;10&lt;/a&gt; , &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4970&amp;amp;part=4970&quot;&gt;11&lt;/a&gt; and &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4971&amp;amp;part=4971&quot;&gt;12&lt;/a&gt; .&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The WAIT &amp;lt; n&amp;gt; command simply asks LOGO to WAIT before
carrying out the next command so that you have time to see what is
happening!!&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
These sequences should look very familiar using the values for the
variables that are suggested but what is happening when you change
the starting value of the variable?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
You might also like to begin by thinking about a procedure that was
sent to us. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;TO FIBUPM :X :Y :M&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;IF :M = 0 [PR :Y STOP]&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;FIBUPM :Y :X + :Y :M - 1&lt;/div&gt;
&lt;div style=&quot;margin-left: 40px;&quot;&gt;END&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
What is going on here? &lt;br&gt;&lt;/br&gt;
Remember - be patient and change only one variable at a time to
begin to see what is happening.&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML/>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>4</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>LOGO Challenge - Circles as bugs</title>
  <description>Here are some circle bugs to try to replicate with some elegant
programming, plus some sequences generated elegantly in LOGO.</description>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Sequences</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Fibonacci sequence</specifier>
  </spec_group>
  <spec_group>Information and Communications Technology
    <specifier>Logo</specifier>
  </spec_group>
</resource>