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!)
A341621 a(n) is the exponent of the least power of 2 that when multiplied by n makes the product abundant, or -1 if n itself is a power of 2. 2
-1, -1, 2, -1, 2, 1, 3, -1, 1, 1, 3, 0, 3, 2, 1, -1, 4, 0, 4, 0, 1, 2, 4, 0, 2, 2, 1, 1, 4, 0, 5, -1, 1, 3, 1, 0, 5, 3, 1, 0, 5, 0, 5, 1, 1, 3, 5, 0, 2, 1, 1, 1, 5, 0, 2, 0, 1, 3, 5, 0, 5, 4, 1, -1, 2, 0, 6, 2, 1, 0, 6, 0, 6, 4, 1, 2, 2, 0, 6, 0, 1, 4, 6, 0, 2, 4, 1, 0, 6, 0, 2, 2, 1, 4, 2, 0, 6, 1, 1, 0, 6, 0, 6, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Number of iterations of x -> 2x needed before the result is abundant (sigma(x) > 2x), when starting from x=n, or -1 if an abundant number would never be reached (when n is a power of 2).
LINKS
MATHEMATICA
a[n_] := Module[{e = IntegerExponent[n, 2], s}, If[n == 2^e, -1, s = DivisorSigma[-1, n/2^e]; Max[Floor[Log2[s/(s - 1)]] - e, 0]]]; Array[a, 100] (* Amiram Eldar, Apr 01 2024 *)
PROG
(PARI) A341621(n) = if(!bitand(n, n-1), -1, for(i=0, oo, my(n2 = n+n); if(sigma(n) > n2, return(i)); n = n2));
CROSSREFS
Cf. A005101 (positions of zeros), A341622 (positions where this differs from A336915).
Sequence in context: A112165 A112186 A112187 * A074093 A324286 A265575
KEYWORD
sign
AUTHOR
Antti Karttunen, Feb 19 2021
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 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)