<SCRIPT LANGUAGE="JavaScript">
<!--
//Copyright, 1997, by Angelo Mingarelli.
Num = window.prompt ("Please enter a number of 18 digits or less"," ");
document.write ("The first term of the sequence is the number itself: <b>" +Num+ "</b><br>");
while ((Num != 0) && (Num != 1)) {
	if ((Num % 2)==0) Num/=2;
		else {Num*=3; Num++;}
		document.write ("The next term is: " +Num+ "<br>");
		}
document.write ("As you can see this sequence always seems to terminate at 1 but nobody on this planet knows why!");
//-->
</SCRIPT>

