![]() |
|
|
#1 |
|
Bronze Medalist
Jan 2004
Mumbai,India
80416 Posts |
![]() If you write the sequence of numbers one after the other in their natural order without separating them, as though one were writing a single number: 123456789101112131415... Find what digit occupies a given position, say the millionth ? I would prefer a non computer solution. Mally
|
|
|
|
|
|
#2 |
|
Jun 2007
Moscow,Russia
2058 Posts |
A part of problem 40 at http://projecteuler.net/index.php. There are 9*10^(x-1) of x-digital numbers (x>=1).First find n for which sum of length of all numbers f(n) consists of no more then n digits, less and closest to 10^6. f(n)=sum(9*x*10^(x-1),i=1..n)=1/9*(1-10^n+9*n*10^n). For n=5, f(n)=488889 -the closest value less then 10^6. Then find the ammount of 6-digits numbers, which sum of length less and closest to 10^6-f(5)=511111,The number is [511111/6]=85185. Thus, we have that all digits of all numbers in range (1..185184 (cause the 100000 is the first 6-digits number)) are included in our sequence (no more then 10^6 digits). Number of digits of 185185 which lie in sequence is equal 511111-85185*6=1. Thus, the millionth digit of sequence is the first digit of 185185- which equals 1.
Last fiddled with by VolMike on 2007-08-23 at 17:34 |
|
|
|
|
|
#3 |
|
Jun 2007
Moscow,Russia
7×19 Posts |
This problem can be solved in common case, but I suppose that symbolic result would be quite huge to be evaluated and posted there.
|
|
|
|
|
|
#4 |
|
"Ben"
Feb 2007
67028 Posts |
Here's a kinda neat way to get the solution using a similar type of sequence:
The millionth digit is given by the (1000000 - (9 * 54321))%6 th digit of the (1000000 - (9 * 54321))/6 th 6 digit number (which has already been pointed out to be 185185) or 1. The trillionth digit is given by the (1000000000000 - (9 * 10987654321))%11 th digit of the (1000000000000 - (9 * 10987654321))/11 11 digit number (which is 81919191919) or 1. In general, the Nth digit of the seqence is given by this digit: (N - (9 * S(d-1)))%d of the (N - (9 * S(d-1)))/d 'th d digit number. Where S(n) is the reverse of the original sequence (i.e. S(5) = 54321), and d is the biggest number such that (9 * S(d-1)) < N. Last fiddled with by bsquared on 2007-08-23 at 19:37 |
|
|
|
|
|
#5 |
|
"Ben"
Feb 2007
2·3·587 Posts |
Hmmm. I just tried this for N = 1e18 and it didn't work, and I know why. Apparently by "in general" I meant "in general for N < ~1e10"
my reverse sequence is built from the fact that you can count the number of digits in the original sequence like this: for N = 1e6 there are: 9 numbers with 1 digit 90 numbers with 2 digits 900 with 3, etc total digits = 9*1 + 90*2 + 900*3 ... = 9 * (1 + 10*2 + 100*3 ...) = 9 * (...321) but after 9 digit numbers this isn't true anymore. sorry for the confusion. |
|
|
|
|
|
#6 |
|
Jun 2007
Moscow,Russia
8516 Posts |
One way to get a better algorithm is simplifying 1/9*(1-10^n+9*n*10^n),or find a simpler formula for biggest positive integer n,satisfies 1/9*(1-10^n+9*n*10^n) < = t (t- position number of unknown digit). May be it is possible to calculate short formula for some special values of t=10^s (as in problem 40 at http://projecteuler.net/index.php.).
|
|
|
|
|
|
#7 | |
|
Bronze Medalist
Jan 2004
Mumbai,India
22·33·19 Posts |
Quote:
You have it right Volmike. To make it clearer, dividing by 6 we get the quotient 85,185 and the remainder 1, so the desired digit occupies the first place in the 85,186th. 6- digit number. Since the first 6- digit number is 100,000 the 85,186th is 185,185 whose first digit is 1. Thanks for the website. The next time I submit a problem I will check it and give something that is not included there! Mally
|
|
|
|
|
|
|
#8 | |
|
Jun 2007
Moscow,Russia
2058 Posts |
Quote:
Last fiddled with by VolMike on 2007-08-24 at 17:52 |
|
|
|
|
|
|
#9 | |
|
Bronze Medalist
Jan 2004
Mumbai,India
22×33×19 Posts |
Quote:
![]() You are dead right Vol. Speaking for myself yes I do. The aim is to test your knowledge and skill on important parts of Number theory and other topics by putting it in the form of a puzzle. You may be interested to know that in presenting a problem for the forum I came across an original theorem. I developed it as no one seemed to have solved it and have presented a paper for publication. I have also claimed that by it I have solved the Beal's conjecture. My paper awaits evaluation as it involves an enormous cash prize. So much for puzzles. And I may add that many if not all of the great math'cians delighted in puzzles and challenged one another with tantalising ones. Well thats how Number theory developed! Mally
|
|
|
|
|
|
|
#10 | |
|
Jun 2007
Moscow,Russia
8516 Posts |
Quote:
|
|
|
|
|
|
|
#11 |
|
Bronze Medalist
Jan 2004
Mumbai,India
22·33·19 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Digit sum of p of Mp is never 6 or 9? | noemata | Lounge | 3 | 2016-01-22 10:12 |
| How much digit in the M? | Lorenzo | Math | 17 | 2010-08-26 16:54 |
| 160 digit factor found of 366 digit (PRP-1) | AntonVrba | Factoring | 7 | 2005-12-06 22:02 |
| 10 digit prime in e | TTn | 15k Search | 15 | 2004-10-18 03:11 |
| The first digit is ... | graeme | Puzzles | 7 | 2003-09-03 04:27 |