OFFSET
1,2
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
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
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Aug 14 2005
STATUS
approved