hotpo: hotpo: A package for calculating and investigating the...

Description hotpo functions

Description

The hotpo package provides functions for calculating and investigating the Collatz sequence, where each term is half the previous one (if previous term even) or three times the previous term plus one (if previous term odd). The sequence ends when it reaches 1 (at which point it would go into the infinite loop 4, 2, 1, 4, 2, 1,...).

hotpo functions

  1. hotpo1: calculate next term in sequence

  2. hotpo_seq: calculate whole sequence

  3. hotpo_len: length of sequence

  4. hotpo_hi: maximum term of sequence


nxskok/hotpo documentation built on May 24, 2019, 11:51 a.m.