1
   

Geometric series headache.

 
 
ZZM
 
Reply Sat 5 Feb, 2005 12:45 am
Hi. I am a member of another forum involved with a game I play. Recently a challenge was set to do the most possible damage without being infinite. I came up with a good answer but I lack the maths knowledge to actually specify the end result of my solution so I'm asking for any help that you can give.

The situation can be characterised as population-growth. Where x is the number in play now, the next step will create 4x-3 new members. Initially there are a small number of steps (11).

I have managed to work out that every step creates five times as many new members as created in the previous step, and also that the total population is approximately 1.25 times the number created in the last step. Therefore after 11 steps there are approx 1.25(x*5^11) members where x is the starting number.

The probelm is that when I run out of steps there is a trick which allows me to repeat the loop another 2n times where n is the number of members in the group at that point.

This trick can be used a few times but not indefinately so it isn't infinite, but as an example I had to work out what 5^(7.94*10^17) was at a very early stage. This was beyond me or my computer...

Does anyone recognise this style of problem? Any help would be very much appreciated.
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 1,476 • Replies: 18
No top replies

 
markr
 
  1  
Reply Sat 5 Feb, 2005 02:41 am
What exactly are you after?

Let F(i, s) be the population after s steps with an initial population of i

Are you trying to calculate F(F(i, s), 2*F(i, s))?

As the numbers get large, F(i, s) is essentially i*5^s. However, this is too high for small numbers.

If you're after the size of the number and not the exact number, I would use a spreadsheet to calculate the population after 11 steps (call this N). The final population (after 2N more steps) will approximately equal
N*5^(2N) = N*10^(1.4N)

which has approximately
1.4N+1+log(N) digits

So, if you start with a population of 2, after 11 steps, you have N=61035157. After 2N more steps, you have a number that consists of approximately 85449228 digits.
0 Replies
 
ZZM
 
  1  
Reply Sat 5 Feb, 2005 03:34 am
That's interesting. I didn't know that way of approximating the number of digits.

What I'm after I suppose is if there is a way to define the end result in any way at all (preferably a way a layperson would understand). I appreciate the size of the number makes it difficult to even write down if I did know it.

I have got as far as a point where the population is 3.97*10^17. I now have 7.94*10^17 steps.

If we define x as 3.97*10^17 I can say at the end of those steps I have a population of 1.25(x*5^2x). And now I get to repeat it twice that many times. Gulp. I can say 1.5625(x*5^2x)*5^(2.5(x*5^2x)) but that isn't terrifically useful.


I did have an idea logarithms would help but my understanding of the applications of e is very shaky.
0 Replies
 
markr
 
  1  
Reply Sat 5 Feb, 2005 12:37 pm
The log in formula is common log (base 10) not natural log (ln, which is base e).

Where are you getting the 1.25 from? You must be starting with 2.

I've taken a closer look. Here's the formula:
F(i, s) = (i - 0.75) * (5^s) + 0.75

I think it is exact.

Also, 5^x = 10^(log(5)*x)
Again, that's common log (approximately 0.69897)

I hope this helps.
0 Replies
 
ZZM
 
  1  
Reply Sat 5 Feb, 2005 07:10 pm
Yes that's helpful thankyou.

The 1.25 is from the fact that, if x are created at step s, x/5 must have been made in step s-1, x/25 in step s-2 and so on. That is just from knowing that each step adds 5 times as many to the sum as the step before, which is something I simply observed occuring.

So x*1.25 is the sum or the total population at step s. It is actually a number that tends towards 1.25 as far as I can ascertain. 1 + 0.2 + 0.04 + 0.008 + 0.0016 etc.

Anyway, with 5^x, I can translate it into scientific notation the way you showed. That is very useful for making it a little more accessible.

Cheers.
0 Replies
 
satt fs
 
  1  
