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”).

A165464
Squared distance between n's location in A163334 array and A163357 array.
3
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, 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, 4, 4, 2, 10, 16, 26, 20, 10, 2, 4, 10, 18, 32, 32, 50, 52, 52, 34, 40, 58, 80, 80, 106, 146
OFFSET
0,3
COMMENTS
Equivalently, squared distance between n's location in A163336 array and A163359 array. See example at A166041.
LINKS
FORMULA
a(n) = A000290(abs(A163529(n)-A059252(n))) + A000290(abs(A163528(n)-A059253(n))).
PROG
(MIT Scheme:) (define (A165464 n) (+ (A000290 (abs (- (A163529 n) (A059252 n)))) (A000290 (abs (- (A163528 n) (A059253 n))))))
CROSSREFS
Positions of zeros: A165465. See also A165466, A163897, A163900.
Sequence in context: A181399 A349207 A253581 * A308658 A158137 A336409
KEYWORD
nonn
AUTHOR
Antti Karttunen, Oct 06 2009
STATUS
approved