A283610 Numbers n whose largest decimal digit is 7.
7, 17, 27, 37, 47, 57, 67, 70, 71, 72, 73, 74, 75, 76, 77, 107, 117, 127, 137, 147, 157, 167, 170, 171, 172, 173, 174, 175, 176, 177, 207, 217, 227, 237, 247, 257, 267, 270, 271, 272, 273, 274, 275, 276, 277, 307, 317, 327, 337, 347, 357, 367, 370, 371, 372
Offset: 1
Links
- Muniru A Asiru, Table of n, a(n) for n = 1..5000
Crossrefs
Programs
-
GAP
Filtered([1..380],n->Maximum(ListOfDigits(n))=7); # Muniru A Asiru, Feb 27 2019
-
Magma
[n: n in [1..100000] | Maximum(Setseq(Set(Sort(&cat[Intseq(n)])))) eq 7]
-
Mathematica
Select[Range[1000], Max[IntegerDigits[#]] == 7 &] (* Giovanni Resta, Mar 19 2017 *)
-
PARI
for(n=1, 500, if(vecmax(digits(n))==7, print1(n,", "))) \\ Indranil Ghosh, Mar 19 2017
-
Python
from sympy.ntheory.factor_ import digits [n for n in range(1, 401) if max(digits(n)[1:]) == 7] # Indranil Ghosh, Mar 19 2017
Comments