OFFSET
1,2
COMMENTS
When e=3, the numbers binomial(2n, n) - 2 mod n^e are 0 whenever n is a prime greater than 3 (Wolstenholme's theorem; see A246130 for introductory comments). No composite number n for which a(n)=0 was found up to n=431500 (conjecture: there are none, and a(n)=0 for n>3 is a deterministic primality test).
LINKS
Stanislav Sykora, Table of n, a(n) for n = 1..10000
Wikipedia, Wolstenholme's theorem
FORMULA
For any prime p>3, a(p)=0.
EXAMPLE
a(7)= (binomial(14,7)-2) mod 7^3 = (3432-2) mod 343 = 10*343 mod 343 = 0.
MAPLE
seq(binomial(2*n, n)-2 mod n^3, n=1..100); # Robert Israel, Aug 17 2014
MATHEMATICA
Table[Mod[Binomial[2 n, n] - 2, n^3], {n, 60}] (* Wesley Ivan Hurt, May 25 2024 *)
PROG
(PARI) a(n) = (binomial(2*n, n)-2)%n^3
CROSSREFS
KEYWORD
nonn
AUTHOR
Stanislav Sykora, Aug 16 2014
STATUS
approved