Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #163646
| From | Meredith Montgomery <mmontgomery@levado.to> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: ot: on a base being a power of another |
| Date | 2021-11-24 11:14 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <865yshljxk.fsf@levado.to> (permalink) |
| References | <86mtlyh6vu.fsf@levado.to> <snbv5i$eqi$1@dont-email.me> <86v90ilnl7.fsf@levado.to> <4f7fdfb1-d93a-4f87-81c2-a4f3c4919dedn@googlegroups.com> |
"james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> writes: > On Tuesday, November 23, 2021 at 1:46:14 PM UTC-5, Meredith Montgomery wrote: > ... >> Using your example, I get >> >> 210012_3 = a[5]*3^5 + a[3]*3^3 + a[1]*3^1 > > That should be 210012_3 = > 2×3^5+ 1×3^4 + 0×3^3 + 0×3^2 +1*3^+ +2×3^0 = > (2×3 + 1)×3^4 + (0×3 + 0)×3^2 + (1×3 + 2)×3^0 = > 21_3 × 3^4 + 00_3 × 3^2 + 12_3 × 3^0 = > 7×9^2 + 0×9^1 + 5×9^0 = > 705_9 > > I hope that helps you understand why conversion between a given > base and an integer power of that base is much simpler than other > Kinds of base conversions. Oh, it does. Funny --- this is what I thought it was from the start, but I totally got confused with my calculations and never collected the terms properly like you just did. That's really what I was looking for and that explains it clearly. Thank you so much!
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ot: on a base being a power of another Meredith Montgomery <mmontgomery@levado.to> - 2021-11-20 18:08 -0300
Re: ot: on a base being a power of another Ben Bacarisse <ben.usenet@bsb.me.uk> - 2021-11-20 22:22 +0000
Re: ot: on a base being a power of another Bart <bc@freeuk.com> - 2021-11-20 22:27 +0000
Re: ot: on a base being a power of another James Kuyper <jameskuyper@alumni.caltech.edu> - 2021-11-20 18:08 -0500
Re: ot: on a base being a power of another Meredith Montgomery <mmontgomery@levado.to> - 2021-11-23 15:43 -0300
Re: ot: on a base being a power of another Bart <bc@freeuk.com> - 2021-11-23 19:57 +0000
Re: ot: on a base being a power of another "james...@alumni.caltech.edu" <jameskuyper@alumni.caltech.edu> - 2021-11-23 16:53 -0800
Re: ot: on a base being a power of another Meredith Montgomery <mmontgomery@levado.to> - 2021-11-24 11:14 -0300
Re: ot: on a base being a power of another Manfred <noname@add.invalid> - 2021-11-21 05:41 +0100
csiph-web