login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
OFFSET
0,2
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 * A370394 A021320 A193864
KEYWORD
nonn,tabl,base,look
AUTHOR
Antti Karttunen, Jul 29 2009
STATUS
approved