Re: Finding the position of the number
- From: "Atrus" <atrus6@xxxxxxxxx>
- Date: 31 May 2006 10:29:40 -0700
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.
.
- References:
- Finding the position of the number
- From: Atrus
- Re: Finding the position of the number
- From: Pubkeybreaker
- Re: Finding the position of the number
- From: quasi
- Re: Finding the position of the number
- From: quasi
- Finding the position of the number
- Prev by Date: Re: (nondirected) Colimit in the category of rings
- Next by Date: Re: Pythagoras for right tetrahedrons
- Previous by thread: Re: Finding the position of the number
- Next by thread: Re: Finding the position of the number
- Index(es):