The OEIS is supported by the many generous donors to the OEIS Foundation. Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A218451 10^n minus its binary weight. 0
 0, 8, 97, 994, 9995, 99994, 999993, 9999992, 99999988, 999999987, 9999999989, 99999999985, 999999999987, 9999999999986, 99999999999983, 999999999999980, 9999999999999980, 99999999999999980 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 LINKS FORMULA a(n) = 10^n - A000120(10^n). a(n) = 10^n - A118738(n). EXAMPLE a(2) = 97 because 10^2 = 100, which is 1100100 in binary, having 3 on bits, and 100 - 3 = 97. a(3) = 994 because 10^3 = 1000, which is 1111101000 in binary, having 6 on bits, and 1000 - 6 = 994. MATHEMATICA Table[10^n - DigitCount[10^n, 2, 1], {n, 0, 19}] PROG (PARI) a(n)=10^n-hammingweight(5^n) \\ Charles R Greathouse IV, Oct 28 2012 CROSSREFS Cf. A011371, A118738. Sequence in context: A002506 A318012 A320398 * A262777 A292747 A083182 Adjacent sequences:  A218448 A218449 A218450 * A218452 A218453 A218454 KEYWORD nonn,easy,base AUTHOR Alonso del Arte, Oct 28 2012, based on examples for A011371 from Hieronymus Fischer, Jun 06 2012. STATUS approved

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

Last modified September 28 00:01 EDT 2022. Contains 357063 sequences. (Running on oeis4.)