login

Revision History for A039723

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Numbers in base -10.
(history; published version)
#26 by Peter Luschny at Sun Oct 21 13:41:32 EDT 2018
STATUS

reviewed

approved

#25 by Joerg Arndt at Sun Oct 21 11:51:44 EDT 2018
STATUS

proposed

reviewed

#24 by Jianing Song at Sun Oct 21 10:55:09 EDT 2018
STATUS

editing

proposed

Discussion
Sun Oct 21
11:51
Joerg Arndt: Thanks!
#23 by Jianing Song at Sun Oct 21 10:48:56 EDT 2018
EXAMPLE

Decimal 25 is "185" in base -10 because 100 - 80 + 5 = 25.

PROG

(PARI) A039723 = base(n, b=-10) = if(n, base(n\b, b)*10 + n%b, 0) \\ M. F. Hasler, Oct 16 2018 [Corrected by Jianing Song, Oct 21 2018]

CROSSREFS

Cf. A001477, Nonnegative numbers in negative bases: this sequence (b=-10), A039724, (b=-2), A073785, (b=-3), A007608, (b=-4), A073786, (b=-5), A073787, (b=-6), A073788, (b=-7), A073789 & (b=-8), A073790 (b=-9).

Discussion
Sun Oct 21
10:52
Jianing Song: fixed the program for n = 0
#22 by Jianing Song at Sun Oct 21 10:46:07 EDT 2018
PROG

(PARI) A039723 = base(n, b=-10) = if(n, base(n\b, b)*10+n%b, 0) \\ M. F. Hasler, Oct 16 2018 [Corrected by _Jianing Song_, Oct 21 2018]

STATUS

approved

editing

#21 by Peter Luschny at Thu Oct 18 03:14:56 EDT 2018
STATUS

reviewed

approved

#20 by Michael B. Porter at Thu Oct 18 00:36:36 EDT 2018
STATUS

proposed

reviewed

#19 by M. F. Hasler at Tue Oct 16 10:28:16 EDT 2018
STATUS

editing

proposed

#18 by M. F. Hasler at Tue Oct 16 10:27:57 EDT 2018
CROSSREFS

Cf. A305238: negative numbers in base -10.

#17 by M. F. Hasler at Tue Oct 16 10:12:10 EDT 2018
PROG

(PARI) A039723=base(n, b=-10)=if(n, base(n\b, b)*10+n%b) \\ M. F. Hasler, Oct 16 2018

STATUS

approved

editing