Reply Sat 5 Feb, 2005 08:11 pm
For example, y=5^s is as follows..
(n-th step signifies n= s+1, s =0, ...,19 )
Code:
1-st step.. 1 digits :5
2-th step.. 2 digits :25
3-th step.. 3 digits :125
4-th step.. 3 digits :625
5-th step.. 4 digits :3125
6-th step.. 5 digits :15625
7-th step.. 5 digits :78125
8-th step.. 6 digits :390625
9-th step.. 7 digits :1953125
10-th step.. 7 digits :9765625
11-th step.. 8 digits :48828125
12-th step.. 9 digits :244140625
13-th step.. 10 digits :1220703125
14-th step.. 10 digits :6103515625
15-th step.. 11 digits :30517578125
16-th step.. 12 digits :152587890625
17-th step.. 12 digits :762939453125
18-th step.. 13 digits :3814697265625
19-th step.. 14 digits :19073486328125
20-th step.. 14 digits :95367431640625
21-th step.. 15 digits :476837158203125
22-th step.. 16 digits :2384185791015625
23-th step.. 17 digits :11920928955078125
24-th step.. 17 digits :59604644775390625
25-th step.. 18 digits :298023223876953125
26-th step.. 19 digits :1490116119384765625
27-th step.. 19 digits :7450580596923828125
28-th step.. 20 digits :37252902984619140625
29-th step.. 21 digits :186264514923095703125
30-th step.. 21 digits :931322574615478515625
31-th step.. 22 digits :4656612873077392578125
32-th step.. 23 digits :23283064365386962890625
33-th step.. 24 digits :116415321826934814453125
34-th step.. 24 digits :582076609134674072265625
35-th step.. 25 digits :2910383045673370361328125
36-th step.. 26 digits :14551915228366851806640625
37-th step.. 26 digits :72759576141834259033203125
38-th step.. 27 digits :363797880709171295166015625
39-th step.. 28 digits :1818989403545856475830078125
40-th step.. 28 digits :9094947017729282379150390625
41-th step.. 29 digits :45474735088646411895751953125
42-th step.. 30 digits :227373675443232059478759765625
43-th step.. 31 digits :1136868377216160297393798828125
44-th step.. 31 digits :5684341886080801486968994140625
45-th step.. 32 digits :28421709430404007434844970703125
46-th step.. 33 digits :142108547152020037174224853515625
47-th step.. 33 digits :710542735760100185871124267578125
48-th step.. 34 digits :3552713678800500929355621337890625
49-th step.. 35 digits :17763568394002504646778106689453125
50-th step.. 35 digits :88817841970012523233890533447265625
51-th step.. 36 digits :444089209850062616169452667236328125
52-th step.. 37 digits :2220446049250313080847263336181640625
53-th step.. 38 digits :11102230246251565404236316680908203125
54-th step.. 38 digits :55511151231257827021181583404541015625
55-th step.. 39 digits :277555756156289135105907917022705078125
56-th step.. 40 digits :1387778780781445675529539585113525390625
57-th step.. 40 digits :6938893903907228377647697925567626953125
58-th step.. 41 digits :34694469519536141888238489627838134765625
59-th step.. 42 digits :173472347597680709441192448139190673828125
60-th step.. 42 digits :867361737988403547205962240695953369140625
61-th step.. 43 digits :4336808689942017736029811203479766845703125
62-th step.. 44 digits :21684043449710088680149056017398834228515625
63-th step.. 45 digits :108420217248550443400745280086994171142578125
64-th step.. 45 digits :542101086242752217003726400434970855712890625
65-th step.. 46 digits :2710505431213761085018632002174854278564453125
66-th step.. 47 digits :13552527156068805425093160010874271392822265625
67-th step.. 47 digits :67762635780344027125465800054371356964111328125
68-th step.. 48 digits :338813178901720135627329000271856784820556640625
69-th step.. 49 digits :1694065894508600678136645001359283924102783203125
70-th step.. 49 digits :8470329472543003390683225006796419620513916015625
71-th step.. 50 digits :42351647362715016953416125033982098102569580078125
72-th step.. 51 digits :211758236813575084767080625169910490512847900390625
73-th step.. 52 digits :1058791184067875423835403125849552452564239501953125
74-th step.. 52 digits :5293955920339377119177015629247762262821197509765625
75-th step.. 53 digits :26469779601696885595885078146238811314105987548828125
76-th step.. 54 digits :132348898008484427979425390731194056570529937744140625
77-th step.. 54 digits :661744490042422139897126953655970282852649688720703125
78-th step.. 55 digits :3308722450212110699485634768279851414263248443603515625
79-th step.. 56 digits :16543612251060553497428173841399257071316242218017578125
80-th step.. 56 digits :82718061255302767487140869206996285356581211090087890625
81-th step.. 57 digits :413590306276513837435704346034981426782906055450439453125
82-th step.. 58 digits :2067951531382569187178521730174907133914530277252197265625
83-th step.. 59 digits :10339757656912845935892608650874535669572651386260986328125
84-th step.. 59 digits :51698788284564229679463043254372678347863256931304931640625
85-th step.. 60 digits :258493941422821148397315216271863391739316284656524658203125
86-th step.. 61 digits :1292469707114105741986576081359316958696581423282623291015625
87-th step.. 61 digits :6462348535570528709932880406796584793482907116413116455078125
88-th step.. 62 digits :32311742677852643549664402033982923967414535582065582275390625
89-th step.. 63 digits :161558713389263217748322010169914619837072677910327911376953125
90-th step.. 63 digits :807793566946316088741610050849573099185363389551639556884765625
91-th step.. 64 digits :4038967834731580443708050254247865495926816947758197784423828125
92-th step.. 65 digits :20194839173657902218540251271239327479634084738790988922119140625
93-th step.. 66 digits :100974195868289511092701256356196637398170423693954944610595703125
94-th step.. 66 digits :504870979341447555463506281780983186990852118469774723052978515625
95-th step.. 67 digits :2524354896707237777317531408904915934954260592348873615264892578125
96-th step.. 68 digits :12621774483536188886587657044524579674771302961744368076324462890625
97-th step.. 68 digits :63108872417680944432938285222622898373856514808721840381622314453125
98-th step.. 69 digits :315544362088404722164691426113114491869282574043609201908111572265625
99-th step.. 70 digits :1577721810442023610823457130565572459346412870218046009540557861328125
100-th step.. 70 digits :7888609052210118054117285652827862296732064351090230047702789306640625
0 Replies
 
