login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A073789 Numbers in base -8. 9
0, 1, 2, 3, 4, 5, 6, 7, 170, 171, 172, 173, 174, 175, 176, 177, 160, 161, 162, 163, 164, 165, 166, 167, 150, 151, 152, 153, 154, 155, 156, 157, 140, 141, 142, 143, 144, 145, 146, 147, 130, 131, 132, 133, 134, 135, 136, 137, 120, 121, 122, 123, 124, 125, 126 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

REFERENCES

D. E. Knuth, The Art of Computer Programming. Addison-Wesley, Reading, MA, 1969, Vol. 2, p. 189.

LINKS

Eric Weisstein's World of Mathematics, Link to a section of The World of Mathematics

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, 8], {n, 0, 60}]

CROSSREFS

Cf. A007094, A039724, A073785, A007608, A073786, A073787, A073788, A073790 & A039723.

Sequence in context: A115916 A065667 A099146 * A004880 A065666 A141769

Adjacent sequences:  A073786 A073787 A073788 * A073790 A073791 A073792

KEYWORD

base,easy,nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 11 2002

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 21:51 EST 2012. Contains 205978 sequences.