| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | --- | 
					
						
							|  |  |  | id: 5900f4571000cf542c50ff6a | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | title: 'Problema 235: Uma sequência geométrica aritmética' | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | challengeType: 5 | 
					
						
							|  |  |  | forumTopicId: 301879 | 
					
						
							|  |  |  | dashedName: problem-235-an-arithmetic-geometric-sequence | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --description--
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | Você é informado de que a sequência aritmética geométrica $u(k) = (900 - 3k)r^{k - 1}$. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | Considere $s(n) = \sum_{k=1 \ldots n} u(k)$. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | Encontre o valor de $r$ para o qual $s(5000) = -600.000.000.000$. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-23 11:06:14 -08:00
										 |  |  | Dê sua resposta arredondada para 12 casas depois da vírgula. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | # --hints--
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | `arithmeticGeometricSequence()` deve retornar `1.002322108633`. | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | assert.strictEqual(arithmeticGeometricSequence(), 1.002322108633); | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --seed--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## --seed-contents--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | function arithmeticGeometricSequence() { | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |   return true; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-15 06:40:48 -08:00
										 |  |  | arithmeticGeometricSequence(); | 
					
						
							| 
									
										
										
										
											2021-06-15 00:49:18 -07:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --solutions--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | // solution required | 
					
						
							|  |  |  | ``` |