Mathematics
https://www.lancingcollege.co.uk/
enSTEM & Money - Mathematicians visit New York
https://www.lancingcollege.co.uk/news/stem-money-mathematicians-visit-new-york
<span class="field field--name-title field--type-string field--label-hidden">STEM & Money - Mathematicians visit New York</span>
<span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="https://www.lancingcollege.co.uk/user/14" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alex</span></span>
<span class="field field--name-created field--type-created field--label-hidden">Sat, 16/03/2019 - 11:36</span>
<div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p><span><span><span>During the February Half Term 27 Sixth Formers had the chance to enjoy sun and snow in New York, whilst experiencing a variety of real life Maths applications.</span></span></span></p>
<p><span><span><span>A busy and fun-filled itinerary allowed the students to cover all levels of the city, from the top of the Empire State Building, to a Statue of Liberty cruise on the Hudson River, to below the streets in the New York Transit Museum.</span></span></span></p>
<p><span><span><span>Several master classes took place at the Museum of Mathematics, which involved looking at unknotting numbers, graph theory and probability. A guided walking tour of Wall Street through the New York Stock Exchange included a thrilling 3-minute trading game to replicate the stresses of the trading floor. A highlight of the trip was the Liberty Science Centre, where we investigated aviation physics and enjoyed a planetarium showcase. At the Intrepid Sea, Air & Space Museum we had the chance to take a close look at the Lockheed A-12 airplane and a Space Shuttle.</span></span></span></p>
<p><span><span><span>Everyone enjoyed the snow that fell in the middle of the week on a walking tour of Brooklyn and across the beautiful Brooklyn Bridge, with scenic views from the Empire State Building, a stroll through Central Park, and watching the world go by in the hectic Times Square. </span></span></span></p>
<p><span><span><span>It was a memorable trip with fantastic sightseeing and the added bonus of observing Maths applied in the real world.</span></span></span></p>
<p><span><span><span>Kat Allan, Teacher of Mathematics</span></span></span></p></div>
<div class="field field--name-field-page-gallery-image field--type-image field--label-hidden field__items">
<div class="field__item"> <img src="https://www.lancingcollege.co.uk/sites/default/files/styles/770x470crop/public/page-galleries/2019-03/Maths-NY2019_gallery.jpg?itok=DAuRCwVi" width="770" height="470" alt="Lancing mathematicians in NY 2019" typeof="foaf:Image" class="image-style-_70x470crop" />
</div>
<div class="field__item"> <img src="https://www.lancingcollege.co.uk/sites/default/files/styles/770x470crop/public/page-galleries/2019-03/Maths-NY2019_gallery1.jpg?itok=TtR1R3gC" width="770" height="470" alt="Lancing mathematicians in NY 2019" typeof="foaf:Image" class="image-style-_70x470crop" />
</div>
<div class="field__item"> <img src="https://www.lancingcollege.co.uk/sites/default/files/styles/770x470crop/public/page-galleries/2019-03/Maths-NY2019_gallery2.jpg?itok=EgeOUNu0" width="770" height="470" alt="Lancing mathematicians in NY 2019" typeof="foaf:Image" class="image-style-_70x470crop" />
</div>
<div class="field__item"> <img src="https://www.lancingcollege.co.uk/sites/default/files/styles/770x470crop/public/page-galleries/2019-03/Maths-NY2019_gallery3.jpg?itok=eMOOC2vl" width="770" height="470" alt="Lancing mathematicians in NY 2019" typeof="foaf:Image" class="image-style-_70x470crop" />
</div>
</div>
Sat, 16 Mar 2019 11:36:24 +0000alex1122 at https://www.lancingcollege.co.ukThe Lancing Prime
https://www.lancingcollege.co.uk/news/lancing-prime
<span class="field field--name-title field--type-string field--label-hidden">The Lancing Prime</span>
<span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="https://www.lancingcollege.co.uk/user/14" typeof="schema:Person" property="schema:name" datatype="" xml:lang="">alex</span></span>
<span class="field field--name-created field--type-created field--label-hidden">Mon, 18/12/2017 - 14:43</span>
<div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Timothy C from the Lower Sixth has achieved an exceptional piece of work, where the Maths and programming required are well beyond A Level preparation. The project 'Lancing Prime' started when Mr Bullen, Head of Mathematics, <span><span>emailed Timothy a link to a blog post about the ‘Corpus Christie Prime’, created by a student at Cambridge, and suggested they worked together to create a similar <em>Lancing Prime</em>.</span></span></p>
<p>Within a couple of days, and without any support from the teaching staff, Timothy had created the image below:</p>
<p><img alt="Lancing Chapel Prime Number" data-entity-type="" data-entity-uuid="" src="https://www.lancingcollege.co.uk/sites/default/files/news/2017-18/Lancing%20Prime/Chapel%20prime.jpg" /></p>
<p>Timothy writes: </p>
<p>"The Corpus Christie Prime is 2688 digits long and constructed from pixel art; our prime is 8946 digits long and constructed from a photograph. With each digit, the size of the number is increased tenfold and with it the computational complexity, but the detail of the image is hugely improved. Yet as amazing as it is, the Lancing Prime is not the only prime which I have found, and with the software I have developed, it is as simple as running a program and waiting. </p>
<p>Before I explain how this was done, it is important to understand the significance of a number being prime. The definition of a prime is a number that cannot be divided wholly by any integer other than itself and 1. Any natural number can be expressed as a product of primes, but a prime can only be expressed as itself. Prime numbers are the building blocks of all numbers – they cannot be pulled apart into component parts because they are the components.</p>
<p>The definition sounds simple enough, but finding out if a number is prime is deceptively difficult. The naive approach is to attempt to divide by every integer from 2 to the prime, but for a prime with upwards of 5000 digits that algorithm would take longer than the age of the universe to complete. Instead, we must turn to computational number theory, and in particular the Miller-Rabin test, a probabilistic algorithm that tests if a number is prime to a high degree of accuracy - and fast.</p>
<p>Of course, testing if a given number is prime is only half the battle. How do we find numbers that look like images in the first place? Well, different digits need different numbers of pixels to draw, so some will appear darker than others. This means we have 10 different shades to work with when creating art in a number. So I wrote a small python script to convert any grayscale image into a ‘perfect number’ by analysing the pixels row by row and assigning each one to the closest match of the possible digits, in terms of the darkness of the pixel.</p>
<p>Once we have this number, we need to randomly change digits until the number is prime. At this point, we must take care to ensure the program is efficient. It would be easy to change numbers in terms of the way they are represented, as a human would, but this would require computationally intensive conversion operations – within the computer a number is stored in binary, not decimal. So instead we perform digit changes mathematically as follows, where n and d represent the new digit and the position of the digit to change, respectively:</p>
<p><em><span>f(x)=x+(n-⌊</span></em><em><span>x</span></em><em><span>10</span></em><em><span>d</span></em><em><span>mod10⌋)×</span></em><em><span>10</span></em><em><span>d</span></em><em><span>,{x,n,d∈</span></em><span>N<em>,</em><em>n</em><em>≤9,</em><em>d</em><em>≤</em></span><span>log</span><em><span>10</span></em><em><span>x}</span></em></p>
<p>The main program will change digits randomly using this function and feed each resulting number into the Rabin-Miller test, increasing the number of digits changed after every 100 numbers tested. In the case of the Lancing Prime, only 6 digits were changed, but for others it was over 100. When a number passes the Rabin-Miller test, it is formatted back into rows like the original image and tested further with more iterations of the Rabin-Miller test. Then we simply open this file in a word processor, set it to the desired font, and we have a prime number that looks like our original image.</p>
<p>That was a lot of maths and I think it’s easy for us to lose sight of why any of this matters. It’s difficult to disagree with the idea that the Lancing College Chapel is beautiful – but if in a few simple mathematical functions we have discovered that in the building blocks of numbers, in mathematics itself, we can find things as beautiful as anything we find around ourselves – then what does that say about the beauty of maths? The wonders of mathematics often remain hidden from those who don’t look, and what I have made is barely a fragment of these wonders, but I hope this endeavour has begun to express the beauty that a mathematician can see in maths."</p>
<p>Well done Timothy for this outstanding achievement!</p>
<p> </p>
<p> </p></div>
Mon, 18 Dec 2017 14:43:34 +0000alex597 at https://www.lancingcollege.co.uk