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.

Showing 1-2 of 2 results.

A066727 Least factor of n^phi(n) - 1.

Original entry on oeis.org

0, 1, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 7, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 17, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 13, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3, 2, 7, 2, 3, 2, 3, 2, 5, 2, 3, 2, 3
Offset: 1

Views

Author

Robert G. Wilson v, Jan 15 2002

Keywords

Comments

n^Phi(n)-1 is never prime. This sequence is an outgrowth of Euler's generalization to Fermat's little theorem.

Crossrefs

Programs

  • Mathematica
    a = {}; Do[ a = Append[a, FactorInteger[ n^EulerPhi[n] - 1, FactorComplete -> False][[1, 1]]], {n, 1, 100}]; a
  • PARI
    A020639(n) = if(1==n,n,forprime(p=2,,if(!(n%p),return(p))));
    A066727(n) = if(1==n,0,A020639((n^eulerphi(n))-1)); \\ Antti Karttunen, Oct 24 2024

Formula

For n > 1, a(n) = A020639(A066916(n)). - Antti Karttunen, Oct 24 2024

A066915 a(n) = n^phi(n) + 1.

Original entry on oeis.org

2, 3, 10, 17, 626, 37, 117650, 4097, 531442, 10001, 25937424602, 20737, 23298085122482, 7529537, 2562890626, 4294967297, 48661191875666868482, 34012225, 104127350297911241532842, 25600000001, 7355827511386642, 26559922791425, 907846434775996175406740561330, 110075314177
Offset: 1

Views

Author

Jason Earls, Jan 23 2002

Keywords

Crossrefs

Programs

  • Mathematica
    Table[n^EulerPhi[n]+1,{n,30}] (* Harvey P. Dale, May 29 2014 *)
  • PARI
    a(n) = { n^eulerphi(n) + 1 } \\ Harry J. Smith, Apr 06 2010

Formula

a(n) = A062981(n) + 1.
Showing 1-2 of 2 results.