OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: (10*x - 55*x^2 + Sum_{d>=1} (4*10^d+5)*x^((d^2-d)/2+1) - Sum_{d>=1} (445*10^(d-1)+5)*x^((d^2-d)/2+2))/(5*(1-x)*(1-10*x)). - Robert Israel, Oct 14 2016
MAPLE
seq(seq(10^d + 10^j, j=0..d-1), d=1..10); # Robert Israel, Oct 14 2016
MATHEMATICA
Sort[Total/@Subsets[10^Range[0, 7], {2}]] (* Harvey P. Dale, Apr 20 2012 *)
PROG
(Haskell)
a038444 n = a038444_list !! (n-1)
a038444_list = 11 : f [11] 90 where
f xs@(x:_) z = ys ++ f ys (10 * z) where
ys = (x + z) : map (* 10) xs
-- Reinhard Zumkeller, Jan 28 2015
(PARI) a(n)= 10^(n-1-binomial(sqrtint(n*8)\/2, 2)) + 10^((sqrtint(n*8)+1)\2); \\ Ruud H.G. van Tol, Nov 29 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Offset corrected by Reinhard Zumkeller, Jan 28 2015
STATUS
approved