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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A004494 Tersum n + 5. 0
5, 3, 4, 8, 6, 7, 2, 0, 1, 14, 12, 13, 17, 15, 16, 11, 9, 10, 23, 21, 22, 26, 24, 25, 20, 18, 19, 32, 30, 31, 35, 33, 34, 29, 27, 28, 41, 39, 40, 44, 42, 43, 38, 36, 37, 50, 48, 49, 53, 51, 52, 47, 45, 46, 59, 57, 58, 62 (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)= -8 + Sum_{k=0..n}{(1/36)*(-47*(k mod 9)-11*((k+1) mod 9)-11*((k+2) mod 9)+25*((k+3) mod 9)-11*((k+4) mod 9)+25*((k+5) mod 9)-11*((k+6) mod 9)-11*((k+7) mod 9)+61*((k+8) mod 9)},with n>=0 - Paolo P. Lava, Dec 03 2007

CROSSREFS

Sequence in context: A104183 A198563 A111889 * A193090 A004162 A319053

Adjacent sequences:  A004491 A004492 A004493 * A004495 A004496 A004497

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 26 19:44 EDT 2019. Contains 323597 sequences. (Running on oeis4.)