Mathematical Experiment 6


  1. Simulate the game ``Tower of Hanoi''.
  2. Draw a Fibonacci tree.
  3. Draw the Snowflake Curve.
  4. Draw the W Curve.
  5. Draw the Sierpinski Curve.
  6. 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.