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.

A194334 Triangular array: g(n,k)=number of fractional parts (i*r) in interval [(k-1)/n, k/n], for 1<=i<=2n, 1<=k<=n, r=2-tau, where tau=(1+sqrt(5))/2, the golden ratio.

This page as a plain text file.
%I A194334 #5 Mar 30 2012 18:57:43
%S A194334 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,1,1,2,3,2,2,2,2,2,2,2,2,2,2,
%T A194334 2,2,1,3,1,3,2,1,3,2,2,1,2,3,2,2,2,2,2,2,2,2,2,2,2,3,2,1,2,2,2,2,2,2,
%U A194334 2,2,3,2,1,2,2,3,2,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,3,1,3,2,2,2
%N A194334 Triangular array:  g(n,k)=number of fractional parts (i*r) in interval [(k-1)/n, k/n], for 1<=i<=2n, 1<=k<=n, r=2-tau, where tau=(1+sqrt(5))/2, the golden ratio.
%C A194334 See A194285.
%e A194334 First nine rows:
%e A194334 2
%e A194334 2..2
%e A194334 2..2..2
%e A194334 2..2..2..2
%e A194334 2..2..2..2..2
%e A194334 2..2..2..2..3..1
%e A194334 1..2..3..2..2..2..2
%e A194334 2..2..2..2..2..2..2..2
%e A194334 1..3..1..3..2..1..3..2..2
%t A194334 r = 2-GoldenRatio;
%t A194334 f[n_, k_, i_] := If[(k - 1)/n <= FractionalPart[i*r] < k/n, 1, 0]
%t A194334 g[n_, k_] := Sum[f[n, k, i], {i, 1, 2n}]
%t A194334 TableForm[Table[g[n, k], {n, 1, 14}, {k, 1, n}]]
%t A194334 Flatten[%]    (* A194334 *)
%Y A194334 Cf. A194285.
%K A194334 nonn,tabl
%O A194334 1,1
%A A194334 _Clark Kimberling_, Aug 22 2011