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!)
A280317 Ordinate of points (x,y) of the square lattice such that x >= 0 and 0 <= y <= x, and ranked in order of increasing distance from the origin. Equidistant points are ranked in order of increasing ordinate. 4

%I #13 Jul 20 2017 08:33:22

%S 0,0,1,0,1,2,0,1,2,0,1,3,2,0,3,1,2,4,3,0,1,2,4,3,0,1,5,4,2,3,5,0,1,4,

%T 2,6,3,5,4,0,1,2,6,5,3,4,7,0,6,1,2,5,3,7,4,6,0,1,2,5,8,3,7,6,4,0,1,8,

%U 5,2,7,3,6,4,9,8,0,5,1,7,2,3,6,9,4,8,7,5,0,1,2,10,9,3,6,8,4,7,5,10

%N Ordinate of points (x,y) of the square lattice such that x >= 0 and 0 <= y <= x, and ranked in order of increasing distance from the origin. Equidistant points are ranked in order of increasing ordinate.

%e a(12) = 3 since the twelfth point in distance from the origin is (3,3) at a distance of 3*sqrt(2) = 4.242640... whereas the eleventh is (4,1) at a distance of sqrt(17) = 4.12310... and the thirteenth is (4,2) at a distance of 2*sqrt(5) = 4.472113... .

%e The fourteenth and fifteenth points are respectively (5,0) and (4,3) and have the same distance 5 to the origin, but (5,0) has a smaller ordinate than (4,3), so a(14) = 0 and a(15) = 3.

%t xmax = 20; (* Maximum explorative abscissa *)

%t (* t are points in the triangle of vertices (0, 0), (0, max) and (xmax, xmax) *)

%t t = Flatten[Table[{x, y}, {x, 0, xmax}, {y, 0, x}], 1];

%t nmax = Floor[xmax^2/4] (* Safe limit for correctly sorted sequence *)

%t Transpose[SortBy[t, {#[[1]]^2 + #[[2]]^2 &, #[[2]] &}]][[2]][[1 ;;

%t nmax]]

%Y Cf. A280079.

%K nonn

%O 1,6

%A _Robert G. Wilson v_ and _Andres Cicuttin_, Dec 31 2016

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 25 08:31 EDT 2024. Contains 375422 sequences. (Running on oeis4.)