You will design and implement a program that will
check whether some numbers, stored in a le, represent a particular coding of a frieze, and
{ either display the period of the pattern of the frieze and the transformations that keep it
invariant, based on a result that classi es friezes into 7 groups of symmetries,
{ or output some Latex code in a le, from which a pictorial representation of the frieze can be
produced.
The representation of a frieze is based on a coding with numbers in the range XXXXXXXXXX, each such number
n being associated with a particular point p such that
if the rightmost digit of the representation of n in base 2 is equal to 1 then p is to be connected to
its northern neighbour:
if the second rightmost digit of the representation of n in base 2 is equal to 1 then p is to be
connected to its north-eastern neighbour:
if the third rightmost digit of the representation of n in base 2 is equal to 1 then p is to be connected
to its eastern neighbour:
if the fourth rightmost digit of the representation of n in base 2 is equal to 1 then p is to be
connected to its south-eastern neighbour:
1