All techniques
Sūtra 1 of 16

Ekādhikena Pūrveṇa

By one more than the previous one

Squaring numbers ending in 5, and converting fractions like 1/19, 1/29.

When to use

Squaring any number that ends in 5; computing recurring decimals of fractions whose denominator ends in 9.

How it works

Take the digit(s) before the final 5, multiply by 'one more than itself', then append 25. For 1/19, 1/29 etc., use the digit one more than the digit before 9 as a multiplier in a left-to-right or right-to-left build of the recurring block.

Memory formula

For …5²: prefix × (prefix + 1), then append 25.

Worked examples

Problem 1
75²
0/4
    Problem 2
    125²
    0/4

      Try it yourself

      Try to solve, then reveal the steps one at a time.

      easy
      Compute 35²
      easy
      Compute 65²
      medium
      Compute 145²

      Modern applications

      Where this ancient technique still lives in today's world.

      Coding

      Bit-shift squaring

      Squaring numbers ending in 5 maps to a left-shift + add pattern; useful for hash-mix routines and constant-time arithmetic in inner loops.

      Finance

      Quick interest checks

      Mental squaring of mid-sized factors for compound-interest sanity checks without a calculator.

      Code in your favourite language

      Square any number ending in 5 using ‘by one more than the previous’.

      Python
      # square_ending_in_5(35) -> 1225
      def square_ending_in_5(n: int) -> int:
          prefix = n // 10
          return prefix * (prefix + 1) * 100 + 25
      
      print(square_ending_in_5(35))

      Stuck? Ask the tutor.

      Get a personal walkthrough of Ekādhikena Pūrveṇa with examples tuned to your question.

      Open AI Tutor