Evaluate the binomial theorem! Your mission, even if you don't accept it, is to input three numbers from STDIN or file:


  5 0.5 6


What you must do is evaluate this:


  (5a + 0.5b)^6


This basically means that the first two numbers are the coefficients of a and b and the third is the exponent in a binomial expansion.

Rules:


The first two numbers are either integers or simple terminating fractions.
The third number is a positive integer.
Do not use any inbuilt binomial functions from libs. (thanks to comments)
The shortest code wins!


Go on, do it.
Mathematica 36

InputForm@Expand[(#1 a + #2 b )^#3] &amp;


Usage

InputForm@Expand[(#1 a + #2 b )^#3] &amp;[5, .5, 6]


Result:

15625*a^6 +9375.*a^5*b +2343.75*a^4*b^2 +312.5*a^3*b^3 +23.4375*a^2*b^4 + 0.9375*a*b^5 + 0.015625*b^6