#!/bin/bash
#
# Exercice 2
#
## Variables
suite=$1
##
echo $suite
while [ $suite -ne 1 ]; do
	if [ $(($suite % 2)) -eq 0 ]; then
		suite=$(($suite / 2))
	else
		suite=$(($suite * 3 + 1))
	fi
	echo $suite
done
