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.

A113473 n repeated 2^(n-1) times.

Original entry on oeis.org

1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
Offset: 1

Views

Author

Zak Seidov, Jan 08 2006

Keywords

Examples

			G.f. = x + 2*x^2 + 2*x^3 + 3*x^4 + 3*x^5 + 3*x^6 + 3*x^7 + 4*x^8 + ... - _Michael Somos_, Jun 02 2019
		

Crossrefs

Partial sums of A036987.

Programs

Formula

a(1) = 1; for n>1 a(n) = a(floor(n/2)) + 1.
a(n) = floor(log_2(2n)).
It appears that a(n) = Sum_{k=0..n-1} (1-(-1)^A000108(k))/2. - Paul Barry, Mar 31 2008
a(n) = A070939(n) if n>0. - R. J. Mathar, Aug 13 2008
a(n) = A029837(n+1) = 1 + floor(log_2(n)) if n>0. - Michael Somos, Jun 02 2019