OFFSET
1,1
COMMENTS
The first column r=1 of a triangle defined by T(n,r) = 10^(n-1) -1 + r*floor(9*10^(n-1)/(n+1)).
A row starts with a (virtual) 0th column of a rep-9-digit and fills the remainder with n+1 numbers in arithmetic progression with the largest step such that all numbers in the n-th row are n-digit numbers.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..995
FORMULA
a(n) = 10^(n-1) -1 + floor(9*10^(n-1)/(n+1)). - G. C. Greubel, Apr 02 2019
EXAMPLE
The triangle starts in row n=1 as
4 9 # -1, -1+5, -1+2*5
39 69 99 # 9,9+30,9+2*30
324 549 774 999 # 99, 99+225, 99+2*225, 99+3*225
2799 4599 6399 8199 9999 # 999, 999+1800, 999+2*1800,..
...
The sequence contains the first column.
MAPLE
A093851 := proc(n) 10^(n-1)-1+floor(9*10^(n-1)/(n+1)) ; end proc: seq(A093851(n), n=1..20) ; # R. J. Mathar, Oct 14 2010
MATHEMATICA
Table[10^(n-1) -1 +Floor[9*10^(n-1)/(n+1)], {n, 1, 20}] (* G. C. Greubel, Apr 02 2019 *)
PROG
(PARI) {a(n) = 10^(n-1) -1 +floor(9*10^(n-1)/(n+1))}; \\ G. C. Greubel, Apr 02 2019
(Magma) [10^(n-1) -1 +Floor(9*10^(n-1)/(n+1)): n in [1..20]]; // G. C. Greubel, Apr 02 2019
(Sage) [10^(n-1) -1 +floor(9*10^(n-1)/(n+1)) for n in (1..20)] # G. C. Greubel, Apr 02 2019
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Apr 18 2004
EXTENSIONS
More terms from R. J. Mathar, Oct 14 2010
STATUS
approved