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

%I #13 Feb 15 2021 02:19:35

%S 1,4,5,6,7,8,10,11,13,16,17,18,19,20,22,23,25,28,29,30,31,32,34,35,37,

%T 40,46,47,49,52,58,59,61,64,76,88,100,103,104,105,106,107,109,110,112,

%U 115,116,117,118,119,121,122,124,127,128,129,130,131,133,134

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

%C See A194368.

%H G. C. Greubel, <a href="/A194414/b194414.txt">Table of n, a(n) for n = 1..5000</a>

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

%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, 200}];

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

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

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

%t %/3 (* A194413 *)

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

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

%Y Cf. A002193, A194368, A194411, A194412, A194413.

%K nonn

%O 1,2

%A _Clark Kimberling_, Aug 24 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 18 13:29 EDT 2024. Contains 371780 sequences. (Running on oeis4.)