I am trying to learn a bit of Haskell but I am having some problems with understanding how to make programs with pow*.
For example I have to create the following program:
What the program does is 1+2(pow2)+3(pow2)+n(pow2) and then to make sure that n is positive number.
If someone could create such a program that would really help me understand what is going on.