Syracuse Sequence
Consider the Syracuse
Sequence which we encountered in Python class.
This time we want you to implement that with JavaScript.
- Design an HTML form to allow users to input a positive integer N.
- Generate the Syracuse Sequence of N.
- If N is not a positive integer, erase the result.