A083892 Number of divisors of n with largest digit = 5 (base 10).
0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 1, 1, 1, 1, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 1, 0, 1, 4
Offset: 1
Examples
n=125, 3 of the 4 divisors of 125 have largest digit =5: {5,25,125}, therefore a(125)=3.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Maple
f:= proc(n) nops(select(t -> max(convert(t, base, 10))=d, numtheory:-divisors(n))) end proc: d:= 5: map(f, [$1..200]); # Robert Israel, Oct 06 2019
-
Mathematica
Table[Count[Divisors[n],?(Max[IntegerDigits[#]]==5&)],{n,110}] (* _Harvey P. Dale, Aug 08 2015 *)