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.

A121924 Number of splitting steps that one can take with a sequence of n 2's.

Original entry on oeis.org

0, 1, 1, 3, 4, 4, 7, 9, 10, 10, 14, 17, 19, 20, 20, 25, 29, 32, 34, 35, 35, 41, 46, 50, 53, 55, 56, 56, 63, 69, 74, 78, 81, 83, 84, 84, 92, 99, 105, 110, 114, 117, 119, 120, 120, 129, 137, 144, 150, 155, 159, 162, 164, 165, 165, 175, 184, 192, 199, 205, 210, 214, 217
Offset: 1

Views

Author

Parthasarathy Nambi, Sep 02 2006

Keywords

Comments

See "A class of trees and its Wiener index" (or Table 2.1 on page 12 of Wagner's PhD thesis) for details. Many of the papers of Stephan Wagner are available at his home page in PDF format.
A splitting step is replacing a pair (c, c) with a pair (c+1, c-1). - Peter Kagey, Sep 24 2017

Examples

			a(11) = 14 from the formula, since b(11) = 5.
From _Peter Kagey_, Sep 24 2017 (Start)
For n = 8 an example of a(8) = 9 splitting steps is:
[2 2 2 2 2 2 2 2]
[3 2 2 2 2 2 2 1]
[3 3 2 2 2 2 1 1]
[3 3 3 2 2 1 1 1]
[3 3 3 3 1 1 1 1]
[4 3 3 2 1 1 1 1]
[4 4 2 2 1 1 1 1]
[4 4 3 1 1 1 1 1]
[5 3 3 1 1 1 1 1]
[5 4 2 1 1 1 1 1] (End)
		

Crossrefs

Cf. A007318.

Programs

  • Haskell
    a121924 n = a007318 b 3 + (n - a007318 b 2) * (b*(b+3) - 2*(n+1)) `div` 4
                where b = round $ sqrt $ 2 * fromIntegral n + 1/4
    -- Reinhard Zumkeller, Sep 02 2013

Formula

a(n) = binomial(b(n),3) + (n-binomial(b(n),2))*(b(n)^2+3b(n)-2(n+1))/4, where b(n) = floor(sqrt(2n+1/4)+1/2) - Stephan Wagner (swagner(AT)sun.ac.za), Jul 18 2007

Extensions

Edited by Stephan Wagner (swagner(AT)sun.ac.za), Jul 18 2007