Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A059095
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A059095 List consisting of the representation of n in base 3 using -1,0,1 for n=1,2,3,4,... +0
3
1, 1, -1, 1, 0, 1, 1, 1, -1, -1, 1, -1, 0, 1, -1, 1, 1, 0, -1, 1, 0, 0, 1, 0, 1, 1, 1, -1, 1, 1, 0, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, 0, 1, -1, -1, 1, 1, -1, 0, -1, 1, -1, 0, 0, 1, -1, 0, 1, 1, -1, 1, -1, 1, -1, 1, 0, 1, -1, 1, 1, 1, 0, -1, -1, 1, 0, -1, 0, 1, 0, -1, 1, 1, 0, 0, -1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, -1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, -1, -1 (list; graph; listen)
OFFSET

0,1

COMMENT

Every natural number n has a unique representation as n = sum i=1 ... k e(i)*(3^i) for some k where e(i) is one of -1,0,1. Example: 25 = 27-3+1= 1*3^3+0*3^2+(-1)*3^1+1*3^0 so its representation is 1,0,-1,1. So by writing n in this base 3 representation and juxtaposing we get the sequence: (1),(1,-1),(1,0),(1,1),(1,-1,-1),...

REFERENCES

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

LINKS

Wikipedia, Balanced Ternary

FORMULA

n = Sum(a(A134421(n)-2-k)*3^k: 0<=k<A134021(n)), for n>0. - Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Oct 25 2007

CROSSREFS

A003137.

Sequence in context: A106465 A099990 A089939 this_sequence A105597 A014194 A014379

Adjacent sequences: A059092 A059093 A059094 this_sequence A059096 A059097 A059098

KEYWORD

tabf,sign

AUTHOR

Avi Peretz (njk(AT)netvision.net.il), Feb 13 2001

EXTENSIONS

More terms from Larry Reeves (larryr(AT)acm.org), Jul 20 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 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research