cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-5 of 5 results.

A270366 a(n) = number of times n appears in A270362.

Original entry on oeis.org

1, 2, 2, 4, 2, 8, 0, 2, 14, 2, 0, 6, 0, 26, 4, 2, 0, 0, 8, 2, 0, 54, 0, 8, 0, 0, 2, 0, 0, 16, 6, 0, 0, 0, 106, 0, 0, 16, 0, 0, 0, 6, 0, 0, 0, 0, 0, 32, 0, 8, 2, 0, 0, 0, 0, 214, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 8, 0, 2, 0, 0, 0, 0, 0, 0, 64, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 426, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Jeffrey Shallit, Mar 15 2016

Keywords

Crossrefs

A270364 Numbers that do not appear in A270362.

Original entry on oeis.org

6, 10, 12, 16, 17, 20, 22, 24, 25, 27, 28, 31, 32, 33, 35, 36, 38, 39, 40, 42, 43, 44, 45, 46, 48, 51, 52, 53, 54, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 68, 70, 71, 72, 73, 74, 75, 77, 78, 80, 81, 82, 83, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 110, 111, 112, 113, 114, 115
Offset: 0

Views

Author

Jeffrey Shallit, Mar 15 2016

Keywords

Crossrefs

A270365 Successive run lengths in A270362.

Original entry on oeis.org

1, 2, 2, 4, 2, 8, 2, 14, 2, 6, 26, 4, 2, 8, 2, 54, 8, 2, 16, 6, 106, 16, 6, 32, 8, 2, 214, 32, 8, 2, 64, 22, 426, 64, 16, 6, 128, 32, 8, 2, 854, 128, 32, 8, 2, 256, 64, 22, 1706, 254, 2, 64, 22, 512, 128, 32, 8, 2, 3414, 512, 128, 32, 8, 2, 1024, 256, 86, 6826, 1022, 2, 256, 64, 22, 2048, 512, 128, 32, 8, 2
Offset: 0

Views

Author

Jeffrey Shallit, Mar 15 2016

Keywords

Crossrefs

Cf. A002487, A270362, A212289. Like A270366, but with 0 elements removed.

A212289 Record values in A002487.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 14, 15, 18, 19, 21, 23, 26, 29, 30, 34, 37, 41, 47, 49, 50, 55, 60, 67, 69, 76, 79, 89, 97, 108, 109, 123, 128, 129, 131, 144, 157, 175, 178, 181, 199, 207, 208, 233, 254, 257, 283, 287, 322, 335, 337, 338, 343, 377, 411, 458, 465, 467, 474
Offset: 1

Views

Author

Keywords

Comments

Distinct elements of A270362. - Jeffrey Shallit, Mar 16 2016.

Crossrefs

Programs

  • Mathematica
    Union@ FoldList[Max, Nest[Append[#1, If[OddQ[#2], #1[[(#2 + 1)/2]], #1[[#2/2]] + #1[[(#2 + 2)/2]] ]] & @@ {#, Length@ # + 1} &, {0, 1}, 10^4]] (* Michael De Vlieger, Jul 10 2019 *)
  • PARI
    fusc(n)=my(a=1, b=0); while(n, if(n%2, b+=a, a+=b); n>>=1); b
    r=-1;for(n=0,1e5,t=fusc(n); if(t>r,r=t;print1(t", ")))
    
  • Python
    from itertools import count, islice
    from functools import reduce
    def A212289_gen(): # generator of terms
        yield (c:= 0)
        for n in count(1):
            m = sum(reduce(lambda x,y:(x[0],x[0]+x[1]) if int(y) else (x[0]+x[1],x[1]),bin(n)[-1:2:-1],(1,0)))
            if m>c: yield (c:=m)
    A212289_list = list(islice(A212289_gen(),30)) # Chai Wah Wu, Sep 23 2024

Formula

a(n) = fusc(A212288(n)).

Extensions

a(1)=0 prepended in terms, b-file and programs by Georg Fischer, Jun 24 2020

A212288 Numbers n such that fusc(k) < fusc(n) for all k < n, where fusc is Stern's diatomic series.

Original entry on oeis.org

1, 3, 5, 9, 11, 19, 21, 35, 37, 43, 69, 73, 75, 83, 85, 139, 147, 149, 165, 171, 277, 293, 299, 331, 339, 341, 555, 587, 595, 597, 661, 683, 1109, 1173, 1189, 1195, 1323, 1355, 1363, 1365, 2219, 2347, 2379, 2387, 2389, 2645, 2709, 2731, 4437, 4691, 4693, 4757, 4779, 5291
Offset: 1

Views

Author

Keywords

Comments

Position of first occurrence of each distinct element in A270362. - Jeffrey Shallit, Mar 15 2016

Crossrefs

Programs

  • PARI
    fusc(n)=my(a=1, b=0); while(n, if(n%2, b+=a, a+=b); n>>=1); b
    r=0;for(n=1,1e5,t=fusc(n); if(t>r,r=t;print1(n", ")))
Showing 1-5 of 5 results.