

A163328


Square array A, where entry A(y,x) has the ternary digits of x interleaved with the ternary digits of y, converted back to decimal. Listed by antidiagonals: A(0,0), A(0,1), A(1,0), A(0,2), A(1,1), A(2,0), ...


6



0, 1, 3, 2, 4, 6, 9, 5, 7, 27, 10, 12, 8, 28, 30, 11, 13, 15, 29, 31, 33, 18, 14, 16, 36, 32, 34, 54, 19, 21, 17, 37, 39, 35, 55, 57, 20, 22, 24, 38, 40, 42, 56, 58, 60, 81, 23, 25, 45, 41, 43, 63, 59, 61, 243, 82, 84, 26, 46, 48, 44, 64, 66, 62, 244, 246, 83, 85, 87, 47, 49
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

0,3


LINKS

A. Karttunen, Table of n, a(n) for n = 0..3320
Index entries for sequences that are permutations of the natural numbers


FORMULA

a(n) = A037314(A025581(n)) + 3*A037314(A002262(n))


PROG

(Scheme:) (define (A163328 n) (+ (A037314 (A025581 n)) (* 3 (A037314 (A002262 n)))))


CROSSREFS

Inverse: A163329. a(n) = A163327(A163330(n)). Transpose: A163330. A054238 is an analogous sequence for binary. Cf. A007089, A163327, A163332, A163334.
Sequence in context: A114651 A240539 A138245 * A164109 A116425 A019653
Adjacent sequences: A163325 A163326 A163327 * A163329 A163330 A163331


KEYWORD

nonn,tabl,base


AUTHOR

Antti Karttunen, Jul 29 2009


EXTENSIONS

Edited by Charles R Greathouse IV, Nov 01 2009


STATUS

approved



