DR.WANG Mathematics中文

2025 AMC 8 · Question 23

Algebra · difference of squares · prime · number-theory

Problem outline

Count the four-digit integers ending in 99 which are both one below a perfect square and a product of exactly two primes, counted with multiplicity.

Show answer and methods 1 methods

Answer

B. 11.

Method 1 Test the factors adjacent to the square root

If n+1n+1 is a square ending in 00, its square root is 10k10k. The four-digit restriction gives 4≤k≤104\le k\le10. Factor n=(10k−1)(10k+1)n=(10k-1)(10k+1): both factors exceed 1, so each must be prime.

For k=4,5,7,8,9,10k=4,5,7,8,9,10 one factor is respectively 39,49,69,81,91,9939,49,69,81,91,99, all composite. For k=6k=6 both 59 and 61 are prime (test 2, 3, 5, 7). Only 35993599 works.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)