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!)
A075661 Let f(n) = lcd(n)-lpf(n), where lcd(n) is the largest common difference between consecutive divisors of n (ordered by size) and lpf(n) is the largest prime factor of n. Sequence gives number of iterations for f(n) to reach 0 or -1. 2
1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 2, 1, 2, 2, 1, 1, 3, 3, 1, 3, 2, 1, 2, 1, 2, 2, 1, 3, 3, 1, 1, 2, 3, 1, 2, 1, 2, 4, 1, 1, 3, 4, 3, 2, 2, 1, 4, 3, 3, 2, 1, 1, 4, 1, 1, 4, 3, 3, 2, 1, 2, 2, 3, 1, 3, 1, 1, 5, 2, 4, 2, 1, 4, 3, 1, 1, 4, 3, 1, 2, 3, 1, 4, 4, 2, 2, 1, 3, 5, 1, 3, 4, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
LINKS
Jason Earls, Smarandache iterations of the first kind on functions involving divisors and prime factors, in Smarandache Notions Journal (2004), Vol. 14.1, pp 259-264.
EXAMPLE
a(24)=3 because 24 -> 9 -> 3 -> -1.
MATHEMATICA
Array[-1 + Length@ NestWhileList[Function[n, Max@ Differences@ # - SelectFirst[Reverse@ #, PrimeQ] &@ Divisors[n]], #, # > 0 &] &, 100] (* Michael De Vlieger, Mar 28 2018 *)
CROSSREFS
Cf. A074348.
Sequence in context: A202205 A336123 A353849 * A206829 A319694 A335641
KEYWORD
nonn
AUTHOR
Jason Earls, Sep 23 2002
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 April 18 21:51 EDT 2024. Contains 371781 sequences. (Running on oeis4.)