OFFSET
0,6
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 0..1000
PROG
(Sage) def first(m):
v=[0, 1, 1, 1, 1]
for i in range(5, m+1):
l=0
for s in range(1, 5+1):
l += v[i-s-v[i-s]%5]
v.append(l)
return v
(Ruby) def first(m)
v=[0, 1, 1, 1, 1]
for i in 5..m-1
i2=0
for j in 1..5
r=i-j
i2 += v[r-v[r]%5]
end
v << i2
end
v
end
CROSSREFS
KEYWORD
nonn
AUTHOR
Anders Hellström, Jun 30 2015
STATUS
approved