OFFSET
2,3
LINKS
S. Mustonen, On prime factors of numbers m^n+-1
Seppo Mustonen, On prime factors of numbers m^n+-1 [Local copy]
EXAMPLE
For n=9, 7^n-1=40353606=2*3^3*19*37*1063 has three prime factors of form, namely 19=2n+1, 37=6n+1, 1063=118n+1. Thus a(9)=3.
MATHEMATICA
m = 7; n = 2; nmax = 80;
While[n <= nmax, {l = FactorInteger[m^n - 1]; s = 0;
For[i = 1, i <= Length[l],
i++, {p = l[[i, 1]];
If[IntegerQ[(p - 1)/n] == True, s = s + l[[i, 2]]]; }];
a[n] = s; } n++; ];
Table[a[n], {n, 2, nmax}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Seppo Mustonen, Nov 22 2010
STATUS
approved