OFFSET
2,2
COMMENTS
If you write down 0 when divide by 2, 1 when subtract 1, the trajectory gives the binary expansion of n.
EXAMPLE
Triangle begins:
1;
2,1;
2,1;
4,2,1;
3,2,1;
6,3,2,1;
...
7 -> 6 -> 3 -> 2 -> 1, so the 7th row is 6,3,2,1.
PROG
(PARI) xnm1(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" ") ) ) }
CROSSREFS
KEYWORD
easy,nonn,tabf
AUTHOR
Cino Hilliard, Mar 27 2003
EXTENSIONS
Edited by N. J. A. Sloane, Dec 06 2008 at the suggestion of R. J. Mathar
STATUS
approved