STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
print (l[1:] ) # Indranil Ghosh, Jul 01 2017
approved
editing
for n in xrangerange(4, 101): l+=[l[n - l[n - 1]] + l[n - l[n - 3] - 1], ]
proposed
approved
editing
proposed
(Python)
l=[0, 2, 2, 2]
for n in xrange(4, 101): l+=[l[n - l[n - 1]] + l[n - l[n - 3] - 1], ]
print l[1:] # Indranil Ghosh, Jul 01 2017
proposed
editing
editing
proposed
a[n_] := a[n] = If[n <= 3, 2, a[n - a[n - 1]] + a[n - a[n - 3] - 1]]; Array[a, 82] (* Michael De Vlieger, Jun 30 2017 *)
proposed
editing