Post Reply 
(50g) OEIS A014263: Integers with Exclusively Even Digits
08-27-2017, 11:55 PM (This post was last modified: 08-27-2017 11:56 PM by Joe Horn.)
Post: #4
RE: (50g) OEIS A014263: Integers with Even Digits
(08-27-2017 07:56 PM)Joe Horn Wrote:  If "Z5_" means BINT5, then either I made a typo or there's a bug somewhere, because all it does is return 2x for any input x. E.g. Input 153, it returns 306 (contains an odd digit; answer should be 2206).

BYTES on the compiled program returns 75 #48F7h.

(08-27-2017 10:00 PM)Eric Rechlin Wrote:  It works fine for me. I have added a compiled version to my site here:

http://www.hpcalc.org/details/8653

Aha! "Z5_" does NOT mean BINT5. It means ZINT 5, which I could only discover by downloading the copy from Eric's site and disassembling it. The built-in assembler does not know what "Z5_" means, and neither did I.

Suggestion: Use HP 50g ASM notation, and include the checksum (which is #FB66h for the above program), when posting System RPL source code. Thanks in advance!

By the way, Gerald, I really like the algorithm used here: Convert to base 5, then double that number as a base-10 number. Very cool!

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (50g) OEIS A014263: Integers with Even Digits - Joe Horn - 08-27-2017 11:55 PM



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