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!)
A345021 a(n) is the result of replacing 2's by 0's in the hereditary base-2 expansion of n. 2
0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1, 2, 0, 1, 0, 1, 1, 2, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,6
COMMENTS
The 0's in hereditary base-2 expansions appear at leaf positions.
This sequence is unbounded:
- let b(1) = 2^0, and for any n > 1, b(n+1) = 2^2^b(n),
- a(b(n)) = 1 for any n > 0,
- a(Sum_{k = 1..n} b(k)) = n.
LINKS
FORMULA
a(n) = A342707(n, 0).
EXAMPLE
For n = 13:
- 13 = 2^(2^2^0 + 2^0) + 2^2^2^0 + 2^0,
- so a(13) = 0^(0^0^0 + 0^0) + 0^0^0^0 + 0^0 = 2.
PROG
(PARI) a(n) = { my (v=0, e); while (n, n-=2^e=valuation(n, 2); v+=0^a(e)); v }
CROSSREFS
Cf. A342707.
Sequence in context: A283760 A070088 A131851 * A104886 A215604 A139351
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jun 05 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 19 14:10 EDT 2024. Contains 371792 sequences. (Running on oeis4.)