(a+b+c)^n program and someother stuff