login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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