159Mathematics · Sequences and Series

Two-Term Recovery and Sum Threshold

Two-Term Recovery and Sum Threshold

From two known terms recover the first term and common difference or positive ratio, then find the requested term and sum. Find the smallest or largest positive integer n for which the partial sum is strictly greater than K. Check the adjacent sum.

  • 639 bytes
  • COMP mode
01

Worked examples

Example 1

Original practice. From two known terms recover the first term and common difference or positive ratio, then find the requested term and sum. Find the smallest or largest positive integer n for which the partial sum is strictly greater than K. Check the adjacent sum. M=1; u₂=16; u₅=31; n=12. a=?,d=?,u₁₂=?,S₁₂=?

Answer
a=11; d=5; n=12; u₁₂=66; S₁₂=462
Standard solution (without a calculator)
  1. d=(31−16)/(5−2)=5; a=16−5=11
  2. u₁₂=66; S₁₂=12(11+66)/2=462
  3. Expand or substitute to verify each equality above.
Do it on the calculator

Example 2

Original practice. From two known terms recover the first term and common difference or positive ratio, then find the requested term and sum. Find the smallest or largest positive integer n for which the partial sum is strictly greater than K. Check the adjacent sum. M=2; r>0; u₂=6; u₅=48; Sₙ>300. a=?,r=?,min n=?

Answer
a=3; r=2; n=7; S₇=381; S₆=189
Standard solution (without a calculator)
  1. r³=48/6=8; r>0 ⇒ r=2; a=3
  2. Sₙ=3(2ⁿ−1); S₆=189≤300<S₇=381; min n=7
  3. Expand or substitute to verify each equality above.
Do it on the calculator

Example 3

Original practice. From two known terms recover the first term and common difference or positive ratio, then find the requested term and sum. Find the smallest or largest positive integer n for which the partial sum is strictly greater than K. Check the adjacent sum. M=1; u₁=20; u₄=11; Sₙ>0. a=?,d=?,max n=?

Answer
a=20; d=−3; n=14; S₁₄=7; S₁₅=−15
Standard solution (without a calculator)
  1. d=(11−20)/(4−1)=−3; a=20
  2. Sₙ=n(43−3n)/2>0 ⇔ 0<n<43/3
  3. max n=14; S₁₄=7; S₁₅=−15
  4. Expand or substitute to verify each equality above.
Do it on the calculator
02

When to use it

From two known terms recover the first term and common difference or positive ratio, then find the requested term and sum. Find the smallest or largest positive integer n for which the partial sum is strictly greater than K. Check the adjacent sum.

Input order

  • M,p,uₚ,q,u_q,X,Y
  • M=1/2; A=p→a; B=uₚ→n; C=q→K; D=u_q→d/r; X=1/2/3→MX; Y=n/K→S
  • M∈{1,2}; p,q∈ℤ,1≤p<q; X∈{1,2,3}; X=1:Y=n∈ℤ,n≥1; X=2/3:Y=K,a>0; M=2:r>0,uₚu_q>0; X=2:min n; X=3:max n; [a,d/r,−3]≠[a,d/r,n,Sₙ,Sₙ±₁]
  • Fill every field explicitly, including 0. Blank EXE uses the current memory value; clearing memory makes it 0, but cannot detect omissions. All variables and Ans are overwritten.

Output order

  • a,d/r; X=1:n,uₙ,Sₙ; X=2:n,Sₙ,Sₙ₋₁; X=3:n,Sₙ,Sₙ₊₁; −1,−2,−3,−4
  • Two-term geometric recovery uses only the positive ratio, with nonzero known terms of the same sign. It does not enumerate negative-ratio alternatives.
  • At most 1000 local search steps and n≤1000000. Constant arithmetic terms and geometric sums are accumulated without a closed-form jump. Exceeding the search budget does not prove that no answer exists.
  • −1: no valid positive integer; −2: no finite maximum; −3: invalid input; −4: search/index budget exhausted.

Conditions and limits

  • Use COMP and Norm 1; the images use Deg, which does not change this algebra.
  • All intermediate values must remain within calculator range. Decimal outputs are approximations. Check nearly equal values with exact algebra; an error or overflow invalidates the whole run.
  • Two-term geometric recovery uses only the positive ratio, with nonzero known terms of the same sign. It does not enumerate negative-ratio alternatives.
  • At most 1000 local search steps and n≤1000000. Constant arithmetic terms and geometric sums are accumulated without a closed-form jump. Exceeding the search budget does not prove that no answer exists.
  • −1: no valid positive integer; −2: no finite maximum; −3: invalid input; −4: search/index budget exhausted.
  • After the final screen press AC. An extra EXE starts a new run; it does not reveal another result.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.