TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Two's complement unexpectedly shows up in infinite series

40 pointsby robalniover 2 years ago

3 comments

suremarcover 2 years ago
The infinite sum involving powers of two is actually true in the 2-adic integers.
评论 #33282787 未加载
评论 #33284850 未加载
pfortunyover 2 years ago
That is what happens when you play with divergent series… Fun stuff but not easy to explain (if at all).
boonsuanover 2 years ago
check out <a href="https:&#x2F;&#x2F;zjkmxy.github.io&#x2F;posts&#x2F;2021&#x2F;11&#x2F;twos-complement-2-adic&#x2F;" rel="nofollow">https:&#x2F;&#x2F;zjkmxy.github.io&#x2F;posts&#x2F;2021&#x2F;11&#x2F;twos-complement-2-adi...</a> for a discussion of some relevant mathematics; cool stuff<p>there is also a lot of good stuff concerning such computational tricks and their relation with 2-adics in section 7.1.3 (Bitwise Tricks and Techniques) of volume 4A of The Art of Computer Programming: <a href="https:&#x2F;&#x2F;www-cs-faculty.stanford.edu&#x2F;~knuth&#x2F;fasc1a.ps.gz" rel="nofollow">https:&#x2F;&#x2F;www-cs-faculty.stanford.edu&#x2F;~knuth&#x2F;fasc1a.ps.gz</a>