proposed
approved
proposed
approved
editing
proposed
proposed
reviewed
editing
proposed
Related sequences type prime(n)^k mod prime(n-1) (k=1,2,3,4)
prime(n) mod prime(n-1) is given in A001223
prime(n)^2 mod prime(n-1) is given in A038702
prime(n)^3 mod prime(n-1) is given in A138672
prime(n)^4 mod prime(n-1) is given in A138673
prime(n)^5 mod prime(n-1) is given in A138674
prime(n)^6 mod prime(n-1) is given in A138675
prime(n)^7 mod prime(n-1) is given in A138676
prime(n)^8 mod prime(n-1) is given in A138677
prime(n)^9 mod prime(n-1) is given in A138678
prime(n)^10 mod prime(n-1) is given in A138679
prime(n)^11 mod prime(n-1) is given in A138680
prime(n)^12 mod prime(n-1) is given in A138681
proposed
editing
editing
proposed
(PARI) a(n) = my(p=prime(n)); lift(Mod(p, precprime(p-1))); \\ Michel Marcus, Mar 17 2023
(Magma) [NthPrime(n)^7 mod NthPrime(n-1): n in [2..50]]; // _Bruno Berselli, _, May 23 2011
approved
editing
(MAGMAMagma) [NthPrime(n)^7 mod NthPrime(n-1): n in [2..50]]; // Bruno Berselli, May 23 2011