login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A088236 Total number of digits (in base 2) in all preceding terms in the sequence. 2
0, 1, 2, 4, 7, 10, 14, 18, 23, 28, 33, 39, 45, 51, 57, 63, 69, 76, 83, 90, 97, 104, 111, 118, 125, 132, 140, 148, 156, 164, 172, 180, 188, 196, 204, 212, 220, 228, 236, 244, 252, 260, 269, 278, 287, 296, 305, 314, 323, 332, 341, 350, 359 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

G. C. Greubel, Table of n, a(n) for n = 0..1200

FORMULA

a(1) = 1; a(n+1) = a(n) + floor(Log[2, a(n)]) + 1.

MATHEMATICA

RecurrenceTable[{a[n + 1] == a[n] + Floor[Log2[a[n]]] + 1,

  a[1] == 1}, a, {n, 1, 20}] (* G. C. Greubel, Dec 10 2015 *)

PROG

(PARI) alist(n) = my(r=vector(n), val=0, delta=1, pow=2); for(i=2, n, r[i]=val+=delta; if(val>=pow, delta++; pow*=2)); r \\ Franklin T. Adams-Watters, Oct 11 2014

CROSSREFS

Cf. A010062, A088235.

Sequence in context: A225249 A214048 A328659 * A194244 A014616 A184674

Adjacent sequences:  A088233 A088234 A088235 * A088237 A088238 A088239

KEYWORD

base,easy,nonn

AUTHOR

David Corbett (dcorbett42(AT)yahoo.co.nz), Sep 25 2003

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 8 08:08 EDT 2020. Contains 335520 sequences. (Running on oeis4.)