Re: Finding the position of the number



Well, yes, it was a clueless question, but I was in a hurry and didn't
have time to explain everything, So...

I have a large set of numbers, all in sequential order.
I wanted a formula that would return the position of the number if they
we all smushed together. For example if I had the set of 5 numbers,
23, 24, 25, 26, and 27, they would be put together as the number
2324252627.

if I wanted the number 24 (in that set) then I would have some formula
return the number 2.

And yes, I want a formula.

And I think I have one, so I have answered my question, but I did like
you answers, you did the best you could for my bad question. My fault.

Here is my solution, for um examiniation?

X = ( 10^(n-(n-1)) *1) + (10^(n-(n-2)) *2).....(until n-(n-v) = 0) + (
X - 10^(n-1) *n).

where n = number of digits a number takes up (if X = 11 then n = 2).

Pretty sure it works, later when I have time I test it a bit more.

.


Quantcast