OFFSET
2,1
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 2..210
FORMULA
MATHEMATICA
FactorInteger[#][[-1, 1]]&/@(3^Range[2, 30]-2) (* Harvey P. Dale, Apr 07 2022 *)
PROG
(PARI) a(n) = vecmax(factor(3^n-2)[, 1]); \\ Michel Marcus, Jul 12 2019
(Magma) [Max(PrimeDivisors(3^n-2)):n in [2..30]]; // Marius A. Burtea, Jul 12 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Mar 25 2003
STATUS
approved