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.

Showing 1-3 of 3 results.

A255380 Number of strings of n decimal digits that contain at least one string of exactly 10 consecutive "0" digits.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 18, 261, 3420, 42300, 504000, 5850000, 66600000, 747000000, 8280000000, 90900000000, 989999999991, 10709999999757, 115199999995383, 1232999999925399, 13139999998904070, 139499999984885400, 1475999999800740000
Offset: 0

Views

Author

Jon E. Schoenfield, Feb 22 2015

Keywords

Crossrefs

Cf. A255371-A255379 (for the k=1 through k=9 cases of "exactly k consecutive '0' digits").

Programs

  • Mathematica
    CoefficientList[Series[x^10(x-1)^2/((10x-1)(9x^12-9x^11+10x-1)),{x,0,40}],x] (* or *) LinearRecurrence[{20,-100,0,0,0,0,0,0,0,0,-9,99,-90},{0,0,0,0,0,0,0,0,0,0,1,18,261},40] (* Harvey P. Dale, Dec 27 2021 *)
  • PARI
    concat([0,0,0,0,0,0,0,0,0,0], Vec(x^10*(x-1)^2/((10*x-1)*(9*x^12-9*x^11+10*x-1)) + O(x^100))) \\ Colin Barker, Feb 27 2015

Formula

a(0) = a(1) = ... = a(9) = 0, a(10) = 1, a(n) = 9*(10^(n-11) - a(n-11) + sum_{i=10..n-1} a(i)) for n>=11.
G.f.: x^10*(x-1)^2/((10*x-1)*(9*x^12-9*x^11+10*x-1)). - Alois P. Heinz, Feb 26 2015

A255378 Number of strings of n decimal digits that contain at least one string of exactly 8 consecutive "0" digits.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 1, 18, 261, 3420, 42300, 504000, 5850000, 66600000, 747000000, 8279999991, 90899999757, 989999995383, 10709999925399, 115199998904070, 1232999984885400, 13139999800740000, 139499997460650000, 1475999968482900000, 15569999617032000081
Offset: 0

Views

Author

Jon E. Schoenfield, Feb 22 2015

Keywords

Crossrefs

Cf. A255371-A255377 (for the k=1 through k=7 cases of "exactly k consecutive '0' digits"), A255379 and A255380 (for the cases k=9 and k=10).

Programs

  • Mathematica
    LinearRecurrence[{20,-100,0,0,0,0,0,0,-9,99,-90},{0,0,0,0,0,0,0,0,1,18,261},30] (* Harvey P. Dale, Mar 26 2022 *)

Formula

a(0) = a(1) = ... = a(7) = 0, a(8) = 1, a(n) = 9*(10^(n-9) - a(n-9) + sum_{i=8..n-1} a(i)) for n>=9.
G.f.: x^8*(x-1)^2/((10*x-1)*(9*x^10-9*x^9+10*x-1)). - Alois P. Heinz, Feb 26 2015

A255381 Number of strings of k+n decimal digits that contain one string of exactly k consecutive "0" digits, where k >= n.

Original entry on oeis.org

1, 18, 261, 3420, 42300, 504000, 5850000, 66600000, 747000000, 8280000000, 90900000000, 990000000000, 10710000000000, 115200000000000, 1233000000000000, 13140000000000000, 139500000000000000, 1476000000000000000, 15570000000000000000, 163800000000000000000
Offset: 0

Views

Author

Jon E. Schoenfield, Feb 27 2015

Keywords

Comments

This sequence gives the first k+1 nonzero terms from A255371 (the k=1 case), A255372 (the k=2 case), etc., through A255380 (the k=10 case). Those sequences' definitions concern the number of strings of decimal digits that contain "at least one" string of exactly k consecutive "0" digits; the present sequence omits the words "at least" because, with k >= n, and thus 2k >= k+n, it is not possible to have more than one string of exactly k consecutive "0" digits in a string of k+n digits. (Two strings each having exactly k consecutive "0" digits would have to be separated by at least one nonzero digit, or else they would constitute a single string of exactly 2k consecutive "0" digits.)
Omitting the zero terms of each, A255371 through A255380 begin
1, 18, 252, 3177, 37764, 432315, 4821867, 52767711, ...
1, 18, 261, 3411, 42057, 499383, 5775480, 65506986, ...
1, 18, 261, 3420, 42291, 503757, 5845383, 66525399, ...
1, 18, 261, 3420, 42300, 503991, 5849757, 66595383, ...
1, 18, 261, 3420, 42300, 504000, 5849991, 66599757, ...
1, 18, 261, 3420, 42300, 504000, 5850000, 66599991, ...
1, 18, 261, 3420, 42300, 504000, 5850000, 66600000, ...
1, 18, 261, 3420, 42300, 504000, 5850000, 66600000, ...
1, 18, 261, 3420, 42300, 504000, 5850000, 66600000, ...
1, 18, 261, 3420, 42300, 504000, 5850000, 66600000, ...
and the terms of this present sequence give the limiting value for each column.

Examples

			Trivially, a(0)=1 because there is 1 string of k decimal digits that contains one string of exactly k consecutive "0" digits, where k >= 0: namely, the string of k consecutive "0" digits itself.
a(1)=18 because there are 18 strings of k+1 decimal digits that contain one string of exactly k consecutive "0" digits, where k >= 1. Letting "S" and "+" represent the string of exactly k consecutive "0" digits and any nonzero digit, respectively, the 18 strings comprise 9 of the form "S+" and 9 of the form "+S".
a(2)=261 because there are 261 strings of k+2 decimal digits that contain one string of exactly k consecutive "0" digits, where k >= 2. Letting "S", "+", and "." represent the string of exactly k consecutive "0" digits, any nonzero digit, and any digit (zero or nonzero), respectively, the 261 strings comprise 9*10=90 of the form "S+.", 9*9=81 of the form "+S+", and 10*9=90 of the form ".+S".
a(3)=3420 because there are 3420 strings of k+3 decimal digits that contain one string of exactly k consecutive "0" digits, where k >= 3. Using "S", "+", and "." as above, the 3420 strings comprise 9*10*10=900 of the form "S+..", 9*9*10=810 of the form "+S+.", 10*9*9=810 of the form ".+S+", and 10*10*9=900 of the form "..+S".
		

Crossrefs

Programs

  • PARI
    Vec((x-1)^2/(10*x-1)^2 + O(x^100)) \\ Colin Barker, Feb 27 2015

Formula

a(0) = 1, a(n) = (81n + 99) * 10^(n-2) for n >= 1.
G.f.: (x-1)^2/(10*x-1)^2. - Alois P. Heinz, Feb 27 2015
a(n) = 20*a(n-1) - 100*a(n-2) for n>2. - Colin Barker, Feb 27 2015
Showing 1-3 of 3 results.