OFFSET
0,4
LINKS
Irene Sermon, Table of n, a(n) for n = 0..10000
EXAMPLE
In the tribonacci sequence with initial values a(0)=a(1)=a(2)=1, the 30th term is 37895489. Its digital sum is 53.
PROG
(Sage)
L=[1, 1, 1]
n=100 #change for more terms
for i in [3..n]:
L.append(L[i-3]+L[i-2]+L[i-1])
[sum(x.digits(base=10)) for x in L] # Tom Edgar, Nov 09 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Irene Sermon, Oct 28 2013
STATUS
approved