OFFSET
0,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,1,-1).
FORMULA
Tersum m + n : write m and n in base 3 and add mod 3 with no carries, e.g. 5 + 8 = "21" + "22" = "10" = 1.
MATHEMATICA
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {5, 3, 4, 8, 6, 7,
2, 0, 1, 14}, 80] (* Jinyuan Wang, Mar 10 2020 *)
PROG
(Python) # T(n, m) in A004489
def a(n): return T(n, 5)
print([a(n) for n in range(68)]) # Michael S. Branicky, May 03 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved