How do you write the following as an algebraic expression using x as the variable: Three times the difference of a number and one?