OFFSET
1,2
COMMENTS
Since prime(n) > 2*n for n > 4, the only occurrences of 0 are at n = 3 and 4. Are there any occurrences of 1 after n = 1? - Robert Israel, Sep 02 2014
a(n) = 1 for n = 1, 1161, 15792. - Jens Kruse Andersen, Sep 02 2014
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..10000
MAPLE
seq(binomial(2*n, n)/(n+1) mod ithprime(n), n=1..100); # Robert Israel, Sep 02 2014
MATHEMATICA
Table[Mod[CatalanNumber[n], Prime[n]], {n, 65}] (* Alonso del Arte, Sep 02 2014 *)
PROG
(Magma) [Catalan(n) mod NthPrime(n): n in [1..70]];
(Python)
from sympy import prime
from gmpy2 import divexact, t_mod
A246714, c = [1], 1
for n in range(2, 10**3):
....c = divexact(c*(4*n-2), (n+1))
....A246714.append(t_mod(c, prime(n))) # Chai Wah Wu, Sep 04 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Vincenzo Librandi, Sep 02 2014
STATUS
approved