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.

A064458 Highest power of 11 dividing n!.

Original entry on oeis.org

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9
Offset: 0

Views

Author

Robert G. Wilson v, Oct 03 2001

Keywords

Crossrefs

Programs

  • Mathematica
    Table[t = 0; p = 11; While[s = Floor[n/p]; t = t + s; s > 0, p *= 11]; t, {n, 0, 100} ]
    IntegerExponent[Range[0,110]!,11] (* Harvey P. Dale, Aug 07 2017 *)
  • PARI
    { for (n=0, 1000, a=0; p=11; while (s = n\p, a+=s; p*=11); write("b064458.txt", n, " ", a) ) } \\ Harry J. Smith, Sep 14 2009
    
  • PARI
    a(n) = valuation(n!, 11); \\ Michel Marcus, Apr 07 2016

Formula

a(n) = floor[n/11] + floor[n/121] + floor[n/1331] + floor[n/14641] + ....
a(n) = (n-A053831(n))/10. [R. J. Mathar, Oct 17 2010]