A037031 Number of combinations of n objects taken pi(n) at a time.
1, 1, 2, 3, 6, 10, 20, 35, 70, 126, 210, 462, 792, 1716, 3003, 5005, 8008, 19448, 31824, 75582, 125970, 203490, 319770, 817190, 1307504, 2042975, 3124550, 4686825, 6906900, 20030010, 30045015, 84672315, 129024480, 193536720, 286097760, 417225900, 600805296
Offset: 0
Keywords
Examples
C(16,6) = 8008.
Links
- Alois P. Heinz, Table of n, a(n) for n = 0..2000 (terms n = 1..1000 from Vincenzo Librandi)
Programs
-
Maple
with(numtheory); A037031:=n->binomial(n, pi(n)); seq(A037031(k), k=0..100); # Wesley Ivan Hurt, Oct 19 2013
-
Mathematica
Table[Binomial[n,PrimePi[n]],{n,40}] (* Harvey P. Dale, Mar 22 2012 *)
-
Python
from math import comb from sympy import primepi def A037031(n): return comb(n,primepi(n)) # Chai Wah Wu, Oct 14 2022
Formula
a(n) = C(n,pi(n)).
Extensions
a(0)=1 prepended by Alois P. Heinz, Oct 11 2022
Comments