OFFSET
1,70
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
n=119, 2 of the 4 divisors of 119 have largest digit =7: {7,17}, therefore a(119)=2.
MAPLE
f:= proc(n) nops(select(t -> max(convert(t, base, 10))=d, numtheory:-divisors(n))) end proc:
d:= 7:
map(f, [$1..200]); # Robert Israel, Oct 06 2019
MATHEMATICA
Table[Count[Divisors[n], _?(Max[IntegerDigits[#]]==7&)], {n, 120}] (* Harvey P. Dale, Oct 16 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, May 08 2003
STATUS
approved