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!)
A002279 a(n) = 5*(10^n - 1)/9. 39

%I #67 Feb 08 2024 07:10:11

%S 0,5,55,555,5555,55555,555555,5555555,55555555,555555555,5555555555,

%T 55555555555,555555555555,5555555555555,55555555555555,

%U 555555555555555,5555555555555555,55555555555555555,555555555555555555,5555555555555555555,55555555555555555555,555555555555555555555

%N a(n) = 5*(10^n - 1)/9.

%C Arithmetic mean of all n-digit odd numbers. E.g., a(2) = arithmetic mean of {11,13,15,...,97,99} = (11+99)/2 = 55. - _Amarnath Murthy_, Aug 02 2005

%H Ivan Panchenko, <a href="/A002279/b002279.txt">Table of n, a(n) for n = 0..200</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Repdigit.html">Repdigit</a>.

%H <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (11,-10).

%F a(n) = A178632(n)/A002283(n). - _Reinhard Zumkeller_, May 31 2010

%F From _Vincenzo Librandi_, Jul 22 2010: (Start)

%F a(n) = a(n-1) + 5*10^(n-1) with a(0)=0.

%F a(n) = 11*a(n-1) - 10*a(n-2) with a(0)=0, a(1)=5. (End)

%F G.f.: 5*x/((1 - x)*(1 - 10*x)). - _Ilya Gutkovskiy_, Feb 24 2017

%F E.g.f.: 5*exp(x)*(exp(9*x) - 1)/9. - _Stefano Spezia_, Sep 13 2023

%F From _Karl-Heinz Hofmann_, Nov 28 2023: (Start)

%F a(n) = A010785(9*n-4) for n > 0.

%F a(n) = 5 * A002275(n).

%F a(n) = 5 * A002283(n) / 9. (End)

%t Table[FromDigits[PadRight[{},n,5]],{n,0,20}] (* _Harvey P. Dale_, Oct 05 2013 *)

%o (Maxima) A002279(n):=5*(10^n-1)/9$

%o makelist(A002279(n),n,0,30); /* _Martin Ettl_, Nov 08 2012 */

%o (PARI) a(n)=5*(10^n-1)/9 \\ _Charles R Greathouse IV_, Sep 24 2015

%o (Python)

%o def A002279(n): return 5*(10**n-1)//9 # _Karl-Heinz Hofmann_, Nov 28 2023

%Y Cf. A002283, A178632, A010785.

%Y Cf. A002275, A002276, A002277, A002278, A002280, A002281, A002282, A075415.

%K easy,nonn

%O 0,2

%A _N. J. A. Sloane_

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 18:16 EDT 2024. Contains 371916 sequences. (Running on oeis4.)