login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A089907 Sum of digits of numbers between 0 and (6/9)*(10^n-1). 6
0, 21, 483, 7785, 107787, 1377789, 16777791, 197777793, 2277777795, 25777777797, 287777777799, 3177777777801, 34777777777803, 377777777777805, 4077777777777807, 43777777777777809, 467777777777777811 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
From a suggestion of Yalcin Aktar
LINKS
FORMULA
a(n) = s(6, n-1) where s(a, k)=a*(k+1)+a^2*sum(i=0, k, i*10^(k-i))+sum(i=0, k, 5*a*(9*(k-i)+a- 1)*10^(k-i-1)).
a(n) = (-11/9*(-1+10^n)+(2+3*10^n)*n). G.f.: 3*x*(40*x^2+7*x+7) / ((x-1)^2*(10*x-1)^2). - Colin Barker, Jun 14 2013
MATHEMATICA
LinearRecurrence[{22, -141, 220, -100}, {0, 21, 483, 7785}, 20] (* Harvey P. Dale, Aug 22 2022 *)
CROSSREFS
Sequence in context: A296586 A269922 A006298 * A015695 A006299 A231542
KEYWORD
nonn,base,easy
AUTHOR
Benoit Cloitre, Nov 14 2003
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 23 10:21 EDT 2024. Contains 371905 sequences. (Running on oeis4.)