1 − 2 + 4 − 8 + ⋯
In mathematics,  is the infinite series whose terms are the successive powers of two with alternating signs. As a geometric series, it is characterized by its first term, 1, and its common ratio, −2. As a series of real numbers it diverges, so in the usual sense it has no sum. In a much broader sense,  the series is associated with another value besides ∞, namely , which is the limit of the series using the 2-adic metric. Historical arguments
Gottfried Leibniz considered the divergent alternating series  as early as 1673. He argued that by subtracting either on the left or on the right, one could produce either positive or negative infinity, and therefore both answers are wrong and the whole should be finite:
Now normally nature chooses the middle if neither of the two is permitted, or rather if it cannot be determined which of the two is permitted, and the whole is equal to a finite quantity

Leibniz did not quite assert that the series had a sum, but he did infer an association with  following Mercator's method. The attitude that a series could equal some finite quantity without actually adding up to it as a sum would be commonplace in the 18th century, although no distinction is made in modern mathematics. After Christian Wolff read Leibniz's treatment of Grandi's series in mid-1712, Wolff was so pleased with the solution that he sought to extend the arithmetic mean method to more divergent series such as . Briefly, if one expresses a partial sum of this series as a function of the penultimate term, one obtains either  or . The mean of these values is , and assuming that  at infinity yields  as the value of the series. Leibniz's intuition prevented him from straining his solution this far, and he wrote back that Wolff's idea was interesting but invalid for several reasons. The arithmetic means of neighboring partial sums do not converge to any particular value, and for all finite cases one has , not . Generally, the terms of a summable series should decrease to zero; even  could be expressed as a limit of such series. Leibniz counsels Wolff to reconsider so that he "might produce something worthy of science and himself." Modern methods

Geometric series
Any summation method possessing the properties of regularity, linearity, and stability will sum a geometric series
 
In this case a = 1  and r = −2, so the sum is . Euler summation
In his 1755 Institutiones, Leonhard Euler effectively took what is now called the Euler transform of , arriving at the convergent series . Since the latter sums to , Euler concluded that . His ideas on infinite series do not quite follow the modern approach; today one says that  is Euler summable and that its Euler sum is . The Euler transform begins with the sequence of positive terms:
a0 = 1,
a1 = 2,
a2 = 4,
a3 = 8,... The sequence of forward differences is then
Δa0 = a1 − a0 = 2 − 1 = 1,
Δa1 = a2 − a1 = 4 − 2 = 2,
Δa2 = a3 − a2 = 8 − 4 = 4,
Δa3 = a4 − a3 = 16 − 8 = 8,...

which is just the same sequence. Hence the iterated forward difference sequences all start with  for every n. The Euler transform is the series

This is a convergent geometric series whose sum is  by the usual formula. Borel summation
The Borel sum of  is also ; when Émile Borel introduced the limit formulation of Borel summation in 1896, this was one of his first examples after 1 − 1 + 1 − 1 + ⋯

-adic numbers
The sequence of partial sums associated with  in the 2-adic metric is

and when expressed in base 2 using two's complement, 

and the limit of this sequence is  in the 2-adic metric. Thus . See also
1 + 2 + 4 + 8 + ⋯

Notes

References

Divergent series
Geometric series
P-adic numbers