<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>4860</id>
  <path>/www/nrich/html/content/id/4860/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://nrich.maths.org/8045&quot;&gt;First Forward Into Logo&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Previous:&lt;/strong&gt; &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=1542&amp;amp;part=&quot;&gt;FF10&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;table style=&quot;&quot; border=&quot;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Consider the following procedure which uses two variables:
&lt;div&gt;(Warning - you may have to press HALT to stop this procedure.)&lt;/div&gt;
&lt;div&gt;TO LOP :X :Y&lt;/div&gt;
&lt;div&gt;PR :X&lt;/div&gt;
&lt;div&gt;WAIT 120&lt;/div&gt;
&lt;div&gt;LOP :Y :X + :Y&lt;/div&gt;
&lt;div&gt;END&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;What do you think is happening this time?&lt;/div&gt;
&lt;div&gt;Try &amp;#39;chasing&amp;#39; through the procedure the values: x = 1 and y = 1.&lt;/div&gt;
&lt;div&gt;No longer surprised!&lt;/div&gt;
&lt;div&gt;Why do you think it goes on and on...?&lt;/div&gt;
&lt;div&gt;Yes it keeps starting itself again, but with different variables,&lt;/div&gt;
&lt;div&gt;moving on in the sequence by adding the last two variables.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;Why not experiment further changing the fourth line?&lt;/div&gt;
&lt;div&gt;For example:&lt;/div&gt;
&lt;div&gt;LOP :Y :X +:Y*2&lt;/div&gt;
&lt;div&gt;LOP :Y :X - :Y*2&lt;/div&gt;
&lt;div&gt;LOP :Y :X * 2&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;Any surprises?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;LOP :Y * 2 :X + :Y&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;Etc. Etc. Etc....&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt; &lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;1&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;1&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;3&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;5&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;11&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;21&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;43&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;85&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;171&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;341&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;683&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;1365&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;2731&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;5461&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;10923&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;21845&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;43691&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;87381&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;174763&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;349525&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;699051&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;1398101&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;2796203&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;5592405&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;11184811&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;22369621&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;44739243&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;89478485&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;178956971&lt;/div&gt;
&lt;div style=&quot;text-align: right;&quot;&gt;357913941&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Next:&lt;/strong&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4861&amp;amp;part=&quot;&gt; FF12&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML/>
  <clueXML/>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>First Forward into Logo 11: Sequences</title>
  <description>This part introduces the use of Logo for number work. Learn how to use Logo to generate sequences of numbers.</description>
  <spec_group>Information and Communications Technology
    <specifier>Logo</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Fibonacci sequence</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Practical Activity</specifier>
  </spec_group>
</resource>