# Thread:

1. ## Arithmetic and Geometric Sequences

Here is the question:

In an old story, a king asked a peasant to come and work for him. They both agreed that the job to be done could be completed in a month (30 days). The peasant asked the king if he could be paid in the following way: "On the first day that I work, I would like to be paid one penny. Each day that I work, I would like you to double my income." The king thought this was a great deal and happily agreed.

Analyze the deal that the king and the peasant made to determine whether or not the peasant made a good deal with the king.

Now I know that the peasant is getting the better deal. And I believe I have to use the formula tn=ar^n-1.

2. You're correct. The formula is $2^{n}-1$

For instance, how much on the 5th day?. 16+8+4+2+1=31

$2^{5}-1=31$

So, on the 30th day, he would have $2^{30}-1$.

A rather large number, even in pennies.

That is \$10,737,418.23

The king may have him beheaded after seeing that.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 3, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9776217937469482, "perplexity_flag": "middle"}