OFFSET
1,7
COMMENTS
a(n-1) <= a(n) for n <= 64, but a(65)-a(64) = 32-35 < 0; first positions m where a(m) > a(m+1): 64, 79, 84, 99, 105, 106, 110, 125, 126, ... . - Reinhard Zumkeller, Jun 13 2013
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
MATHEMATICA
a[1] = 1; a[2] = 1; a[3] = 1; a[4] = 1; a[5] = 1; a[6] = 1;
a[n_] := a[n] = a[a[a[n - 1]]] + a[n - a[a[-3 + n]]]
Table[a[n], {n, 1, 300}]
PROG
(Haskell)
a185137 n = a185137_list !! (n-1)
a185137_list = 1 : 1 : 1 : 1 : 1 : 1 : f 7 1 1 where
f x u v = w : f (x + 1) v w where
w = (a185137 . a185137 . a185137) (x - 1) +
a185137 (x - (a185137 . a185137) (x - 3))
-- Reinhard Zumkeller, Jun 13 2013
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Roger L. Bagula, Mar 12 2012
STATUS
approved