<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Thanks, <br>
      <br>
      I will think about this at some later point. <br>
      I have a cold and my head is not willing to cooperate at this
      moment. <br>
      <br>
      Roelof<br>
      <br>
      <br>
      <br>
      Sumit Sahrawat, Maths & Computing, IIT (BHU) schreef op
      17-2-2015 om 19:07:<br>
    </div>
    <blockquote
cite="mid:CAJbEW8M6u=UEcWNvazwY_vNLh06hF2Nxp6qDg-gY_faCeW=vbg@mail.gmail.com"
      type="cite">
      <div dir="ltr">hanoi 1 p1   _ p3 = move 1 disc from p1 to p3
        <div>hanoi n p1 p2 p3 = move n discs from p1 to p3 using p2 in
          between</div>
        <div><br>
        </div>
        <div>The definition of the first equation is easy. To complete
          the second equation, you need to use hanoi again recursively.</div>
        <div>I detailed a way to complete the second equation in my
          previous mail (which hopefully didn't spoil it).</div>
        <div><br>
        </div>
        <div>Hope this helps.</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On 17 February 2015 at 22:39, Roelof
          Wobben <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>Stupid error <br>
                <br>
                Then it must be like this : <br>
                <span class=""> <br>
                  hanoi n 1 2 3 <br>
                      | n = 1 -> moves the last disk to the goal peg
                  <br>
                </span><span class="">     | n > 1 -> moves all
                  the other disk to the spare peg or to the  moves n -1
                  to the goal peg<br>
                  <br>
                  <br>
                </span> Roelof<br>
                <br>
                <br>
                Mike Meyer schreef op 17-2-2015 om 17:57:<br>
              </div>
              <div>
                <div class="h5">
                  <blockquote type="cite">
                    <p dir="ltr"> On Feb 17, 2015 10:50 AM, "Roelof
                      Wobben" <<a moz-do-not-send="true"
                        href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>>

                      wrote:<br>
                      ><br>
                      > N reprent the number of disk <br>
                    </p>
                    <p dir="ltr">So how does moving 0 disks happen? That
                      is what your first case deals with.</p>
                    <p dir="ltr">> Roelof<br>
                      ><br>
                      ><br>
                      > Mike Meyer schreef op 17-2-2015 om 17:47:<br>
                      >><br>
                      >><br>
                      >> On Feb 17, 2015 10:18 AM, "Roelof Wobben"
                      <<a moz-do-not-send="true"
                        href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>>

                      wrote:<br>
                      >> ><br>
                      >> > This part I understand well. <br>
                      >> ><br>
                      >> > So you could do something like this:<br>
                      >> ><br>
                      >> > hanoi n 1 2 3 <br>
                      >> >    | n = 0 -> moves the last disk
                      to the goal peg <br>
                      >> >    | n != 0 -> moves all the
                      other disk to the spare peg or to the  moves n -1
                      to the goal peg<br>
                      >><br>
                      >> What does n represent here?<br>
                      >><br>
                      >><br>
                      >><br>
                      >>
                      _______________________________________________<br>
                      >> Beginners mailing list<br>
                      >> <a moz-do-not-send="true"
                        href="mailto:Beginners@haskell.org"
                        target="_blank">Beginners@haskell.org</a><br>
                      >> <a moz-do-not-send="true"
                        href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners"
                        target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
                      ><br>
                      ><br>
                      ><br>
                      >
                      _______________________________________________<br>
                      > Beginners mailing list<br>
                      > <a moz-do-not-send="true"
                        href="mailto:Beginners@haskell.org"
                        target="_blank">Beginners@haskell.org</a><br>
                      > <a moz-do-not-send="true"
                        href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners"
                        target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
                      ><br>
                    </p>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
Beginners mailing list
<a moz-do-not-send="true" href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a>
<a moz-do-not-send="true" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            Beginners mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
            <a moz-do-not-send="true"
              href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners"
              target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div dir="ltr">
                  <div>Regards</div>
                  <div dir="ltr">
                    <div><br>
                    </div>
                    <div>Sumit Sahrawat</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>