The first and seventh terms in a sequence are 1 and 365 respectively. If each term after the first in the sequence is formed by multiplying the preceding term by 3 and subtracting 1, what is the sixth term?