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.

A174620 a(n) = 2^A141468(n) mod prime(n), where A141468(n) is the n-th nonnegative nonprime.

Original entry on oeis.org

1, 2, 1, 1, 3, 5, 4, 11, 8, 27, 2, 36, 1, 42, 24, 13, 11, 19, 45, 5, 8, 50, 71, 2, 86, 78, 15, 74, 16, 112, 4, 68, 14, 106, 66, 32, 79, 26, 25, 18, 76, 6, 78, 150, 163, 63, 69, 98, 189, 17, 184, 40, 1, 125, 249, 187, 229, 69, 169, 81, 264, 172, 18, 209, 114, 277, 1, 128, 46, 21
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Nov 29 2010

Keywords

Examples

			a(14) = 12 because (2^A141468(14) mod prime(14)) = (2097152 mod 43) = 12.
		

Crossrefs

Main diagonal of A177416.

Programs

  • Mathematica
    MapIndexed[PowerMod[2, #, Prime[First[#2]]] &, Join[{0, 1}, Select[Range[100], CompositeQ]]] (* Paolo Xausa, Jul 01 2024 *)
  • PARI
    c=-1; forprime(p=1,999,while(isprime(c++),);print1(lift( Mod(2,p)^c )", ")) \\ M. F. Hasler, Nov 29 2010