A137233 Number of n-digit even numbers.
5, 45, 450, 4500, 45000, 450000, 4500000, 45000000, 450000000, 4500000000, 45000000000, 450000000000, 4500000000000, 45000000000000, 450000000000000, 4500000000000000, 45000000000000000, 450000000000000000, 4500000000000000000, 45000000000000000000, 450000000000000000000
Offset: 1
Examples
a(2) = 45 because there are 45 2-digit even numbers.
Links
- Olympiade Mathématique Belge, OMB 2004, Finale Maxi, Question 2.
- Index to sequences related to Olympiads.
- Index entries for linear recurrences with constant coefficients, signature (10).
Crossrefs
Programs
-
PARI
Vec(5*x*(1-x)/(1-10*x) + O(x^22)) \\ Elmo R. Oliveira, Jul 23 2025
-
Python
def A137233(n): return 9*10**(n-1)+1>>1 # Chai Wah Wu, Nov 11 2022
Formula
a(n) = 9*10^(n-1)/2 if n > 1. - R. J. Mathar, May 23 2008
From Elmo R. Oliveira, Jul 23 2025: (Start)
G.f.: 5*x*(1-x)/(1-10*x).
E.g.f.: (-9 + 10*x + 9*exp(10*x))/20.
a(n) = 10*a(n-1) for n > 2.
a(n) = A052268(n)/2 for n >= 2. (End)
Extensions
Corrected and extended by R. J. Mathar, May 23 2008
More terms from Elmo R. Oliveira, Jul 23 2025
Comments