Add a binary coefficient function
diff --git a/binary coefficients b/binary coefficients
new file mode 100644
index 0000000000..1d6f9fb410
--- /dev/null
+++ b/binary coefficients	
@@ -0,0 +1,21 @@
+def pascal_triangle( lineNumber ) :
+    list1 = list()
+    list1.append([1])
+    i=1
+    while(i<=lineNumber):
+        j=1
+        l=[]
+        l.append(1)
+        while(j<i):
+            
+            l.append(list1[i-1][j]+list1[i-1][j-1])
+            j=j+1
+        l.append(1)
+        list1.append(l)
+        i=i+1
+    return list1
+
+def binomial_coef(n,k):
+    pascalTriangle=pascal_triangle(n)
+    return(pascalTriangle[n][k-1])
+            

Add a binary coefficient function that generate pascal's triangle and calculate the coefficient (n, k)