login
A372984
a(n) = floor((a(n-1)+a(n-2)+n)/(a(n-3)+1)), with a(1)=1, a(2)=3, a(3)=4.
3
1, 3, 4, 5, 3, 2, 2, 3, 4, 5, 5, 4, 3, 3, 4, 5, 6, 5, 5, 4, 5, 5, 6, 5, 6, 5, 6, 5, 6, 5, 7, 6, 7, 5, 6, 5, 8, 7, 9, 6, 7, 5, 7, 7, 9, 7, 7, 6, 7, 7, 9, 8, 8, 7, 7, 7, 8, 9, 9, 8, 7, 7, 8, 9, 10, 9, 8, 7, 8, 9, 11, 10, 9, 7, 8, 9, 11, 10, 10, 8, 9, 9, 11, 10
OFFSET
1,2
MATHEMATICA
a[1] = 1; a[2] = 3; a[3] = 4;
a[n_] := a[n] = Floor[(a[n - 1] + a[n - 2] + n)/(a[n - 3] + 1)];
Table[a[n], {n, 1, 100}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jul 09 2024
STATUS
approved