OFFSET
2,2
COMMENTS
The 3x-1 problem terminates at 4,2,1 or 20,10,5 or 68,34,17. The x-1 problem terminates at 4,2,1 or 3,2,1.
EXAMPLE
5->14->7->20->10->5 so 5th row is 14,7,20,10,5.
PROG
(PARI) x3nm1(n, p) = { print1(1" "); for(x=1, n, p1 = x; while(p1>1, if(p1%2==0, p1/=2, p1 = p1*p-1; ); print1(p1" "); if(p1 == 5 || p1 == 17, break); ) ) }
CROSSREFS
KEYWORD
easy,nonn,tabf
AUTHOR
Cino Hilliard, Mar 27 2003
STATUS
approved