OFFSET
1,24
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
n=120, 3 of the 16 divisors of 120 have largest digit=4: {4,24,40}, therefore a(120)=3.
MAPLE
ld4:= n -> max(convert(n, base, 10)) = 4:
f:= n -> nops(select(ld4, numtheory:-divisors(n))):
map(f, [$1..100]); # Robert Israel, May 02 2019
MATHEMATICA
Table[Count[Divisors[n], _?(Max[IntegerDigits[#]]==4&)], {n, 110}] (* Harvey P. Dale, Feb 19 2016 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, May 08 2003
STATUS
approved