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.

A093847 First column of triangle A093846.

Original entry on oeis.org

9, 54, 399, 3249, 27999, 249999, 2285713, 21249999, 199999999, 1899999999, 18181818180, 174999999999, 1692307692306, 16428571428570, 159999999999999, 1562499999999999, 15294117647058822, 149999999999999999
Offset: 1

Views

Author

Amarnath Murthy, Apr 18 2004

Keywords

Crossrefs

Cf. A093846.

Programs

  • Magma
    [10^(n-1) -1 +Floor(9*10^(n-1)/n): n in [1..20]]; // G. C. Greubel, Mar 22 2019
    
  • Maple
    A093847 := proc(n) RETURN (10^(n-1)-1+floor(9*(10^(n-1)/n))); end; for n from 1 to 20 do printf("%d,",A093847(n)); od; # R. J. Mathar, Jun 23 2006
  • Mathematica
    Table[10^(n-1)-1+Floor[9 10^(n-1)/n],{n,20}] (* Harvey P. Dale, Oct 21 2011 *)
  • PARI
    {a(n) = 10^(n-1) -1 +floor(9*10^(n-1)/n)}; \\ G. C. Greubel, Mar 22 2019
    
  • Sage
    [10^(n-1) -1 +floor(9*10^(n-1)/n) for n in (1..20)] # G. C. Greubel, Mar 22 2019

Formula

a(n) = 10^(n-1) - 1 + floor(9*10^(n-1)/n) = A093846(n, 1). - R. J. Mathar, Jun 23 2006

Extensions

More terms from R. J. Mathar, Jun 23 2006
Edited by David Wasserman, Mar 26 2007