The nth term of a sequence is n2 – 6n – 4. Find the sum…