login
A110805
Sum of digits of n times number of digits of n.
5
1, 2, 3, 4, 5, 6, 7, 8, 9, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30
OFFSET
1,2
LINKS
EXAMPLE
a(19) = 2 * (1 + 9) = 20.
a(1235) = 4 * (1 + 2 + 3 + 5) = 44.
MATHEMATICA
Table[IntegerLength[n] * Total[IntegerDigits[n]], {n, 50}] (* Harvey P. Dale, Jul 31 2012 *)
PROG
(PARI) a(n) = sumdigits(n) * #digits(n); \\ Michel Marcus, Feb 24 2017
CROSSREFS
Sequence in context: A125959 A043269 A122481 * A356234 A284255 A284253
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Aug 14 2005
STATUS
approved