OFFSET
1,1
COMMENTS
Inequalities: 1 <= a <= 9, 0 <= b, c <= 9.
If the quadratic equation ax^2 + bx + c = 0 has a rational root, then b^2-4ac is a square, the two roots are rational and nonpositive.
Proposition: these three-digit numbers abc are all composite.
The Olympiad problem proposed in Changhua, Taiwan, 2010 (see Reference) asked for a proof that the three-digit number abc is not a prime number.
If abc is a term with a, b, c >= 1 then cba is another term.
The total number of terms is 147.
REFERENCES
Xiong Bin and Lee Peng Yee, Mathematical Olympiad in China (2009-2010), Problems and Solutions, Changhua, Taiwan, 2010, First Day, Problem 1, p. 147, East China Normal university Press - World Scientific, 2013.
LINKS
EXAMPLE
x^2 + 2x = x*(x+2), whose roots are {-2, 0}, so 120 is a term.
2x^2 = 0 has double root {0}, so 200 is a term.
4x^2 + 7x + 3 = 4*(x+1)*(x+3/4), whose roots are {-3/4, -1}, so 473 = 11*43 is a term.
MATHEMATICA
Select[Range[100, 999], (d = (#[[2]]^2 - 4*#[[1]]*#[[3]])&@ IntegerDigits[#]) >= 0 && IntegerQ @ Sqrt[d] &] (* Amiram Eldar, Oct 02 2021 *)
PROG
(Python)
from math import isqrt
def ok(n):
s = str(n)
if len(s) != 3: return False
a, b, c = list(map(int, s))
D = b**2 - 4*a*c
return D >= 0 and isqrt(D)**2 == D
def afull(): return [m for m in range(100, 1000) if ok(m)]
print(afull()) # Michael S. Branicky, Oct 02 2021
(PARI) isok(m) = my(d=digits(m)); (#d==3) && issquare(d[2]^2 - 4*d[1]*d[3]); \\ Michel Marcus, Oct 03 2021
CROSSREFS
KEYWORD
nonn,base,fini,full
AUTHOR
Bernard Schott, Oct 02 2021
STATUS
approved