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.

A086845 a(1) = 0, a(n) = a(floor(n/2)) + 2*a(ceiling(n/2)) + floor(n/2).

Original entry on oeis.org

0, 1, 3, 5, 9, 12, 16, 19, 27, 32, 38, 42, 50, 55, 61, 65, 81, 90, 100, 106, 118, 125, 133, 138, 154, 163, 173, 179, 191, 198, 206, 211, 243, 260, 278, 288, 308, 319, 331, 338, 362, 375, 389, 397, 413, 422, 432, 438, 470, 487, 505, 515, 535
Offset: 1

Views

Author

Ralf Stephan, Aug 09 2003

Keywords

Comments

Number of comparators used in Bose-Nelson networks.
Conjecture: partial sums of A087808. - Sean A. Irvine, Jul 14 2022

Crossrefs

Cf. A064194.

Programs

  • Magma
    [n le 1 select 0 else Self(Floor(n/2)) + 2*Self(Ceiling(n/2)) + Floor(n/2): n in [1..60]]; // Vincenzo Librandi, Aug 30 2016
  • PARI
    a(n)=if(n<2,0,a(floor(n/2))+2*a(ceil(n/2))+floor(n/2))