100 - The 3n + 1 problem

For the actual description of the input and output files, read the HTML version of the problem. Thanks. The new limit for i and j is now 1 million!!!