login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Rank of (5-r)*n when all the numbers (5-r)*j and (5+r)*k, where r = sqrt(2), j>=1, k>=1, are jointly ranked.
3

%I #10 Sep 08 2022 08:46:19

%S 1,3,4,6,7,9,10,12,14,15,17,18,20,21,23,24,26,28,29,31,32,34,35,37,38,

%T 40,42,43,45,46,48,49,51,53,54,56,57,59,60,62,63,65,67,68,70,71,73,74,

%U 76,77,79,81,82,84,85,87,88,90,91,93,95,96,98,99,101,102

%N Rank of (5-r)*n when all the numbers (5-r)*j and (5+r)*k, where r = sqrt(2), j>=1, k>=1, are jointly ranked.

%H Clark Kimberling, <a href="/A292642/b292642.txt">Table of n, a(n) for n = 1..1000</a>

%t z = 120; r = 5 - Sqrt[2]; s = 5 + Sqrt[2];

%t Table[n + Floor[n*r/s], {n, 1, z}] (* A292642 *)

%t Table[n + Floor[n*s/r], {n, 1, z}] (* A292643 *)

%o (PARI) vector(100, n, n+floor(n*(5-sqrt(2))/(5+sqrt(2)))) \\ _G. C. Greubel_, Aug 20 2018

%o (Magma) [n+Floor(n*(5-Sqrt(2))/(5+Sqrt(2))): n in [1..100]]; // _G. C. Greubel_, Aug 20 2018

%Y Cf. A292643 (complement).

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, Sep 26 2017