The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(49g+) OEIS A014261: Integers with Exclusively Odd Digits
08-31-2017, 10:53 AM
Post: #1
(49g+) OEIS A014261: Integers with Exclusively Odd Digits
For integer input N the programme returns the Nth element of the sequence

https://oeis.org/A014261

For the development of this programme please see

http://www.hpmuseum.org/forum/thread-8928.html

NB The description below uses the expression

eg Z1_

for ZINT 1.

The two are however NOT the same, Z1_ having 2.5 Bytes & ZINT 1 having 6 Bytes.

The size & check sum below are for the version as printed.

Code:
::
  CK1&Dispatch
  # FF
  ::
    NULL$SWAP
    BEGIN
    Z1_
    FPTR2 ^RSUBext
    Z5_
    FPTR2 ^ZDIVext
    DUP
    FPTR2 ^RADDext
    Z1_
    FPTR2 ^RADDext
    FPTR2 ^Z>S
    ROT
    &$SWAP
    DUP
    Z0_
    EQUAL
    UNTIL
    DROP
    FPTR2 ^S>Z
  ;
;

CKSUM # 85DFh

SIZE 86.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(49g+) OEIS A014261: Integers with Exclusively Odd Digits - Gerald H - 08-31-2017 10:53 AM



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