The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A073787 Numbers in base -6. 11
 0, 1, 2, 3, 4, 5, 150, 151, 152, 153, 154, 155, 140, 141, 142, 143, 144, 145, 130, 131, 132, 133, 134, 135, 120, 121, 122, 123, 124, 125, 110, 111, 112, 113, 114, 115, 100, 101, 102, 103, 104, 105, 250, 251, 252, 253, 254, 255, 240, 241, 242, 243, 244, 245 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 REFERENCES D. E. Knuth, The Art of Computer Programming. Addison-Wesley, Reading, MA, 1969, Vol. 2, p. 189. LINKS Chai Wah Wu, Table of n, a(n) for n = 0..10000 Eric Weisstein's World of Mathematics, Negabinary Prepared and presented by Matthew Szudzik of Wolfram Research, A Mathematica programming contest MATHEMATICA ToNegaBases[i_Integer, b_Integer] := FromDigits[ Rest[ Reverse[ Mod[ NestWhileList[(#1 - Mod[ #1, b])/-b &, i, #1 != 0 &], b]]]]; Table[ ToNegaBases[n, 6], {n, 0, 60}] PROG (Python) def A073787(n):     s, q = '', n     while q >= 6 or q < 0:         q, r = divmod(q, -6)         if r < 0:             q += 1             r += 6         s += str(r)     return int(str(q)+s[::-1]) # Chai Wah Wu, Apr 09 2016 CROSSREFS Cf. A007092, A039724, A073785, A007608, A073786, A073788, A073789, A073790 & A039723. Sequence in context: A004867 A318842 A298671 * A274028 A037436 A115900 Adjacent sequences:  A073784 A073785 A073786 * A073788 A073789 A073790 KEYWORD base,easy,nonn AUTHOR Robert G. Wilson v, Aug 11 2002 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.

Last modified April 10 19:06 EDT 2021. Contains 342853 sequences. (Running on oeis4.)