OFFSET
1,4
COMMENTS
For p prime, a(p)=1. For n in A058008, a(n)=0.
For n the square of a prime p>=3 or the cube of a prime p>=5, a(n)=1. - Franz Vrabec, Mar 26 2008
For n in A228562, a(n)=1. - Felix Fröhlich, Oct 17 2015
LINKS
Felix Fröhlich, Table of n, a(n) for n = 1..10000
R. J. McIntosh, On the converse of Wolstenholme's theorem, Acta Arithmetica 71 (4): 381-389, (1995).
EXAMPLE
a(11) = 352716 mod 11 = 1.
MAPLE
MATHEMATICA
Table[Mod[Binomial[2n-1, n-1], n], {n, 90}] (* Harvey P. Dale, Dec 12 2011 *)
PROG
(PARI) a(n) = lift(Mod(binomial(2*n-1, n-1), n)) \\ Felix Fröhlich, Oct 17 2015
(Magma) [Binomial(2*n-1, n-1) mod n : n in [1..100]]; // Wesley Ivan Hurt, Oct 17 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Oct 29 2004
STATUS
approved