(49G) OEIS A084545: Counting Base 5 without Zero - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (49G) OEIS A084545: Counting Base 5 without Zero (/thread-8947.html) |
(49G) OEIS A084545: Counting Base 5 without Zero - Gerald H - 08-31-2017 03:07 PM For integer input N the programme returns the Nth element of the sequence https://oeis.org/A084545 NB The description below uses the expression eg Z4_ for ZINT 4. The two are however NOT the same, Z4_ having 2.5 Bytes & ZINT 4 having 6 Bytes. The size & check sum below are for the version as printed. Code: :: RE: (49G) OEIS A084545: Counting Base 5 without Zero - Gerald H - 09-01-2017 03:57 PM A faster version of the programme: Code: :: RE: (49G) OEIS A084545: Counting Base 5 without Zero - Joe Horn - 09-01-2017 11:09 PM If you use the standard HP extable library and 50g's built-in assembler, you can use Gerald's source code if you add the following lines to the very beginning: Code: EQU Z1_ 273B6 RE: (49G) OEIS A084545: Counting Base 5 without Zero - Gerald H - 09-03-2017 02:43 PM But this programme is much faster & smaller: Size: 110.5 CkSum: # 6A43h Code: :: RE: (49G) OEIS A084545: Counting Base 5 without Zero - Eric Rechlin - 09-04-2017 07:16 PM With that last version, I get 111.5 bytes and #DF96h, and it just hangs when I run it. RE: (49G) OEIS A084545: Counting Base 5 without Zero - Gerald H - 09-04-2017 08:22 PM I have copied the published programme & compiled on 50g, programme works correctly & size 110.5 & Cksum 6A43 as published above. Has anyone besides Eric had problems? RE: (49G) OEIS A084545: Counting Base 5 without Zero - Joe Horn - 09-04-2017 09:40 PM (09-04-2017 08:22 PM)Gerald H Wrote: I have copied the published programme & compiled on 50g, programme works correctly & size 110.5 & Cksum 6A43 as published above. It runs fine on mine, and yields the size & checksum you cited. (It fails with inputs < -4 but that might be expected). RE: (49G) OEIS A084545: Counting Base 5 without Zero - Eric Rechlin - 09-05-2017 01:08 AM I take back what I said. This is a bug in Jazz. See my explanation on the other thread: http://www.hpmuseum.org/forum/thread-8939-post-78579.html#pid78579 |