login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 5000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A004493 Tersum n + 4. 0
4, 5, 3, 7, 8, 6, 1, 2, 0, 13, 14, 12, 16, 17, 15, 10, 11, 9, 22, 23, 21, 25, 26, 24, 19, 20, 18, 31, 32, 30, 34, 35, 33, 28, 29, 27, 40, 41, 39, 43, 44, 42, 37, 38, 36, 49, 50, 48, 52, 53, 51, 46, 47, 45, 58, 59, 57, 61 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

Table of n, a(n) for n=0..57.

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)= -9 + Sum_{k=0..n}{(1/36)*(-59*(k mod 9)+13*((k+1) mod 9)-23*((k+2) mod 9)+13*((k+3) mod 9)+13*((k+4) mod 9)+13*((k+5) mod 9)-23*((k+6) mod 9)+13*((k+7) mod 9)+49*((k+8) mod 9)},with n>=0 - Paolo P. Lava, Dec 03 2007

CROSSREFS

Sequence in context: A196402 A268741 A263031 * A170929 A245085 A019836

Adjacent sequences:  A004490 A004491 A004492 * A004494 A004495 A004496

KEYWORD

nonn

AUTHOR

N. J. A. Sloane.

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified December 5 15:24 EST 2016. Contains 278770 sequences.