OFFSET
1,2
COMMENTS
Let u=(1+sqrt(2))/2 and v=sqrt(2). Jointly rank {ju} and {kv} as in the first comment at A182760; a(n) is the position of nu.
FORMULA
a(n) = floor(r*n), where r = (6 + sqrt(2))/4.
a(n) = 2*n - 1 - floor(n/7) for n < 41, but this fails for a(41) = 75 onwards. - M. F. Hasler, Jun 23 2016
MATHEMATICA
Table[Floor[(6 + Sqrt@ 2) n/4], {n, 70}] (* Michael De Vlieger, Jun 23 2016 *)
PROG
(PARI) A182765(n)=n*(6+sqrt(2))\4 \\ Requires sufficient realprecision (but the 64-bit default is enough up to n = 10^38). - M. F. Hasler, Jun 23 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Nov 29 2010
STATUS
approved