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!)
A358819 Numbers k such that for some r we have w(1) + ... + w(k - 1) = w(k + 1) + ... + w(k + r), where w(i) = A000120(i). 0
4, 5, 8, 9, 10, 11, 12, 15, 22, 23, 40, 43, 44, 46, 49, 54, 59, 60, 61, 65, 70, 76, 77, 81, 87, 90, 92, 94, 100, 105, 107, 109, 110, 112, 125, 130, 131, 135, 150, 156, 158, 167, 170, 171, 182, 184, 185, 196, 201, 203, 212, 215, 216, 218, 220, 221, 223, 226, 230 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
1's-counting sequence balancing numbers. Numbers k such that A000788(k-1) + A000788(k) is a term of A000788.
LINKS
EXAMPLE
k = 4:
w(1) + w(2) + w(3) = w(5) + w(6) = 4.
Thus the balancing number k = 4 is a term. The balancer r = 2.
k = 5:
w(1) + w(2) + w(3) + w(4) = w(6) + w(7) = 5.
Thus the balancing number k = 5 is a term. The balancer r = 2.
w(i) = A000120(i).
MATHEMATICA
With[{m = 500}, w = DigitCount[Range[m], 2, 1]; s = Accumulate[w]; Select[Range[2, m], MemberQ[s, 2*s[[#]] - w[[#]]] &]] (* Amiram Eldar, Dec 02 2022 *)
CROSSREFS
Sequence in context: A292192 A339499 A295150 * A042956 A128217 A288671
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Dec 02 2022
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 May 12 10:09 EDT 2024. Contains 372452 sequences. (Running on oeis4.)