A295006 Numbers n such that the largest digit of n^2 is 6.
4, 6, 8, 16, 19, 25, 34, 40, 46, 51, 56, 58, 60, 66, 68, 75, 79, 80, 81, 106, 108, 116, 119, 121, 125, 129, 142, 146, 156, 160, 162, 175, 190, 204, 206, 208, 215, 216, 225, 231, 238, 245, 246, 248, 249, 250, 251, 252, 254, 255, 256, 258, 325, 334, 340, 354, 355, 369, 375, 379
Offset: 1
Examples
19 is in this sequence because 19^2 = 361 has 6 as largest digit.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Crossrefs
Programs
-
Mathematica
Select[Range[400],Max[IntegerDigits[#^2]]==6&] (* Harvey P. Dale, Mar 30 2024 *)
-
PARI
select( is_A295006(n)=n&&vecmax(digits(n^2))==6 , [0..999]) \\ The "n&&" avoids an error message for n=0.