HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
08-30-2017, 10:53 AM
Post: #19
 Didier Lachieze Senior Member Posts: 1,641 Joined: Dec 2013
RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
(08-30-2017 09:06 AM)pier4r Wrote:  - the other idea is to get the Nth number, convert it in base 5. And then substitute the digits (having the number seen as string) with a mapping. So for example:
13th number, in base 5 it is 23, substitute 2 with 3 (2nd element in the list) and 3 with 5 (5th element in the list). So I get 35. (as you can see, it is like string processing)

I had initially the same idea but failed to implement it, for example the 24th number is 77, 24 in base 5 is 44 so you can easily convert it to 77, however if you look at the next one, the 25th should be 79 but 25 in base 5 is 100 and you start to have issues to convert that to 79…
 « Next Oldest | Next Newest »

 Messages In This Thread HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-28-2017, 02:21 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 08-28-2017, 04:21 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Claudio L. - 08-28-2017, 10:07 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-29-2017, 05:44 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 08-29-2017, 07:36 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Tugdual - 08-29-2017, 08:06 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 08-29-2017, 10:48 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-29-2017, 09:23 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - John Keith - 08-29-2017, 01:07 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 08-29-2017, 07:08 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Didier Lachieze - 08-29-2017, 04:02 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-29-2017, 04:29 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gilles59 - 08-29-2017, 09:14 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Joe Horn - 08-30-2017, 01:19 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Brad Barton - 08-31-2017, 12:49 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Didier Lachieze - 09-01-2017, 07:48 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 09-01-2017, 08:11 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Brad Barton - 09-01-2017, 02:55 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Didier Lachieze - 09-02-2017, 06:51 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-29-2017, 05:55 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Claudio L. - 08-29-2017, 08:28 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Claudio L. - 08-29-2017, 09:56 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 08-30-2017, 09:06 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Didier Lachieze - 08-30-2017 10:53 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 08-30-2017, 10:59 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Werner - 08-30-2017, 12:20 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-30-2017, 01:02 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Claudio L. - 08-30-2017, 02:08 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-31-2017, 10:57 AM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Claudio L. - 08-30-2017, 01:39 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Werner - 08-30-2017, 02:06 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-30-2017, 03:30 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - pier4r - 08-31-2017, 09:32 PM RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - David Hayden - 09-01-2017, 09:12 PM

User(s) browsing this thread: 1 Guest(s)