Problem 6: use mathematical identities
Seventh problem