You may collaborate in study groups on the solution of the homeworks. Indeed this is encouraged! You must, however, write up solutions on your own. If you do collaborate, acknowledge your collaborators in the write-up for each problem. If you obtain a solution with help (e.g., through library work), acknowledge your source, and write up the solution on your own.