|
|
A295018
|
|
Squares whose largest digit is 8.
|
|
4
|
|
|
81, 484, 784, 841, 1681, 3481, 3844, 5184, 6084, 8100, 8281, 8464, 8836, 10816, 11881, 14884, 15876, 16384, 18225, 22801, 25281, 28224, 28561, 31684, 33856, 36481, 36864, 38025, 38416, 40804, 43681, 48400, 48841, 53824, 58081, 58564, 67081, 68121, 68644, 71824, 77284, 77841, 78400
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
Res:= NULL: count:= 0:
for n from 1 while count < 50 do
if max(convert(n^2, base, 10))=8 then
count:= count+1; Res:= Res, n^2;
fi
od:
|
|
MATHEMATICA
|
Select[Range[300]^2, Max[IntegerDigits[#]]==8&] (* Harvey P. Dale, Jul 08 2020 *)
|
|
PROG
|
(PARI) is_A295018(n)=issquare(n)&&n&&vecmax(digits(n))==8 \\ "&&n" avoids an error message for n=0.
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|