OFFSET
1,1
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A295005(n)^2.
MATHEMATICA
Select[Range[600]^2, Max[IntegerDigits[#]]==5&] (* Harvey P. Dale, Aug 19 2022 *)
PROG
(PARI) is_A295015(n)=issquare(n)&&n&&vecmax(digits(n))==5 \\ The "n&&" avoids an error message for n = 0.
(Python)
from math import isqrt
def aupto(limit):
alst, rootlimit = [], isqrt(limit)
for k in range(1, rootlimit+1):
if max(str(k*k)) == "5": alst.append(k*k)
return alst
print(aupto(302500)) # Michael S. Branicky, May 15 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Nov 12 2017
STATUS
approved