All Exams Test series for 1 year @ ₹349 only
Question

If N2 = 12345678987654321, then how many digits does the number N have?

The correct answer is

9

Finding the Number of Digits in N when N² is Given

The question asks us to determine the number of digits in the number N, given that its square, N², is equal to 12345678987654321. To solve this, we need to find the square root of the given number, which will give us N, and then count its digits.

Recognizing the Pattern in N²

The number 12345678987654321 has a distinct pattern. It increases from 1 up to 9 and then decreases back down to 1. This specific pattern is characteristic of the squares of numbers that consist only of the digit 1 repeated a certain number of times.

Let's look at the squares of numbers made up of repeating '1's:

NumberSquare
11
11121
11112321
11111234321
11111123454321
11111112345654321
11111111234567654321
11111111123456787654321
11111111112345678987654321


 

From the table, we can observe that the square of a number consisting of 'k' number of '1's results in a number that goes up from 1 to 'k' and then back down to 1, provided 'k' is less than or equal to 9.

In our case, N² is 12345678987654321. This number goes up to 9 and then back down to 1. Following the observed pattern, this means the original number N must consist of nine '1' digits.

Determining the Value of N

Based on the pattern, if \( N^2 = 12345678987654321 \), then N is the number formed by repeating the digit '1' nine times.

So, \( N = 111111111 \).

Counting the Digits in N

Now we just need to count the number of digits in N.

\( N = 111,111,111 \)

Counting the digits, we find there are 9 digits in the number N.

Therefore, the number N has 9 digits.

Revision Table: Number of Digits and Squares

Number (N)Number of Digits in NSquare (N²)Number of Digits in N²
1111
1121213
1113123215
1111412343217
1111151234543219
11111161234565432111
11111117123456765432113
11111111812345678765432115
11111111191234567898765432117


 

This table confirms that when N has 9 digits (specifically all '1's), N² matches the given value.

Additional Information: Understanding Palindromic Squares

The type of number seen in N² = 12345678987654321 is a palindromic number because it reads the same forwards and backward. These specific palindromic numbers, which ascend from 1 to some digit 'k' (up to 9) and then descend back to 1, are formed by squaring repunits (numbers consisting only of the digit 1).

A repunit with 'k' digits is denoted as \( R_k \). For example, \( R_1 = 1 \), \( R_2 = 11 \), \( R_3 = 111 \). The square of a repunit \( R_k \) is:

  • For \( k \le 9 \), \( R_k^2 \) is the number \( 123...k...(k-1)...1 \). The number of digits in \( R_k^2 \) is \( 2k-1 \).
  • For \( k > 9 \), the pattern changes due to carrying over in addition. For example, \( R_{10}^2 = 1111111111^2 = 1234567900987654321 \).

In this problem, the peak digit in N² is 9. This indicates that N is a repunit with 9 digits. Therefore, N has 9 digits.

Was this answer helpful?

Similar Questions

  1. Which one of the following statements best reflects the critical message conveyed by the author of the passage?

  2. With reference to the above passage, the following assumptions have been made:
    I. No country needs to depend on ecosystems to boost national income.
    II. Resource-rich countries need to share their resources with those of scant resources so as to prevent the degradation of ecosystems.
    Which of the above assumptions is/are valid?

  3. Which one of the following statements best reflects the central idea of the passage?

  4. With reference to the above passage, the following assumptions have been made:
    I. Path-dependent green investments will eventually most likely benefit growth as well as public finances in a country like India.
    II. If other green technologies follow the same pattern as that of solar energy, there will most likely be an easy green transition.
    Which of the above assumptions is/are valid?

  5. Three prime numbers p, q and r, each less than 20, are such that p − q = q − r. How many distinct possible values can we get for (p + q + r)?

  6. How many possible values of (p + q + r) are there satisfying 1/p + 1/q + 1/r = 1, where p, q and r are natural numbers (not necessarily distinct)?

  7. What comes at X and Y respectively in the following sequence?
    January, January, December, October, X, March, October, Y, September

  8. Team X scored a total of N runs in 20 overs. Team Y tied the score in 10% less overs. Had Team Y’s average run rate (runs per over) been 50% higher, the scores would have been tied in 12 overs. How many runs were scored by Team X?

  9. The price (p) of a commodity is first increased by k%; then decreased by k%; again increased by k%; and again decreased by k%. If the new price is q, then what is the relation between p and q?

  10. Which one of the following statements best reflects the most logical, rational and pragmatic message conveyed by the author of the passage?


Important Questions from Miscellaneous Topics

  1. Which one of the following statements best reflects the critical message conveyed by the author of the passage?

  2. With reference to the above passage, the following assumptions have been made:
    I. No country needs to depend on ecosystems to boost national income.
    II. Resource-rich countries need to share their resources with those of scant resources so as to prevent the degradation of ecosystems.
    Which of the above assumptions is/are valid?

  3. Which one of the following statements best reflects the central idea of the passage?

  4. With reference to the above passage, the following assumptions have been made:
    I. Path-dependent green investments will eventually most likely benefit growth as well as public finances in a country like India.
    II. If other green technologies follow the same pattern as that of solar energy, there will most likely be an easy green transition.
    Which of the above assumptions is/are valid?

  5. Three prime numbers p, q and r, each less than 20, are such that p − q = q − r. How many distinct possible values can we get for (p + q + r)?

Need Expert Advice?
Upcoming Exams
UPSC CMS
August 02, 2026
IAS Exam
August 21, 2026
UPSC SO Steno
December 12, 2026
Test Series
IAS img
UPSC
UPSC CSE (IAS) 2027 Prelims Mock Test Series
654 Tests 3 Tests Free
680 Attempts
4.8(182)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App