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!)
A336842 Number of trailing 1-bits in the binary representation of A003961(n): a(n) = A007814(1+A003961(n)). 3
1, 2, 1, 1, 3, 4, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 3, 6, 3, 3, 1, 3, 1, 2, 1, 2, 5, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 4, 1, 4, 3, 1, 1, 1, 2, 5, 1, 2, 3, 2, 1, 2, 1, 1, 2, 2, 4, 2, 1, 3, 2, 3, 2, 1, 3, 1, 2, 4, 2, 1, 4, 4, 8, 2, 3, 1, 1, 1, 4, 1, 1, 2, 5, 1, 1, 2, 1, 1, 5, 1, 6, 1, 2, 1, 1, 3, 1, 2, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A007814(1+A003961(n)).
PROG
(PARI)
A003961(n) = { my(f = factor(n)); for(i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); };
A007814(n) = valuation(n, 2);
A336842(n) = A007814(1+A003961(n));
(Python)
from math import prod
from sympy import factorint, nextprime
def A336842(n): return (~((m:=prod(nextprime(p)**e for p, e in factorint(n).items()))+1)& m).bit_length() # Chai Wah Wu, Jul 01 2022
CROSSREFS
Cf. A003961, A007814, A246261 (positions of ones), A336843, A336844.
Sequence in context: A120019 A145034 A286510 * A159933 A305431 A128314
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 06 2020
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 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)