login
Squared distance between n's location in A163334 array and A163359 array.
4

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

%S 0,2,2,2,2,10,10,2,0,0,2,10,20,10,10,18,32,32,50,74,100,100,72,50,32,

%T 50,50,34,20,20,16,16,16,10,4,4,2,4,8,8,8,10,20,18,20,20,26,50,50,40,

%U 20,20,20,20,32,32,34,40,58,74,100,74,74,80,80,80,52,52,50,34,34,32

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

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

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

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

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

%Y Positions of zeros: A165467. See also A166043, A165464, A163897, A163900.

%K nonn

%O 0,2

%A _Antti Karttunen_, Oct 06 2009