OFFSET
0,15
COMMENTS
A prime factor of 2^n+1 is called primitive if it does not divide 2^r+1 for any r<n. Zsigmondy's theorem says that there is at least one primitive prime factor except for n=3. See A086258 for those n that have a record number of primitive prime factors.
LINKS
Max Alekseyev, Table of n, a(n) for n = 0..1122 (terms 0..500 from T. D. Noe; terms 501..1062 from Amiram Eldar)
Eric Weisstein's World of Mathematics, Zsigmondy Theorem
FORMULA
For n > 0, a(n) = A086251(2*n). - Max Alekseyev, Sep 06 2022
EXAMPLE
a(14) = 2 because 2^14+1 = 5*29*113 and 29 and 113 do not divide 2^r+1 for r < 14.
MATHEMATICA
nMax=200; pLst={}; Table[f=Transpose[FactorInteger[2^n+1]][[1]]; f=Complement[f, pLst]; cnt=Length[f]; pLst=Union[pLst, f]; cnt, {n, 0, nMax}]
CROSSREFS
KEYWORD
hard,nonn
AUTHOR
T. D. Noe, Jul 14 2003
STATUS
approved