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

%I #10 Feb 15 2021 02:19:05

%S 6,8,14,16,22,24,30,32,38,40,46,48,54,56,62,70,78,86,94,102,110,118,

%T 314,322,330,338,346,354,362,370,376,378,384,386,392,394,400,402,408,

%U 410,416,418,424,426,432,434,438,442,446,450,454,458,462,466,470

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

%C Every term is even; see A194368.

%t r = Sqrt[15]; 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]] (* A194398 *)

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

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

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

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

%Y Cf. A010472, A194368, A194398, A194400.

%K nonn

%O 1,1

%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 23 20:33 EDT 2024. Contains 371916 sequences. (Running on oeis4.)