O'Reilly logo
  • Sergii Makarevych thinks this is interesting:

When we expand and gather like terms we get the following:

From

Cover of Python Data Structures and Algorithms

Note

Looks like next formula is incorrect