Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » sci.math.* » sci.math.independent

Topic: JS coding
Replies: 27   Last Post: Feb 24, 2013 6:17 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
JT

Posts: 1,042
Registered: 4/7/12
Re: JS coding
Posted: Feb 3, 2013 9:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 3 Feb, 10:57, JT <jonas.thornv...@gmail.com> wrote:
> On 3 Feb, 10:54, JT <jonas.thornv...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>

> > When i programmed this many years ago i thought it was easy to
> > reencode the numerals.

>
> > 1=1
> > 2=2
> > 3=3
> > 4=11 3+1
> > 5=12 3+2
> > 6=13 3+3
> > 7=21 6+1
> > 8=22 6+2
> > 9=23 6+3
> > 10=31 9+1
> > 11=32 9+2
> > 12=33 9+3
> > 13=111 9+3+1
> > 14=112 9+3+2
> > 15=113 9+3+2
> > 16=121 9+6+1
> > 17=122 9+6+2
> > 18=123 9+6+3
> > 19=131 9+9+1
> > 20=132 9+9+2
> > 21=133 9+9+3

>
> > It probably still is but i am to tired well maybe i give a go tomorrow.
>
> I do not want a counter, i want a general solution to re encode any
> decimal number where anybase(decimal,base) {}
> This is probably why people save code instead of posting it to
> usenet ;D


It looks i must use a counter to reencode, or?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.