Problem

Source: Kosovo MO 2014 Grade 10, Problem 1

Tags: algebra



Let $a$ and $b$ be the solutions to $x^2-x+q=0$, find $a^3+b^3+3(a^3b+ab^3)+6(a^3b^2+a^2b^3)$.