Wildcat
- 114
- 0
Homework Statement
All integers beginning with 1 are written down in succession. What digit is in the 1955th place?
The problem involves determining which digit appears in the 1955th position when all integers starting from 1 are written in sequence. Participants are exploring the implications of counting digits across different ranges of numbers.
Participants are actively discussing various methods to approach the problem, with some expressing uncertainty about their calculations. There is a recognition of the need to clarify the problem's constraints regarding which integers are included in the sequence.
There is mention of potential miscounts in the number of digits contributed by different ranges of integers, and some participants are reflecting on their interpretations of the problem statement, particularly regarding the inclusion of all integers versus those starting with 1.
Wildcat said:Homework Statement
All integers beginning with 1 are written down in succession. What digit is in the 1955th place?
Homework Equations
The Attempt at a Solution
I'm pretty sure it is 4 Wondered if someone wants to double check
PeterO said:I would suspect something a bit different.
Don't forget that the 4 digit numbers begin with 1000, 1001, 1002, ...
The 1st end sin 0
The 2nd ends in 1
the 3rd ends in 2
etc
Lobezno said:Mind posting your workings out? How did you arrive at this answer?
Wildcat said:I don't think I forgot them. There are 321 digits thru 199, then I need to go 1634 more places. I still come up with 4.
Lobezno said:Ahhh that's no fun. I thought there'd be some hardcore maths involved!
gneill said:There are 9 single digit numbers
There are 90 double digit numbers
There are 900 triple digit numbers
The digit with "address" 1955 will lie within the range of triple digit numbers.
The starting address of the kth three digit number in the list will be
n = <address of first 3-digit number> + (k - 1)*3
n = 1*9 + 2*90 + 1 + (I - 100)*3 .
Now, you can either find the number I by trial and error, or do something clever with 1955 to find the appropriate starting address for the number in which the 1955th digit is embedded and solve for I directly. Hint: may require integer arithmetic (or truncation or floor or ceiling operations).
Wildcat said:The original problem states that only integers that begin with 1 are written in succession, this equation would not work for this problem.