The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A004496 Tersum n + 7. 0
 7, 8, 6, 1, 2, 0, 4, 5, 3, 16, 17, 15, 10, 11, 9, 13, 14, 12, 25, 26, 24, 19, 20, 18, 22, 23, 21, 34, 35, 33, 28, 29, 27, 31, 32, 30, 43, 44, 42, 37, 38, 36, 40, 41, 39, 52, 53, 51, 46, 47, 45, 49, 50, 48, 61, 62, 60, 55 (list; graph; refs; listen; history; text; internal format)
 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. a(n)= -6 + Sum_{k=0..n} (1/36)*(-59*(k mod 9) + 13*((k+1) mod 9) + 13*((k+2) mod 9) - 23*((k+3) mod 9) + 13*((k+4) mod 9) - 23*((k+5) mod 9) + 13*((k+6) mod 9) + 13*((k+7) mod 9) + 49*((k+8) mod 9)), with n>=0. - Paolo P. Lava, Dec 03 2007 MATHEMATICA LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {7, 8, 6, 1, 2, 0, 4, 5, 3, 16}, 80] (* Jinyuan Wang, Mar 10 2020 *) CROSSREFS Sequence in context: A117239 A198365 A262898 * A197762 A181624 A277683 Adjacent sequences:  A004493 A004494 A004495 * A004497 A004498 A004499 KEYWORD nonn,easy AUTHOR STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified January 26 02:39 EST 2022. Contains 350572 sequences. (Running on oeis4.)