compute the sum of 1/2^k for k from 0 to n

Let's calculate: ∑k = 0n12k
The sum is geometric, with first term a = 120 = 1, ratio q = 12 and N = n + 1 terms, so it is equal to a·1 -qN1 -q
ⓘ ∑k = 0n12k = 1 -(12)n + 11 -12
1 -(12)n + 11 -12
ⓘ To add fractions, put them over the same denominator, then add the numerators: 1 -12 = 2 -12
1 -(12)n + 12 -12
ⓘ Calculate the numerator and denominator before dividing: 2 -1 = 1
1 -(12)n + 112
ⓘ Dividing is multiplying by the reciprocal: 1 -(12)n + 112 = (1 -(12)n + 1)·2
(1 -(12)n + 1)·2
ⓘ Multiply each term of the sum by the other factor, using the distributive law: (1 -(12)n + 1)·2 = 2 -(12)n + 1·2
2 -(12)n + 1·2
▶Result:   2 -2·(12)n + 1

The 100% free maths solver with steps

100% free

  • Access to every feature and every step
  • Unlimited queries
  • No signup required

Simple

  • Queries in natural language
  • Detailed explanations for every step
  • A simple interface for desktop and mobile

Reliable and lean

  • Fast calculations
  • Reproducible results
  • No AI, low energy use

For everyone

  • Calculation, differentiation, integration, solving, factoring, graphing...
  • Pupils, students, individuals, teachers…
  • Through high school and beyond