<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>7707</id>
  <path>/www/nrich/html/content/id/7707/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-10-24T11:56:26</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;Xn nwj kpv gmpl ipxa, lmat swcm! Ipxa hwgb dn rqeptz xa riattl p xdtniaxwiqmiqr kxxwmg. Ndz tfpuetta aqzm ipxa dvt exbw i zmnedzs wu ttvvbw blw, xb&amp;#39;h xdahqqtt bd adtkm xb qg wicl ychb iznqco ewhaxjxtxbxmh. Pdetdtz, lqip p tdvvmg stglwgl ipxa vmia kmgg wigl. Iptzt igm bwgm hwepxaiqriims btkwvxyjmh, wcm dn lpxkw qh kptams Spaxazq tfpuxvpbxwc. Bwqh qcddtkmh tdwzqco uwg ztxtiims ttbimga xv ipt
kxxwmgbtfi. Qi&amp;#39;a aqzmag ippb ipt vjuqmg wu ttbimga xvqmietmc bwmhm gmempbh qh i bcabxxam dn ipt stglwgl amcoip. Awds pb lqzqemsqp ndz bwgm xvuwgupbxwc! Jn bwm lin, qu gdc sqsv&amp;#39;i edzz qi wjb, ipt xgmkqdch kxxwmg epa p stglwgl hcqaiqiciqdv rqeptz lqip zmnedzs stglwgl. Hw uig, et&amp;#39;dt wctn kdvhqsmgms ajjhbxbjbxwc kxxwmga, qci bwmgm pzt wiptz ptimgvpbxdta. Lm rwjts ndz tfpuett ztwgltz ipt
kxxwmgbtfi.&lt;/p&gt;

&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;Have you managed to solve the entire &lt;a href=&quot;http://nrich.maths.org/7081&quot;&gt;Stage 5 Cipher Challenge&lt;/a&gt;? Solutions are now closed, but perhaps you want to take up the full challenge.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Successful solvers of this part were:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Mahdokht from Farzanegan of Kermanshah&lt;br&gt;&lt;/br&gt;
Patrick from Woodbridge School, England&lt;br&gt;&lt;/br&gt;
An Anonymous Solver from Somewhere in the US&lt;br&gt;&lt;/br&gt;
Joseph from Hong Kong&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
The solution is:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If you can read this, well done! This sort of cipher is called a polyalphabetic cipher. For examples like this one with a keyword of length two, it&amp;#39;s possible to solve it by hand just trying possibilities. However, with a longer keyword this gets very hard. There are more sophisticated techniques, one of which is called Kasiski examination. This involves looking for repeated letters in the
ciphertext. It&amp;#39;s likely that the number of letters inbetween these repeats is a multiple of the keyword length. Look at wikipedia for more information! By the way, if you didn&amp;#39;t work it out, the previous cipher was a keyword substitution cipher with keyword keyword. So far, we&amp;#39;ve only considered substitution ciphers, but there are other alternatives. We could for example reorder the
ciphertext.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
vigenere keyword: pi&lt;/p&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;This challenge cipher forms part of a very difficult &lt;a href=&quot;http://nrich.maths.org/7081&quot;&gt;sequence of ciphers&lt;/a&gt; suitable for keen groups or individuals, maths clubs and very optional homework challenges. Don&amp;#39;t try this in the classroom!&lt;/p&gt;&lt;/mdoxml&gt;</noteXML>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;This is the fourth of our &lt;a href=&quot;https://nrich.maths.org/7081&quot;&gt;challenge ciphers&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;We recommend that you attempt them in order, as the solution of each challenge gives a small (and necessary!) hint for the next challenge.&lt;/p&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;
&lt;p&gt;If you can read this, well done! This sort of cipher is called a polyalphabetic cipher. For examples like this one with a keyword of length two, it&amp;#39;s possible to solve it by hand just trying possibilities. However, with a longer keyword this gets very hard. There are more sophisticated techniques, one of which is called Kasiski examination. This involves looking for repeated letters in the
ciphertext. It&amp;#39;s likely that the number of letters inbetween these repeats is a multiple of the keyword length. Look at wikipedia for more information! By the way, if you didn&amp;#39;t work it out, the previous cipher was a keyword substitution cipher with keyword keyword. So far, we&amp;#39;ve only considered substitution ciphers, but there are other alternatives. We could for example reorder the
ciphertext.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;vigenere keyword: pi&lt;/p&gt;

&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>5</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>0</keystage3>
  <keystage4>0</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Semicircle</title>
  <description>Fourth challenge cipher</description>
  <spec_group>Applications
    <specifier>Codes and cryptography</specifier>
  </spec_group>
  <spec_group>Decision Mathematics and Combinatorics
    <specifier>Combinatorics</specifier>
  </spec_group>
  <spec_group>Decision Mathematics and Combinatorics
    <specifier>Algorithms</specifier>
  </spec_group>
</resource>