cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A194383 a(n) = (1/2) * A194382(n).

This page as a plain text file.
%I A194383 #9 Jun 28 2017 19:35:28
%S A194383 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 A194383 73,75,76,78,79,81,82,84,85,86,88,89,91,92,94,95,97,98,100,101,102,
%U A194383 104,105,107,108,110,111,113,114,116,117,119,122,125,128,131,134
%N A194383 a(n) = (1/2) * A194382(n).
%C A194383 See A194368.
%t A194383 r = Sqrt[8]; c = 1/2;
%t A194383 x[n_] := Sum[FractionalPart[k*r], {k, 1, n}]
%t A194383 y[n_] := Sum[FractionalPart[c + k*r], {k, 1, n}]
%t A194383 t1 = Table[If[y[n] < x[n], 1, 0], {n, 1, 100}];
%t A194383 Flatten[Position[t1, 1]]   (* A194381 *)
%t A194383 t2 = Table[If[y[n] == x[n], 1, 0], {n, 1, 300}];
%t A194383 Flatten[Position[t2, 1]]   (* A194382 *)
%t A194383 %/2  (* A194383 *)
%t A194383 t3 = Table[If[y[n] > x[n], 1, 0], {n, 1, 600}];
%t A194383 Flatten[Position[t3, 1]]   (* A194384 *)
%Y A194383 Cf. A194368, A194382.
%K A194383 nonn
%O A194383 1,1
%A A194383 _Clark Kimberling_, Aug 23 2011