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!)
A055020 Number of iterations of sigma() required until 2n (or greater) is reached. 5
2, 2, 2, 2, 1, 2, 2, 3, 2, 2, 1, 3, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 3, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 1, 3, 2, 2, 1, 2, 1, 3, 2, 2, 2, 2, 1, 3, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 1, 3, 2, 2, 2, 2, 1, 3, 2, 2, 1, 2, 1, 3, 2, 2, 2, 2, 1, 2, 1, 4, 2, 2, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 1, 3, 2, 2, 1, 2, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
EXAMPLE
sigma(sigma(sigma(9))) = 24 >= 2*9, so a(9) = 3.
MATHEMATICA
a[n_] := -1 + Length@ NestWhileList[DivisorSigma[1, #] &, n, # < 2*n &]; Array[a, 100, 2] (* Amiram Eldar, Mar 18 2024 *)
PROG
(PARI) a(n) = {my(m = n, nn = 2*n, c = 0); while(m < nn, m = sigma(m); c++); c; } \\ Amiram Eldar, Mar 18 2024
CROSSREFS
Sequence in context: A318882 A327160 A355832 * A052435 A094701 A210452
KEYWORD
nonn
AUTHOR
Jud McCranie, May 31 2000
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 16 08:15 EDT 2024. Contains 371698 sequences. (Running on oeis4.)