src/algorithms/math/collatz_conjecture.js
function generateCollatzConjecture(number) {
  const collatzConjecture = [];

  do {
    number = calculateCollatzConjecture(number);
    collatzConjecture.push(number);
  } while (number !== 1);

  return collatzConjecture;
}
function generateCollatzConjecture(number) {
  const collatzConjecture = [];

  do {
    number = calculateCollatzConjecture(number);
    collatzConjecture.push(number);
  } while (number !== 1);

  return collatzConjecture;
}
function generateCollatzConjecture ( number ) { const collatzConjecture = [ ] ; do { number = calculateCollatzConjecture ( number ) ; collatzConjecture . push ( number ) ; } while ( number !== 1 ) ; return collatzConjecture ; }
Generate Collatz Conjecture

@param Number
@return Array
Generate Collatz Conjecture