DEV Community

Amit Upadhyay for SutraFlow

Posted on • Originally published at sutraflow.app on

Ekanyūnena Pūrveṇa — By one less than the previous one

Ekanyūnena Pūrveṇa

एकन्यूनेन पूर्वेणEkanyunena Purvena

By one less than the previous one. Multiply by a string of 9s: subtract 1 from the multiplicand for the left part; find the complement of the multiplicand for the right part.

Why it works: n × (10^k − 1) = n × 10^k − n = (n−1) followed by complement(n, k). Because 10^k − n is the complement of n with respect to 10^k: writing n in k digits and subtracting from 10^k gives the right portion.

Speed advantage: 1 mental step vs 9+ for multiplying by 9, 99, 999, 9999.

Best for

  • Multiplying by numbers that are all 9s

See the animated lesson, practice drills & proof on SutraFlow →

Originally published at https://www.sutraflow.app/sutras/ekanyunena-purvena

Top comments (0)