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.

A174793 Triangle read by rows: R(n,k) = n mod 2^Omega(k), where Omega( ) is number of prime divisors counted with multiplicity and 1 <= k <= n.

Original entry on oeis.org

0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 2, 0, 2, 0, 1, 1, 3, 1, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 2, 0, 2, 0, 2, 2, 2, 0, 1, 1, 3, 1, 3, 1, 3, 3, 3, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 5, 1, 0, 0, 0, 2, 0, 2, 0, 6, 2, 2, 0, 6, 0, 2
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Nov 30 2010

Keywords

Examples

			Triangle begins
0;
0, 0;
0, 1, 1;
0, 0, 0, 0;
0, 1, 1, 1, 1;
0, 0, 0, 2, 0, 2;
		

Crossrefs

Programs

  • Mathematica
    Omega[n_] := If[n<2, 0, Plus@@Transpose[FactorInteger[n]][[2]]]; Flatten[Table[Mod[n, 2^Omega[k]], {n, 15}, {k, n}]]