|
Search: id:A082404
|
|
|
| A082404 |
|
Triangle in which n-th row gives trajectory of n under the map x -> x/2 if x is even, x -> x-1 if x is odd, stopping when we reach 1. |
|
+0 2
|
|
| 1, 2, 1, 3, 2, 1, 4, 2, 1, 5, 4, 2, 1, 6, 3, 2, 1, 7, 6, 3, 2, 1, 8, 4, 2, 1, 9, 8, 4, 2, 1
(list; graph; listen)
|
|
|
OFFSET
|
2,2
|
|
|
COMMENT
|
If you write down 0 when divide by 2, 1 when subtract 1, the trajectory gives the binary expansion of n.
|
|
EXAMPLE
|
1; 2,1; 3,2,1; 4,2,1; 5,4,2,1; 6,3,2,1; ...
|
|
CROSSREFS
|
A better version of A082399.
Sequence in context: A083368 A112379 A073932 this_sequence A120885 A057058 A088643
Adjacent sequences: A082401 A082402 A082403 this_sequence A082405 A082406 A082407
|
|
KEYWORD
|
easy,nonn,tabf
|
|
AUTHOR
|
Cino Hilliard (hillcino368(AT)gmail.com), Apr 14 2003
|
|
|
Search completed in 0.002 seconds
|