login
Squared distance between n's location in A163334 array and A163357 array.
3

%I #3 Mar 31 2012 13:21:19

%S 0,0,2,4,2,4,2,0,0,2,2,4,4,4,2,0,0,2,2,4,4,2,0,0,0,0,2,4,4,2,8,10,16,

%T 16,4,2,2,10,16,10,8,8,20,20,20,18,18,32,18,10,4,2,4,10,8,2,2,10,10,4,

%U 4,4,2,10,16,26,20,10,2,4,10,18,32,32,50,52,52,34,40,58,80,80,106,146

%N Squared distance between n's location in A163334 array and A163357 array.

%C Equivalently, squared distance between n's location in A163336 array and A163359 array. See example at A166041.

%H A. Karttunen, <a href="/A165464/b165464.txt">Table of n, a(n) for n = 0..65535</a>

%F a(n) = A000290(abs(A163529(n)-A059252(n))) + A000290(abs(A163528(n)-A059253(n))).

%o (MIT Scheme:) (define (A165464 n) (+ (A000290 (abs (- (A163529 n) (A059252 n)))) (A000290 (abs (- (A163528 n) (A059253 n))))))

%Y Positions of zeros: A165465. See also A165466, A163897, A163900.

%K nonn

%O 0,3

%A _Antti Karttunen_, Oct 06 2009