login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A293681 Let P be the sequence of distinct lattice points defined by the following rules: P(1) = (0,0), P(2) = (1,0), and for any i < j < k, P(k) does not lie on the vector (P(i), P(j)), and for any n > 2, P(n) is the closest lattice point to P(n-1) such that the angle of the vectors (P(n-2), P(n-1)) and (P(n-1), P(n)), say t, satisfies 0 < t < Pi, and in case of a tie, minimize the angle t; a(n) = Y-coordinate of P(n). 2

%I #9 Oct 16 2017 09:56:36

%S 0,0,1,1,0,-1,-1,0,1,2,2,1,-1,-2,-2,-1,1,2,3,3,2,1,-1,-2,-3,-3,-2,-1,

%T 2,3,4,4,3,1,0,-1,-3,-4,-4,-3,-2,0,4,5,5,4,2,-1,-2,-3,0,0,-1,-3,-4,-5,

%U -5,-4,-3,-1,-5,-6,-6,-5,-3,0,4,5,6,6,5,3,-1,-2,-3

%N Let P be the sequence of distinct lattice points defined by the following rules: P(1) = (0,0), P(2) = (1,0), and for any i < j < k, P(k) does not lie on the vector (P(i), P(j)), and for any n > 2, P(n) is the closest lattice point to P(n-1) such that the angle of the vectors (P(n-2), P(n-1)) and (P(n-1), P(n)), say t, satisfies 0 < t < Pi, and in case of a tie, minimize the angle t; a(n) = Y-coordinate of P(n).

%C See A293680 for the corresponding X-coordinates, and additional comments.

%H Rémy Sigrist, <a href="/A293681/b293681.txt">Table of n, a(n) for n = 1..10000</a>

%H Rémy Sigrist, <a href="/A293681/a293681.gp.txt">PARI program for A293681</a>

%o (PARI) See Links section.

%Y Cf. A293680.

%K sign,look

%O 1,10

%A _Rémy Sigrist_, Oct 14 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 20 05:12 EDT 2024. Contains 375310 sequences. (Running on oeis4.)