|
| |
|
|
A039723
|
|
Numbers in base -10.
|
|
10
| |
|
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 150, 151, 152, 153, 154, 155
(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
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
|
|
|
EXAMPLE
| Decimal 25 is "175" in base -10 because 100-70+5=25.
|
|
|
MATHEMATICA
| ToNegaBases[i_Integer, b_Integer] := FromDigits@ Rest@ Reverse@ Mod[ NestWhileList[(# - Mod[ #, b])/-b &, i, # != 0 &], b]
|
|
|
CROSSREFS
| Cf. A001477, A039724, A073785, A007608, A073786, A073787, A073788, A073789 & A073790.
Sequence in context: A023052 A005188 A032569 * A002998 A061276 A137667
Adjacent sequences: A039720 A039721 A039722 * A039724 A039725 A039726
|
|
|
KEYWORD
| base,easy,nonn
|
|
|
AUTHOR
| Robert Lozyniak (11(AT)onna.com)
|
| |
|
|