contestada

two sequences have the formulae 3n-1 and 7n+2 . A new sequences is formed by the number which appear in both of these sequences. Determine the formula for the nth term.