Mathematical Experiment 6

Simulate the game ``Tower of Hanoi''.

Draw a Fibonacci tree.

Draw the Snowflake Curve.

Draw the W Curve.

Draw the Sierpinski Curve.

Write a subprogram that decomposes a permutation of 1,2,...,n into
a product of disjoint cyclic permutations. Generate 100 random permutations
of 1,2,...,18. Find the average length of thier cycles. Find also the number
of cycles empirically.