1234

2345

4567

5678

  • quilan@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    3 hours ago

    I’d argue lexicographically it would be 0000 and 0001 for the first two sets of 4 digits. If you’re looking for combinations w/o replacement, it would be 0123 and 0124.

    • lemmyng@lemmy.ca
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 hours ago

      To be even more pedantic, OP has not provided sufficient information to infer the series. No specific order is defined, so 0001 could be just as likely as 8259.

  • DomeGuy@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    3 hours ago

    4567

    While 0 has no value and is often placed after 9 on keyboards, you asked about digits in a base and not numbers. This becomes clear if you describe the various bases.

    • Binary is 0-1
    • Octal is 0-7
    • Decimal is 0-9
    • Hexadecimal is 0-F

    If you sort zero at the end, you’d need to spell out the digits or label them all as 1-0, which isn’t very descriptive.

    Mind you, “zero-first ordering of digits” is not a fundamental rule, since the glyphs only have a need to be sorted when they stand for a numerical value . And if you used a phrase like “first X digits” without noting a range the omission would be a composition error.

  • JustAnotherKay@lemmy.worldOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    5 hours ago

    Actually I just realized, I picked 4 arbitrarily but this works best with 5 or more digits because then it becomes

    12345

    23456

    56789

    67890

    67891