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.

A106727 Triangle T(n,k) = (f(n+1)*f(k+1) mod 10), where f(j) = 10 - (prime(j+3) mod 10), read by rows.

Original entry on oeis.org

9, 7, 1, 1, 3, 9, 9, 7, 1, 9, 3, 9, 7, 3, 1, 1, 3, 9, 1, 7, 9, 3, 9, 7, 3, 1, 7, 1, 7, 1, 3, 7, 9, 3, 9, 1, 9, 7, 1, 9, 3, 1, 3, 7, 9, 7, 1, 3, 7, 9, 3, 9, 1, 7, 1, 1, 3, 9, 1, 7, 9, 7, 3, 1, 3, 9, 9, 7, 1, 9, 3, 1, 3, 7, 9, 7, 1, 9, 1, 3, 9, 1, 7, 9, 7, 3, 1, 3, 9, 1, 9
Offset: 0

Views

Author

Roger L. Bagula, May 14 2005

Keywords

Examples

			Triangle begins:
  9;
  7, 1;
  1, 3, 9;
  9, 7, 1, 9;
  3, 9, 7, 3, 1;
  1, 3, 9, 1, 7, 9;
  3, 9, 7, 3, 1, 7, 1;
		

Crossrefs

Programs

  • Mathematica
    f[n_]:= 10 - Mod[Prime[n+3], 10];
    Table[Mod[f[n+1]*f[k+1], 10], {n,0,15}, {k,0,n}]//Flatten
  • Sage
    def f(n): return 10 - (nth_prime(n+3)%10)
    def A106727(n,k): return (f(n+1)*f(k+1))%10
    flatten([[A106727(n,k) for k in (0..n)] for n in (0..15)]) # G. C. Greubel, Sep 10 2021

Formula

T(n, k) = (f(n+1)*f(k+1) mod 10) where f(j) = 10 - (prime(j+3) mod 10).