$0=$1<$2?50:$2*($2+1)*(3*$1-$2+1)/6