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!)
A194383 a(n) = (1/2) * A194382(n). 5

%I #9 Jun 28 2017 19:35:28

%S 2,3,5,6,8,9,11,12,14,15,17,20,23,26,29,32,52,55,58,61,64,67,69,70,72,

%T 73,75,76,78,79,81,82,84,85,86,88,89,91,92,94,95,97,98,100,101,102,

%U 104,105,107,108,110,111,113,114,116,117,119,122,125,128,131,134

%N a(n) = (1/2) * A194382(n).

%C See A194368.

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

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

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

%t %/2 (* A194383 *)

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

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

%Y Cf. A194368, A194382.

%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 19 14:04 EDT 2024. Contains 371792 sequences. (Running on oeis4.)