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.

A194369 (A194368)/2.

This page as a plain text file.
%I A194369 #5 Mar 30 2012 18:57:43
%S A194369 1,2,6,7,8,12,13,14,35,36,37,41,42,43,47,48,49,70,71,72,76,77,78,82,
%T A194369 83,84,204,205,206,210,211,212,216,217,218,239,240,241,245,246,247,
%U A194369 251,252,253,274,275,276,280,281,282,286
%N A194369 (A194368)/2.
%C A194369 See A194368.
%t A194369 r = Sqrt[2]; c = 1/2;
%t A194369 x[n_] := Sum[FractionalPart[k*r], {k, 1, n}]
%t A194369 y[n_] := Sum[FractionalPart[c + k*r], {k, 1, n}]
%t A194369 t1 = Table[If[y[n] < x[n], 1, 0], {n, 1, 100}];
%t A194369 Flatten[Position[t1, 1]]  (* empty *)
%t A194369 t2 = Table[If[y[n] == x[n], 1, 0], {n, 1, 800}];
%t A194369 Flatten[Position[t2, 1]] (* A194368 *)
%t A194369 %/2 (* A194369 *)
%t A194369 t3 = Table[If[y[n] > x[n], 1, 0], {n, 1, 100}];
%t A194369 Flatten[Position[t3, 1]] (* A194370 *)
%Y A194369 Cf. A194368.
%K A194369 nonn
%O A194369 1,2
%A A194369 _Clark Kimberling_, Aug 23 2011