%I #12 Aug 30 2020 04:22:41
%S 1,1,0,3,3,0,1,1,1,1,1,2,3,3,2,1,1,1,1,1,0,3,3,0,1,1,0,3,3,0,1,1,0,3,
%T 3,3,3,3,2,1,1,2,3,3,3,3,3,0,1,1,0,3,3,0,1,1,0,3,3,0,1,1,1,1,1,2,3,3,
%U 2,1,1,1,1,1,0,3,3,0,1,1,1,1,1,2,3,3,2,1,1,1,1,1,0,3,3,0,1,1,1,1,1,2
%N The absolute direction (0=east, 1=south, 2=west, 3=north) of the Peano curve A163336 at point n.
%C Taking every ninth term gives the same sequence: (and similarly for all higher powers of 9 as well): a(n) = a(9*n).
%H Antti Karttunen, <a href="/A163535/b163535.txt">Table of n, a(n) for n = 1..6561</a>
%F a(n) = A010873(A163532(n)+A163533(n)+abs(A163532(n))+3).
%F a(n) = A004442(A163534(n)).
%o (Scheme:) (define (A163535 n) (modulo (+ 3 (A163532 n) (A163533 n) (abs (A163532 n))) 4))
%Y Cf. A163534 (transposed), A163537 (turn).
%K nonn
%O 1,4
%A _Antti Karttunen_, Aug 01 2009
%E Name corrected by _Kevin Ryde_, Aug 29 2020