Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117968
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117968 Negative part of inverse of A117966; write -n in balanced ternary and then replace (-1)'s with 2's. +0
5
2, 7, 6, 8, 22, 21, 23, 19, 18, 20, 25, 24, 26, 67, 66, 68, 64, 63, 65, 70, 69, 71, 58, 57, 59, 55, 54, 56, 61, 60, 62, 76, 75, 77, 73, 72, 74, 79, 78, 80, 202, 201, 203, 199, 198, 200, 205, 204, 206, 193, 192, 194, 190, 189, 191, 196, 195, 197, 211, 210, 212, 208, 207 (list; graph; listen)
OFFSET

1,1

REFERENCES

D. E. Knuth, The Art of Computer Programming. Addison-Wesley, Reading, MA, Vol. 2, pp. 173-175

LINKS

Ken Levasseur, The Balanced Ternary Number System

FORMULA

a(1) = 2, a(3n) = 3a(n), a(3n+1) = 3a(n)+2, a(3n-1) = 3a(n)+1.

EXAMPLE

-7 in balanced ternary is (-1)1(-1), changing to 212 ternary is 23, so a(7)=23.

CROSSREFS

Cf. A117966. a(n) = A004488(A117967(n)). Bisection of A140263. A140268 gives the same sequence in ternary.

Sequence in context: A158241 A156591 A138283 this_sequence A154200 A089417 A082017

Adjacent sequences: A117965 A117966 A117967 this_sequence A117969 A117970 A117971

KEYWORD

base,nonn

AUTHOR

Frank Adams-Watters (FrankTAW(AT)Netscape.net), Apr 05 2006

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 December 16 17:18 EST 2009. Contains 170825 sequences.


AT&T Labs Research