OFFSET
1,2
COMMENTS
See A014847 for the analog for 2n.
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
M. Alekseyev, PARI/GP Scripts for Miscellaneous Math Problems, sect. III: Binomial coefficients modulo integers, binomod.gp (v.1.4, 11/2015).
MATHEMATICA
Select[Range@ 600, Mod[Binomial[3 #, #], #] == 0 &] (* Michael De Vlieger, Nov 12 2015 *)
PROG
(PARI) for(n=1, 999, binomod(3*n, n, n)==0&&print1(n", ")) \\ Using binomod.gp by M. Alekseyev, cf. links.
(Python)
from __future__ import division
A260640_list, b = [], 3
for n in range(1, 10**3):
if not b % n:
A260640_list.append(n)
b = b*3*(3*n+2)*(3*n+1)//((2*n+2)*(2*n+1)) # Chai Wah Wu, Jan 27 2016
(Magma) [n: n in [1..600] |Binomial(3*n, n) mod n eq 0]; // Vincenzo Librandi, Jan 29 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Nov 11 2015
STATUS
approved