If anyone could help, I will appreciate it!

This are the problem:

1. Show that all of the powers in the prime-power factorization of an integer n are even if and only if n is a perfect square.

2. Show that every positive integer can be written as the product of possibly a square and a square-free integer. A "square-free integer" is an integer that is not divisible by any perfect squares other than 1.

Thank you!