Collatz Sequence Tracing

Collatz Sequence Tracing
Loading the math board and drawing, please wait…
2019-12-14 02:47
This example demonstrates the generation and visualization of the Collatz sequence. It involves core mathematical concepts such as sequences, natural numbers, and stochastic processes. Construction highlights include using GeoGebra commands/objects like Textfield, Sequence, Length, and PolyLine. Suitable for high school students and individuals interested in sequences and random processes.

GeoGebra Commands & Parameters

  1. Textfield(myNum) → InputBox1
  2. Sequence((k, theSeq(Length[theSeq] - k)), k, 0, Length[theSeq] - 1) → l1
  3. Length(theSeq) → a
  4. PolyLine(l1) → f
  5. PolyLine(l1) → g
  6. Sequence((k, theSeq(Length[theSeq] - k)), k, 0, Length[theSeq] - 1) → l2

AI Drawing Prompt Reference

Visualize the Collatz sequence by inputting a natural number, generating the sequence based on it, and displaying the changes with a polyline chart. Start drawing the polyline from the last number of the sequence in reverse order, and label the input number and the length of the sequence.
The prompt above was compiled from the original drawing commands and is for reference only.