cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A274907 Largest prime factor of 6^n - 1.

Original entry on oeis.org

5, 7, 43, 37, 311, 43, 55987, 1297, 2467, 311, 3154757, 97, 760891, 55987, 1201, 98801, 30839, 46441, 638073026189, 6781, 1822428931, 51828151, 7505944891, 1678321, 40185601, 760891, 623067280651, 5030761, 7369130657357778596659, 1950271, 49744740983476472807
Offset: 1

Views

Author

Vincenzo Librandi, Jul 11 2016

Keywords

Examples

			6^5 - 1 = 7775 = 5*5*311, so a(5) = 311.
		

Crossrefs

Cf. similar sequences listed in A274906.

Programs

  • Magma
    [Maximum(PrimeDivisors(6^n-1)): n in [1..40]];
    
  • Mathematica
    Table[FactorInteger[6^n - 1][[-1, 1]], {n, 40}]
  • PARI
    a(n) = vecmax(factor(6^n-1)[,1]); \\ Michel Marcus, Jul 13 2016

Formula

a(n) = A006530(A024062(n)). - Michel Marcus, Jul 11 2016