|
|
A100387
|
|
a(n) is the largest number x such that for m=n to n+x-1, A006530(m) decreases.
|
|
1
|
|
|
1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 4, 3, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 3, 2, 1, 4, 3, 2, 1, 2, 1, 3, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 4, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 2, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 1, 3, 2, 1, 2, 1, 1, 1, 1, 3, 2, 1, 2, 1, 2, 1, 2, 1, 3, 2, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,2
|
|
COMMENTS
|
A006530(m) is the largest prime factor of m.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = 1 if and only if n >= 2 and n is a term of A070089.
If a(n) > 1 then a(n) = a(n+1)+1.
(End)
|
|
EXAMPLE
|
a(13)=4 because the largest prime factors of 13,14,15,16 are 13,7,5,2; but A006530(17)=17.
|
|
MATHEMATICA
|
<<NumberTheory`NumberTheoryFunctions` mxp[x_] :=Max[PrimeFactorList[x]]; uph=Table[First[Flatten[Position[Sign[RotateLeft[Table[mxp[n+j], {j, 0, 15}]]-Table[mxp[n+j], {j, 0, 15}]], 1]]], {n, 1, 256}]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|