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!)
A139817 2^n - number of digits of 2^n. 0
0, 1, 3, 7, 14, 30, 62, 125, 253, 509, 1020, 2044, 4092, 8188, 16379, 32763, 65531, 131066, 262138, 524282, 1048569, 2097145, 4194297, 8388601, 16777208, 33554424, 67108856, 134217719, 268435447, 536870903, 1073741814, 2147483638, 4294967286, 8589934582 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..33.

FORMULA

a(n) = A000079(n) - A055642(A000079(n)). - Michel Marcus, Jul 18 2013

MATHEMATICA

Table[2^n-IntegerLength[2^n], {n, 0, 40}] (* Harvey P. Dale, Apr 05 2015 *)

PROG

(PARI) a(n) = 2^n - length(digits(2^n)) \\ Michel Marcus, Jul 18 2013

CROSSREFS

Cf. A000079, A055642.

Sequence in context: A265381 A066225 A305777 * A173010 A036892 A123707

Adjacent sequences:  A139814 A139815 A139816 * A139818 A139819 A139820

KEYWORD

nonn,base

AUTHOR

Rolf Pleisch, May 23 2008

EXTENSIONS

More terms from N. J. A. Sloane, Jun 29 2008

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 April 8 22:35 EDT 2020. Contains 333330 sequences. (Running on oeis4.)