OFFSET
0,2
LINKS
Harry J. Smith, Table of n, a(n) for n = 0..1000
EXAMPLE
The 7th row in Pascal's triangle is 1, 7, 21, 35, 35, 21, 7, 1 and the sum of the digits is 38 hence a(7) = 38.
MATHEMATICA
f[n_] := Block[{m = s = 0}, While[m < n + 1, s = s + Apply[ Plus, IntegerDigits[ Binomial[n, m]]]; m++ ]; Return[s]]; Table[ f[n], {n, 0, 50}]
PROG
(PARI) a(n)={vecsum([sumdigits(x) | x<-binomial(n)])} \\ Harry J. Smith, Mar 08 2010
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Dec 22 2001
EXTENSIONS
Corrected and extended by Robert G. Wilson v, Dec 28 2001
Offset changed from 1 to 0 by Harry J. Smith, Mar 08 2010
STATUS
approved