%I #9 Jan 28 2014 03:47:46
%S 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,
%T 14,18,57,55,35,39,37,17,21,19,60,58,56,42,40,38,24,22,20,243,61,59,
%U 63,43,41,45,25,23,81,246,244,62,66,64,44,48,46,26,84,82,249,247,245
%N 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), ...
%H A. Karttunen, <a href="/A163330/b163330.txt">Table of n, a(n) for n = 0..3320</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F a(n) = 3*A037314(A025581(n)) + A037314(A002262(n))
%o (Scheme:) (define (A163330 n) (+ (A037314 (A002262 n)) (* 3 (A037314 (A025581 n)))))
%Y Inverse: A163331. a(n) = A163327(A163328(n)). Transpose: A163328. Cf. A007089, A163327, A163332, A163334.
%K nonn,tabl,base,look
%O 0,2
%A _Antti Karttunen_, Jul 29 2009
|