Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A065369
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A065369 Replace 3^k with (-3)^k in ternary expansion of n. +0
10
0, 1, 2, -3, -2, -1, -6, -5, -4, 9, 10, 11, 6, 7, 8, 3, 4, 5, 18, 19, 20, 15, 16, 17, 12, 13, 14, -27, -26, -25, -30, -29, -28, -33, -32, -31, -18, -17, -16, -21, -20, -19, -24, -23, -22, -9, -8, -7, -12, -11, -10, -15, -14, -13, -54, -53, -52, -57, -56, -55, -60, -59, -58, -45, -44, -43, -48, -47, -46 (list; graph; listen)
OFFSET

0,3

COMMENT

Base 3 representation for n (in lexicographic order) converted from base -3 to base 10.

Notation: (3)[n](-3)

EXAMPLE

15 = +1(9)+2(3)+0(1) -> +1(+9)+2(-3)+0(+1) = +3 = a(15)

MATHEMATICA

f[n_Integer, b_Integer] := Block[{l = IntegerDigits[n]}, Sum[l[[ -i]]*(-b)^(i - 1), {i, 1, Length[l]}]]; a = Table[ FromDigits[ IntegerDigits[n, 3]], {n, 0, 80}]; b = {}; Do[b = Append[b, f[a[[n]], 3]], {n, 1, 80}]; b

CROSSREFS

Cf. A007089, A053985, A065367, A073785, A073791, A073792, A073793, A073794, A073795, A073796 & A073835.

Sequence in context: A081316 A079893 A113908 this_sequence A077870 A062323 A020858

Adjacent sequences: A065366 A065367 A065368 this_sequence A065370 A065371 A065372

KEYWORD

base,easy,sign

AUTHOR

Marc LeBrun (mlb(AT)well.com), Oct 31 2001

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 4 18:25 EDT 2008. Contains 140886 sequences.


AT&T Labs Research