|
|
A352544
|
|
a(n) = n/2 if n is even, otherwise n + A004186(n), where A004186 = arrange digits in decreasing order.
|
|
6
|
|
|
0, 2, 1, 6, 2, 10, 3, 14, 4, 18, 5, 22, 6, 44, 7, 66, 8, 88, 9, 110, 10, 42, 11, 55, 12, 77, 13, 99, 14, 121, 15, 62, 16, 66, 17, 88, 18, 110, 19, 132, 20, 82, 21, 86, 22, 99, 23, 121, 24, 143, 25, 102, 26, 106, 27, 110, 28, 132, 29, 154, 30, 122, 31, 126, 32, 130, 33, 143, 34, 165, 35, 142, 36, 146, 37, 150, 38, 154, 39, 176, 40, 162, 41, 166, 42, 170, 43, 174, 44, 187, 45
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
A variant of the Collatz (3x+1) map A006370. See A352540 - A352543 for more about iterations of this map.
|
|
LINKS
|
|
|
PROG
|
(PARI) apply( {A352544(n)=if(n%2, n+A004186(n), n\2)}, [0..90]) \\ with A004186(n)=fromdigits(vecsort(digits(n), , 4))
|
|
CROSSREFS
|
Coincides with A064680 (half if even, double if odd) for n < 13.
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|