login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A080798
Largest prime factor of 3^n-2.
3
7, 5, 79, 241, 727, 23, 937, 19681, 431, 499, 4703, 8093, 40193, 2869781, 483671, 94747, 4657, 232452293, 498112057, 2812679, 31381059607, 3765727153, 1364071, 44594137339, 125231, 13170403, 5353801183, 4159349, 46050353857, 294487079, 26892769, 29178816413, 3533781113
OFFSET
2,1
LINKS
FORMULA
a(n) = A006530(A058481(n)). - Michel Marcus, Jul 12 2019
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