satt fs
 
  1  
Reply Sun 6 Feb, 2005 01:41 am
You can examine with "log", but exact numbers are available for more..
0 Replies
 
markr
 
  1  
Reply Sun 6 Feb, 2005 11:26 am
That's nice for "small" numbers. But what about 5^(10^17) as ZZM mentioned in a post? Even if you can compute each digit in only 1 nanosecond, you'll be at it for over two years.

And, if you wanted to print the number in a small font (say 1/20" x 1/20") it would cover (no margins) both sides of over 9*10^11 sheets of paper. That's a stack of paper about 59,000 miles high!
0 Replies
 
satt fs
 
  1  
Reply Sun 6 Feb, 2005 03:47 pm
You can use logarithm, of course.

If you think about 5^(10^17), then take the common logarithm, i.e.
Code:
log (5^(10^17))
= 10^17 * log(5)
= 69897000433601874.6471.

And hence 5^(10^17) is the number of 69,897,000,433,601,875 digits.
0 Replies
 
markr
 
  1  
Reply Mon 7 Feb, 2005 12:10 am
I meant exact numbers.
0 Replies
 
satt fs
 
  1  
Reply Mon 7 Feb, 2005 12:14 am
markr wrote:
I meant exact numbers.

Impossible on a usual computer currently available.
0 Replies
 
ZZM
 
  1  
Reply Mon 7 Feb, 2005 02:09 am
Cheers for the tips both of you.

Markr - the point made about the stack of paper miles high is well made. I've tried to think about how to apply what you told me about logs to the rest of the progression but truthfully I think I'll just accept it's an extremely large number.

You see the point where I have a population of 3.97*10^17 is a very early stage. If we call that a, I now get to perform the basic step within this stage 2a times.

