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-1 of 1 results.

A167623 a(n) = n^3 mod (n-th prime squared).

Original entry on oeis.org

1, 8, 2, 15, 4, 47, 54, 151, 200, 159, 370, 359, 516, 895, 1166, 1287, 1432, 2111, 2370, 2959, 3932, 4407, 5278, 5903, 6216, 7375, 9074, 10503, 627, 1462, 13662, 15607, 17168, 662, 20674, 1054, 1355, 1734, 3541, 4142, 4839, 8566, 6545, 10686, 13507
Offset: 1

Views

Author

Zak Seidov, Nov 07 2009

Keywords

Crossrefs

Programs

  • Mathematica
    (*1*) Table[PowerMod[n,3,Prime[n]^2],{n,100}]
    (*2*) PowerMod[ #,3,Prime[ # ]^2]&/@Range[100]
  • PARI
    a(n) = lift(Mod(n, prime(n)^2)^3); \\ Michel Marcus, Jan 28 2025
  • Python
    from sympy import sieve
    def A167623(n): return pow(n, 3, sieve[n]**2) # Karl-Heinz Hofmann, Jan 28 2025
    
Showing 1-1 of 1 results.