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!)
A194372 Numbers m such that Sum_{k=1..m} (<1/2 + k*r> - <k*r>) = 0, where r=sqrt(3) and < > denotes fractional part. 4

%I #13 Feb 15 2021 21:23:57

%S 2,4,6,8,10,12,14,18,22,26,28,30,32,34,36,38,40,42,46,50,54,56,58,60,

%T 62,64,66,68,70,74,78,82,84,86,88,90,92,94,96,98,102,106,110,112,114,

%U 116,118,120,122,124,126,130,134,138,140,142,144,146,148,150,152

%N Numbers m such that Sum_{k=1..m} (<1/2 + k*r> - <k*r>) = 0, where r=sqrt(3) and < > denotes fractional part.

%C See A194368.

%H G. C. Greubel, <a href="/A194372/b194372.txt">Table of n, a(n) for n = 1..1000</a>

%t r = Sqrt[3]; c = 1/2;

%t x[n_] := Sum[FractionalPart[k*r], {k, 1, n}]

%t y[n_] := Sum[FractionalPart[c + k*r], {k, 1, n}]

%t t1 = Table[If[y[n] < x[n], 1, 0], {n, 1, 100}];

%t Flatten[Position[t1, 1]] (* A194371 *)

%t t2 = Table[If[y[n] == x[n], 1, 0], {n, 1, 800}];

%t Flatten[Position[t2, 1]] (* A194372 *)

%t t3 = Table[If[y[n] > x[n], 1, 0], {n, 1, 100}];

%t Flatten[Position[t3, 1]] (* A194373 *)

%Y Cf. A194368, A194371.

%K nonn

%O 1,1

%A _Clark Kimberling_, Aug 23 2011

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 April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)