I am defining a function binomial(n k) (aka Pascal\'s triangle) but am getting an error:
binomial(n k)
application: not a procedure; expected a procedure
Your error is here:
binomial(n)
n is an integer, not a function. If you put parentheses around it like that, scheme tries to invoke an integer as a function, which naturally produces an error.
n