OFFSET
1,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
Conjecture: a(n) = prime(n)*prime(n+2) - prime(n+1)*(prime(n) + prime(n+2) - prime(n+1) - 1), except for a(3) and a(8). - Ridouane Oudra, Oct 26 2021
MATHEMATICA
Table[Mod[Prime[n]Prime[n+2], Prime[n+1]], {n, 1, 50}] (* G. C. Greubel, Feb 28 2018 *)
PROG
(PARI) a(n) = (prime(n)*prime(n+2)) % prime(n+1); \\ Michel Marcus, Sep 30 2013
(Magma) [NthPrime(n)*NthPrime(n+2) mod NthPrime(n+1): n in [1..50]]; // G. C. Greubel, Feb 28 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited by Reinhard Zumkeller, Jul 22 2002
STATUS
approved