OFFSET
1,9
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For n=9, 0<=k<=n, n+k divides C(n,k) only when k=3 and k=5, so a(9)=2.
MAPLE
f:= proc(n)
nops(select(t -> binomial(n, t) mod (n+t) = 0, [$0..n]))
end proc:
map(f, [$1..100]); # Robert Israel, Feb 27 2024
MATHEMATICA
A051556[n_] := Count[Divisible[Binomial[n, Range[0, n]], Range[n, 2*n]], True];
Array[A051556, 100] (* Paolo Xausa, Feb 29 2024 *)
PROG
(PARI) a(n) = sum(k=0, n, (binomial(n, k) % (n+k)) == 0); \\ Michel Marcus, May 18 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved