OFFSET
0,1
COMMENTS
REFERENCES
D. E. Knuth, The Art of Computer Programming, Addison-Wesley, Reading, MA, Vol 2, pp 173-175.
LINKS
R. Zumkeller, Table of n, a(n) for n = 0..10000
Eric Weisstein's World of Mathematics, Digital Root
Wikipedia, Balanced Ternary
FORMULA
EXAMPLE
42 == '+---0' --> +1-1-2-1+0=-2 == '-+' --> -1+1=0;
43 == '+---+' --> +1-1-2-1+1=-1;
CROSSREFS
KEYWORD
sign,base
AUTHOR
Reinhard Zumkeller, Oct 27 2007
STATUS
approved