Post Reply 
(50g) OEIS A030302: Binary Champernowne Constant
07-21-2017, 03:16 PM
Post: #2
RE: (50g) OEIS A030302: Binary Champernowne Constant
If you're doubtful about the values returned by the programme above please compare with the programme below which for integer input N returns the first N digits of the binary Champernowne constant as an integer.

Code:

::
  CK1&Dispatch
  BINT1
  ::
    FPTR2 ^PUSHFLAGS_
    DOBIN
    COERCE
    NULL$
    OVER
    #1+_ONE_DO
    INDEX@
    DO>STR
    BINT3
    OVERLEN$
    #1-SUB$
    &$
    DUPLEN$
    3PICK
    #>=_  That's PTR 3747D
    IT
    ExitAtLOOP
    LOOP
    BINT1
    ROT
    SUB$
    FPTR2 ^POPFLAGS_
    FPTR2 ^S>Z
  ;
;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (50g) OEIS A030302: Binary Champernowne Constant - Gerald H - 07-21-2017 03:16 PM



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