The population at the end of that can be b, and it is ~ 1.25(a*5^2a).

Then again, c = 1.25(b*5^2b)

Then a larger stage where I get 8c-6 steps instead of just 2c.
So d = 1.25(c*5^(8c-6)).

Again e = 1.25(d*5^(8d-6))

And f = 1.25(e*(5^(8e-6)).

That completes one grand cycle and there are 5 more. It just so happens that the remaining 5 have the same stages as above, but twice as many times each.

Something else I left out earlier for simplicity's sake was at the end of each grand cycle I square the population and add that many new members before beginning the next.

I'm not kidding - I knew it was astronomical but I was hoping perhaps there was a way to approximate the size of the end result. Now though I am happy to just accept it as being huge. Before we get a tiny bit along the first cycle there are less protons in the universe, I've heard! (Though I can't make any claims about the truth of that.)

Thanks very much for your help though. I am glad to know about the tricks with log.
0 Replies
 
markr
 
  1  
Reply Mon 7 Feb, 2005 09:53 am
satt_fs wrote:
markr wrote:
I meant exact numbers.

Impossible on a usual computer currently available.
My point exactly.
0 Replies
 
Vengoropatubus
 
  1  
Reply Mon 7 Feb, 2005 07:20 pm
Isn't this essentially a problem of the limit of f(x) as x approaches infinity where f(x)=ab^x (because it's geometric) and b is greater than 1 (because it's increasing). I'm not seeing any other factors that would limit the growth so wouldn't the population just increase without bound?
0 Replies
 
satt fs
 
  1  
Reply Mon 7 Feb, 2005 07:31 pm
Vengoropatubus wrote:
.. b is greater than 1

If b is greater than 1, the function f(x) diverges as x tends to infinity, while it converges to zero if b is less than 1. If b is unity, the value remains constant.
0 Replies
 
Vengoropatubus
 
  1  
Reply Mon 7 Feb, 2005 08:35 pm
Are you suggesting that b be complex? I don't really see how that would change anything... but I haven't thought about it much. And can't be 1 because then it would stay the same.
0 Replies
 
satt fs
 
  1  
Reply Mon 7 Feb, 2005 08:42 pm
No, I used the wording of b being a positive real number. When b is complex, one should use another wording: "modulus of b" is grater than (smaller than, or equal to) 1.
0 Replies
 
markr
 
  1  
Reply Mon 7 Feb, 2005 10:33 pm
Vengoropatubus wrote:
Isn't this essentially a problem of the limit of f(x) as x approaches infinity where f(x)=ab^x (because it's geometric) and b is greater than 1 (because it's increasing). I'm not seeing any other factors that would limit the growth so wouldn't the population just increase without bound?

It is bounded in this particular case because there are a finite number of steps to ZZM's algorithm.
0 Replies
 
Vengoropatubus
 
  1  
Reply Tue 8 Feb, 2005 06:05 pm
markr wrote:
Vengoropatubus wrote:
Isn't this essentially a problem of the limit of f(x) as x approaches infinity where f(x)=ab^x (because it's geometric) and b is greater than 1 (because it's increasing). I'm not seeing any other factors that would limit the growth so wouldn't the population just increase without bound?

It is bounded in this particular case because there are a finite number of steps to ZZM's algorithm.


I see. I missed the part where he said there were only 11 steps.
0 Replies
 
 

Related Topics

Evolution 101 - Discussion by gungasnake
Typing Equations on a PC - Discussion by Brandon9000
The Future of Artificial Intelligence - Discussion by Brandon9000
The well known Mind vs Brain. - Discussion by crayon851
Scientists Offer Proof of 'Dark Matter' - Discussion by oralloy
Blue Saturn - Discussion by oralloy
Bald Eagle-DDT Myth Still Flying High - Discussion by gungasnake
DDT: A Weapon of Mass Survival - Discussion by gungasnake
 
  1. Forums
  2. » Geometric series headache.
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.13 seconds on 01/19/2025 at 12:01:05