A256633 Numbers n such that the decimal expansions of both n and n^2 have 0 as smallest digit and 6 as largest digit.
60, 160, 460, 506, 560, 600, 601, 602, 605, 660, 1006, 1016, 1060, 1160, 1460, 1560, 1600, 1601, 1602, 1620, 2006, 2016, 2060, 2160, 2460, 2560, 3606, 4506, 4600, 4605, 4650, 5006, 5016, 5060, 5160, 5506, 5600, 5605, 5660, 6000, 6001, 6002, 6005, 6010, 6020
Offset: 1
Links
- Felix Fröhlich, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
fQ[n_] := Block[{c = DigitCount@ n}, And[Plus @@ Take[c, {7, 9}] == 0, c[[6]] > 0, c[[10]] > 0]]; Select[Range@ 6400, fQ@ # && fQ[#^2] &] (* Michael De Vlieger, Apr 12 2015 *) Select[Range[6100],With[{idn=IntegerDigits[#],idn2=IntegerDigits[#^2]},Min[idn]==Min[idn2]==0&&Max[idn]==Max[idn2]==6]&] (* Harvey P. Dale, Feb 06 2025 *)
-
PARI
is(n) = vecmin(digits(n))==0 && vecmin(digits(n^2))==0 && vecmax(digits(n))==6 && vecmax(digits(n^2))==6