OFFSET
0,21
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
EXAMPLE
a(23) = 2 + 3 - 2*3 = -1.
a(49) = -(4*9) + (4 + 9) = -36 + 13 = -23.
MATHEMATICA
a[n_] := (t = IntegerDigits[n]; Plus @@ t - Times @@ t); Table[ a[n], {n, 0, 75}] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
AUTHOR
Amarnath Murthy, Jun 21 2001
EXTENSIONS
Corrected and extended by Larry Reeves (larryr(AT)acm.org), Jun 22 2001
Signed version from Henry Bottomley, Jun 29 2001
STATUS
approved