For natural any number $n$, prove that $\sum_{i=0}^n{n \choose i}\cdot (-1)^i \cdot i^n =(-1)^n n!$ and for whole number $k<n,\,\sum_{i=0}^n {n \choose i} \cdot (-1)^i \cdot i^k =0$.
I know that $\sum_{i=0}^n{n \choose i}\cdot (-1)^i \cdot i^k = 0.$ For $k=0,1,2$ as it is expansion of $(x+1)^n,\,n(x+1)^{n-1},\,n(n+1)(x+1)^{n-2}$ at $x=-1$. But I am not able to prove for $k>2$. Can someone help me out?
You could also do this combinatorially. Paint $k$ walls in $n$ colours. Then the number of ways of doing this using all $n$ colours is, by the inclusion-exclusion principle, $n^k$ [any wall in any colour] $-{n \choose 1} \cdot (n-1)^k$ [pick one colour and count how many ways you can paint the walls omitting this colour; you must exclude these] $+{n \choose 2} \cdot (n-2)^k$ [add back the ways you excluded twice because they omit two colours] $+ ...$. Hence the number of ways is given by $\sum_{i=1}^n{n \choose i} (-1)^{n-i}i^k$, which is $(-1)^n$ times your sum. However, there are no ways of painting fewer than $n$ walls in $n$ colours using all the colours, so all the sums are zero, except where $k=n$, when there are $n!$ ways of doing it.