What is the law of the sequence 0 1 4 15 46

What is the law of the sequence 0 1 4 15 46

a[n+1] = 3a[n] + 1.
That is to say, each number in the sequence is equal to three times of the previous number plus 1
This can solve the general term
a[n+1] + 1/2 = 3a[n] + 3/2.
So, a [n] + 1 / 2 is an equal ratio sequence
a[n] = aq^n - 1/2
a[1]=0,1/2 = aq
a[2]=1,3/2 = aq^2
q = 3,a = 1/6
So the general term a [n] = (1 / 6) * 3 ^ n - 1 / 2