A110803 n times the number of digits in the decimal expansion of n.
1, 2, 3, 4, 5, 6, 7, 8, 9, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128
Offset: 1
Examples
a(1234) = 4936 = 1234*4.
Links
- Indranil Ghosh, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A055642.
Programs
-
Mathematica
# IntegerLength[#]&/@Range[60] (* Harvey P. Dale, Mar 04 2011 *)
-
Python
def A110803(n): return n*len(str(n)) # Indranil Ghosh, Jan 11 2017
Formula
a(n) = n * A055642(n). - Indranil Ghosh, Jan 11 2017
Extensions
Corrected by T. D. Noe, Oct 25 2006