

A163330


Square array A, where entry A(y,x) has the ternary digits of y interleaved with the ternary digits of x, 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), ...


4



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



OFFSET

0,2


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) = 3*A037314(A025581(n)) + A037314(A002262(n))


PROG

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


CROSSREFS

Inverse: A163331. a(n) = A163327(A163328(n)). Transpose: A163328. Cf. A007089, A163327, A163332, A163334.
Sequence in context: A078585 A116551 A213783 * A021320 A193864 A066840
Adjacent sequences: A163327 A163328 A163329 * A163331 A163332 A163333


KEYWORD

nonn,tabl,base,look


AUTHOR

Antti Karttunen, Jul 29 2009


STATUS

approved



