login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A027870 Number of zeros in 2^n. 11
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 2, 3, 1, 1, 1, 1, 1, 0, 1, 0, 2, 3, 2, 2, 2, 1, 1, 2, 2, 3, 2, 2, 2, 1, 1, 0, 1, 3, 3, 1, 0, 1, 1, 1, 0, 0, 2, 4, 2, 0, 2, 3, 1, 1, 0, 3, 5, 3, 3, 4, 2, 3, 4, 1, 1, 4, 5, 5, 6, 6, 7, 5, 5 (list; graph; refs; listen; history; internal format)
OFFSET

0,43

LINKS

Harry J. Smith, Table of n, a(n) for n=0,...,1000

EXAMPLE

2^31 = 2147483648 so a(31) = 0 and 2^42 = 4398046511104 so a(42) = 2.

MATHEMATICA

Table[ Count[ IntegerDigits[2^n], 0], {n, 0, 100} ]

DigitCount[2^Range[0, 110], 10, 0] (* From Harvey P. Dale, Nov 20 2011 *)

PROG

(PARI) Count(x, d)= { local(c=0, f); while (x>9, f=x-10*(x\10); if (f==d, c++); x\=10); if (x==d, c++); return(c) } { for (n=0, 1000, a=Count(2^n, 0); write("b027870.txt", n, " ", a) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 27 2009]

CROSSREFS

Cf. A007377, 1's A065712, 2's A065710, 3's A065714, 4's A065715, 5's A065716, 6's A065717, 7's A065718, 8's A065719, 9's A065744.

Sequence in context: A175669 A004579 A081371 * A070077 A122587 A086195

Adjacent sequences:  A027867 A027868 A027869 * A027871 A027872 A027873

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

EXTENSIONS

a(99) - a(104) from Harry J. Smith (hjsmithh(AT)sbcglobal.net), Oct 27 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 08:58 EST 2012. Contains 205614 sequences.