An argument starter: which of these is the "second set of 4 digits in base 10"? (Body)

1234

2345

4567

5678

7 points · 7 comments · view on lemmy.world

7 Comments

quilan@lemmy.world · 10 pts · 1y (1 reply)

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 · 8 pts · 1y

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 · 7 pts · 1y

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.

vk6flab@lemmy.radio · 5 pts · 1y

There are 10 types of people in the world, those who understand binary and those who don't.

muntedcrocodile@lemm.ee · 3 pts · 1y

Indexing starts at 0.

thenextguy@lemmy.world · 2 pts · 1y

I've told you once.

JustAnotherKay@lemmy.world · 0 pts · 1y

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