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.

Showing 1-3 of 3 results.

A175131 a(n) = 2^(n-1) mod semiprime(n).

Original entry on oeis.org

1, 2, 4, 8, 2, 2, 1, 18, 6, 18, 1, 8, 1, 22, 4, 16, 23, 2, 14, 2, 52, 2, 49, 2, 10, 65, 64, 8, 44, 2, 64, 2, 42, 12, 62, 56, 31, 98, 81, 50, 74, 2, 1, 128, 96, 71, 60, 7, 81, 16, 94, 146, 1, 144, 108, 154, 133, 4, 46, 153, 67, 44, 88, 90, 198, 32, 14, 117
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Dec 02 2010

Keywords

Crossrefs

Programs

  • Mathematica
    Module[{nn=300,sems,len},sems=Select[Range[nn],PrimeOmega[#]==2&];len = Length[sems];PowerMod[2,#[[1]]-1,#[[2]]]&/@Thread[{Range[len],sems}]] (* Harvey P. Dale, May 19 2018 *)
  • PARI
    lista(nn) = {semip = select(n->bigomega(n) == 2, vector(nn, i, i)); for (i=1, #semip, print1(2^(i-1) % semip[i], ", "););} \\ Michel Marcus, Sep 11 2013

Extensions

More terms from Michel Marcus, Sep 11 2013

A177806 Triangle read by rows: T(n,k) = prime(k)^(n-1) mod prime(n), 1 <= k <= n.

Original entry on oeis.org

1, 2, 0, 4, 4, 0, 1, 6, 6, 0, 5, 4, 9, 3, 0, 6, 9, 5, 11, 7, 0, 13, 15, 2, 9, 8, 16, 0, 14, 2, 16, 7, 11, 10, 5, 0, 3, 6, 16, 12, 8, 2, 18, 9, 0, 19, 21, 4, 20, 2, 5, 17, 11, 7, 0, 1, 25, 5, 25, 5, 5, 25, 25, 1, 1, 0, 13, 28, 2, 12, 27, 15, 32, 20, 29, 23, 6, 0, 37, 40, 16, 31, 23, 4, 23, 31, 37, 25, 18, 16, 0
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Dec 12 2010

Keywords

Comments

First column is A175036.

Examples

			Triangle begins:
  1;
  2, 0;
  4, 4, 0;
  1, 6, 6, 0;
  5, 4, 9, 3, 0;
		

Crossrefs

Programs

  • Maple
    A177806 := proc(n,k) modp((ithprime(k))^(n-1), ithprime(n)) ; end proc:
    seq(seq(A177806(n,k),k=1..n),n=1..15) ;
  • Mathematica
    Table[PowerMod[Prime[Range[n]], n-1, Prime[n]], {n, 15}] (* Paolo Xausa, Jun 29 2024 *)

A175156 a(n) = 2^(n-1) mod composite(n).

Original entry on oeis.org

1, 2, 4, 8, 6, 8, 8, 8, 0, 8, 4, 11, 4, 8, 9, 8, 7, 4, 4, 0, 1, 32, 9, 32, 26, 2, 24, 8, 36, 32, 26, 32, 39, 42, 4, 20, 28, 7, 32, 8, 36, 32, 4, 2, 0, 57, 64, 60, 16, 2, 40, 60, 46, 48, 71, 50, 16, 8, 72, 32, 16, 32, 64, 8, 16, 32, 24, 35, 24
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Dec 02 2010

Keywords

Crossrefs

Programs

  • PARI
    lista(nn) = {compo = select(n->(! isprime(n) && (n != 1)), vector(nn, i, i)); for (i = 1, #compo, print1(2^(i-1) % compo[i], ", "););} \\ Michel Marcus, Sep 11 2013

Extensions

More terms from Michel Marcus, Sep 11 2013
Showing 1-3 of 3 results.