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.

A126641 a(n) is the number of integers k less than 10^n such that the decimal representation of k lacks the digit 1, at least one of digits 2,3, at least one of digits 4,5, at least one of digits 6,7 and at least one of digits 8,9.

Original entry on oeis.org

9, 73, 537, 3625, 22809, 135913, 777177, 4308265, 23329689, 124104553, 651267417, 3382100905, 17421964569, 89180975593, 454265623257, 2304999893545, 11660373751449, 58845428989033, 296407578308697, 1490778208598185, 7488908074594329, 37584775814704873
Offset: 1

Views

Author

Aleksandar M. Janjic and Milan Janjic, Feb 08 2007

Keywords

Crossrefs

Programs

  • Maple
    f:=n->16*5^n-32*4^n+24*3^n-8*2^n+1;
  • PARI
    Vec(-x*(120*x^4-250*x^3+207*x^2-62*x+9) / ((x-1)*(2*x-1)*(3*x-1)*(4*x-1)*(5*x-1)) + O(x^100)) \\ Colin Barker, Feb 22 2015

Formula

a(n) = 16*5^n-32*4^n+24*3^n-8*2^n+1.
G.f.: -x*(120*x^4-250*x^3+207*x^2-62*x+9) / ((x-1)*(2*x-1)*(3*x-1)*(4*x-1)*(5*x-1)). - Colin Barker, Feb 22 2015