OFFSET
1,4
COMMENTS
FORMULA
a(n) = Card(Union(A075860(x)); x=1+p(n), ..., -1+p(n+1)).
EXAMPLE
Between p(23)=83 and p(24)=89, the relevant fixed points are
{5,13,2,2,13}, i.e., four are distinct from the 5 values, a(24)=4;
between p(2033)=17707 and p(2034)=170713, the fixed-point set is {5,5,5,5,5}, so a(2033)=1, so a(88)=1.
MATHEMATICA
ffi[x_] := Flatten[FactorInteger[x]] lf[x_] := Length[FactorInteger[x]] ba[x_] := Table[Part[ffi[x], 2*w-1], {w, 1, lf[x]}] sopf[x_] := Apply[Plus, ba[x]] Table[Length[Union[Table[FixedPoint[sopf, w], {w, 1+Prime[n], Prime[n+1]-1}]]], {n, 1, 1000}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Apr 16 2003
STATUS
approved