AMC 12B 2007 Problem 9

A function f has the property that f(3 x-1)=x^{2}+x+1 for all real numbers x. What is f(5) ?

Answer Choices
A. 7
B. 13
C. 31
D. 111
E. 211