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.

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

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 2, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 2, 1, 1, 1, 1, 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1

Views

Author

Clark Kimberling, Aug 21 2011

Keywords

Comments

See A194285. Which rows are constant?

Examples

			First ten rows:
1
1..1
1..1..1
1..1..1..1
1..1..1..1..1
1..1..1..1..1..1
1..1..1..1..2..1..0
1..1..1..1..1..1..1..1
1..0..2..0..1..2..1..1..1
1..1..1..1..1..1..1..1..1..1
		

Crossrefs

Cf. A194293.

Programs

  • Mathematica
    r = GoldenRatio;
    f[n_, k_, i_] := If[(k - 1)/n <= FractionalPart[i*r] < k/n, 1, 0]
    g[n_, k_] := Sum[f[n, k, i], {i, 1, n}]
    TableForm[Table[g[n, k], {n, 1, 14}, {k, 1, n}]]
    Flatten[%]    (* A194293 *)