login
a(n) = floor(n*r +h), where r=sqrt(2), h=-1/4; complement of A184619.
2

%I #11 Sep 08 2022 08:45:55

%S 1,2,3,5,6,8,9,11,12,13,15,16,18,19,20,22,23,25,26,28,29,30,32,33,35,

%T 36,37,39,40,42,43,45,46,47,49,50,52,53,54,56,57,59,60,61,63,64,66,67,

%U 69,70,71,73,74,76,77,78,80,81,83,84,86,87,88,90,91,93,94,95,97,98,100,101,102,104,105,107,108

%N a(n) = floor(n*r +h), where r=sqrt(2), h=-1/4; complement of A184619.

%H G. C. Greubel, <a href="/A184624/b184624.txt">Table of n, a(n) for n = 1..10000</a>

%t r=2^(1/2); h=-1/4; s=r/(r-1);

%t Table[Floor[n*r+h],{n,1,120}] (* A184624 *)

%t Table[Floor[n*s+h-h*s],{n,1,120}] (* A184625 *)

%o (PARI) for(n=1, 100, print1(floor(n*sqrt(2) - 1/4), ", ")) \\ _G. C. Greubel_, Apr 20 2018

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

%Y Cf. A184618, A184625.

%K nonn

%O 1,2

%A _Clark Kimberling_, Jan 18 2011