The stated rule pins the sequence down without any guesswork: start at 4 and add 3 each time, giving 4, 7, 10, 13. Now test each candidate against those terms, since an explicit rule has to match at every index, not just the first.
a1=3(1)+1=4,a2=3(2)+1=7,a3=3(3)+1=10
The rule an=4n gets the first term right and then gives 8 instead of 7; the rule an=n+3 gives 4,5,6; and the rule an=4n−1 gives 3,7,11. Only 3n+1 matches all the way along.