Invisible Palming

This activity from the Computer Science for Fun (CS4FN) team at QMUL is an introduction to algorithms suitable for those in upper primary school. A ‘self-working’ magic trick is shown – this is a trick that works every time, as long as the process is followed exactly. No understanding of the trick is needed by the ‘magician’ – this is similar to how a machine can ‘solve’ problems using an algorithm with no understanding of what it is doing.

After explaining how to do the trick, this teacher guide explains the mathematical rules which make it work and draw parallels to writing computer programs.

Extension activities are provided, including writing down the algorithm and the challenges of making mental models.

Show health and safety information

Please be aware that resources have been published on the website in the form that they were originally supplied. This means that procedures reflect general practice and standards applicable at the time resources were produced and cannot be assumed to be acceptable today. Website users are fully responsible for ensuring that any activity, including practical work, which they carry out is in accordance with current regulations related to health and safety and that an appropriate risk assessment has been carried out.


Published by


Share this resource