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.

A141455 Irregular triangle showing the set of all possible values of primes modulo n in row n.

Original entry on oeis.org

0, 1, 0, 1, 2, 1, 2, 3, 0, 1, 2, 3, 4, 1, 2, 3, 5, 0, 1, 2, 3, 4, 5, 6, 1, 2, 3, 5, 7, 1, 2, 3, 4, 5, 7, 8, 1, 2, 3, 5, 7, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 5, 7, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 5, 7, 9, 11, 13, 1, 2, 3, 4, 5, 7, 8, 11, 13, 14, 1, 2, 3, 5, 7, 9, 11, 13, 15
Offset: 2

Views

Author

Roger L. Bagula and Gary W. Adamson, Aug 07 2008

Keywords

Examples

			Table begins:0, 1;
0, 1, 2;
1, 2, 3;
0, 1, 2, 3, 4;
1, 2, 3, 5;
0, 1, 2, 3, 4, 5, 6;
1, 2, 3, 5, 7;
1, 2, 3, 4, 5, 7, 8;
1, 2, 3, 5, 7, 9;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;
1, 2, 3, 5, 7, 11;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12;
1, 2, 3, 5, 7, 9, 11, 13;
1, 2, 3, 4, 5, 7, 8, 11, 13, 14;
1, 2, 3, 5, 7, 9, 11, 13, 15;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16;
1, 2, 3, 5, 7, 11, 13, 17;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18;
1, 2, 3, 5, 7, 9, 11, 13, 17, 19;
		

Crossrefs

Cf. A057859 (row lengths), A039701 (row n=3), A039704 (row n=6), A027748, A038566.

Programs

  • Mathematica
    Table[Union[FactorInteger[n][[All, 1]] /. n -> 0, Select[Range[n - 1], CoprimeQ[n, #] &]], {n, 2, 15}] (* Michael De Vlieger, Apr 18 2022 *)

Formula

Row n = A027748(n) U A038566(n), writing n as 0 iff n is prime. - Michael De Vlieger, Apr 18 2022