The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A100376 a(n) is the largest number x such that for m=n to n+x-1, A006530(m) increases. 4
2, 1, 2, 1, 2, 1, 4, 3, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 4, 3, 2, 1, 3, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 1, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 4, 3, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 3, 2, 1, 1, 3, 2, 1, 3, 2, 1, 1, 2, 1, 5, 4, 3, 2, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 1, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
A006530(m) is the greatest prime factor (gpf) of m.
If p is an odd prime, a(p)=1, because the largest prime factor of p+1 is smaller than p.
LINKS
EXAMPLE
a(8)=4 because the largest prime factors of 8,9,10,11 are 2,3,5,11; but gpf(12)=3.
From Michael De Vlieger, Jul 30 2017: (Start)
Value First position
1 3
2 2
3 9
4 8
5 90
6 168
7 9352
8 46189
9 721971
10 721970
(End)
MATHEMATICA
With[{s = Differences@ Array[FactorInteger[#][[-1, 1]] &, 115]}, Table[1 + LengthWhile[Drop[s, n], # > 0 &], {n, Length@ s - 10}]] (* Michael De Vlieger, Jul 30 2017 *)
PROG
(PARI) a(n) = {m = n+1; gpf = vecmax(factor(n)[, 1]); while((ngpf=vecmax(factor(m)[, 1])) > gpf, m++; gpf = ngpf; ); m - n; } \\ Michel Marcus, Jul 25 2017
CROSSREFS
Sequence in context: A161272 A160976 A029218 * A336318 A020738 A063279
KEYWORD
nonn
AUTHOR
Labos Elemer, Dec 09 2004
EXTENSIONS
Edited by Don Reble, Jun 13 2007
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 18 03:43 EDT 2024. Contains 372618 sequences. (Running on oeis4.)