OFFSET
0,3
FORMULA
See the name.
EXAMPLE
a(9) = a(8) + a(7)
= a(7) + a(6) + 7
= a(5) + a(4) + 14
= a(3) + a(2) + 19
= 24
MATHEMATICA
a[0] = 0; a[1] = 1; a[n_] := a[n] = If[PrimeQ@ n, n, a[n - 1] + a[n - 2]]; Table[a@ n, {n, 0, 56}] (* Michael De Vlieger, Dec 15 2015 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Nicholas Drozd, Dec 15 2015
EXTENSIONS
More terms from Michael De Vlieger, Dec 15 2015
STATUS
approved