OFFSET
1,36
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
n=240, 3 of the 20 divisors of 240 have largest digit =6: {6,16,60}, therefore a(240)=3.
MAPLE
f:= proc(n) nops(select(t -> max(convert(t, base, 10))=d, numtheory:-divisors(n))) end proc:
d:= 6:
map(f, [$1..200]); # Robert Israel, Oct 06 2019
MATHEMATICA
With[{k = 6}, Array[DivisorSum[#, 1 &, And[#[[k]] > 0, Total@ #[[k + 1 ;; 9]] == 0] &@ DigitCount[#] &] &, 105]] (* Michael De Vlieger, Oct 06 2019 *)
PROG
(Magma) [#[d:d in Divisors(n) | Max(Intseq(d)) eq 6]: n in [1..150]]; // Marius A. Burtea, Oct 06 2019
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, May 08 2003
STATUS
approved