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.

A153661 Triangle read by rows: R(n,k) = 2^(composite(n)-composite(k)) mod composite(n), 1<=k<=n.

Original entry on oeis.org

1, 4, 1, 0, 4, 1, 5, 8, 2, 1, 4, 6, 4, 2, 1, 4, 4, 4, 8, 4, 1, 2, 4, 8, 4, 2, 4, 1, 8, 2, 8, 4, 2, 8, 2, 1, 0, 0, 0, 0, 0, 0, 4, 2, 1, 4, 10, 16, 8, 4, 10, 16, 8, 4, 1, 16, 4, 16, 8, 4, 16, 4, 12, 16, 4, 1, 11, 8, 2, 1, 11, 8, 2, 1, 11, 8, 2, 1, 14, 20, 16, 8, 4, 12, 14, 18, 20, 16, 4, 2, 1, 16, 16, 16, 8, 16, 16, 16, 8, 16, 16, 16, 8, 4, 1
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Dec 12 2010

Keywords

Examples

			Triangle begins:
1,
4, 1,
0, 4, 1,
5, 8, 2, 1,
4, 6, 4, 2, 1,
4, 4, 4, 8, 4, 1,
		

Crossrefs

Programs

  • Maple
    A153661 := proc(n,k) modp(2^(A002808(n)-A002808(k)),A002808(n)) ;end proc: # R. J. Mathar, Dec 15 2010
  • Mathematica
    Composite[m_] := FixedPoint[m + PrimePi[#] + 1 &, m + PrimePi[m] + 1]; a[n_, k_] := Mod[2^(Composite[n] - Composite[k]), Composite[n]]; Table[a[n, k], {n, 1, 15}, {k, 1, n}]; Flatten[%] (* G. C. Greubel, Aug 24 2016 *)

Extensions

Terms corrected by R. J. Mathar, Dec 15 2010