login
A275865
Floor(r*a(n-1)) - floor(r*a(n-2)), where r = 3/2, a(0) = 1, a(1) = 1.
4
1, 1, 0, -1, -2, -1, 1, 3, 3, 0, -4, -6, -3, 4, 11, 10, -1, -17, -24, -10, 21, 46, 38, -12, -75, -95, -30, 98, 192, 141, -77, -327, -375, -72, 455, 790, 503, -431, -1401, -1455, -81, 2061, 3213, 1728, -2227, -5933, -5559, 561, 9180, 12929, 5623, -10959
OFFSET
0,5
LINKS
FORMULA
a(n) = floor(3*a(n-1)/2) - floor(3*a(n-2)/2).
MATHEMATICA
r = 3/2; a[0] = 1; a[1] = 1; z = 100;
a[n_] := a[n] = Floor[r*a[n - 1]] - Floor[r*a[n - 2]];
t = Table[a[n], {n, 0, z}]
RecurrenceTable[{a[0]==a[1]==1, a[n]==Floor[(3a[n-1])/2]-Floor[ (3a[n-2])/ 2]}, a, {n, 60}] (* Harvey P. Dale, Jan 07 2020 *)
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Clark Kimberling, Aug 12 2016
STATUS
approved