A083890 Number of divisors of n with largest digit = 3 (base 10).
0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 2, 1, 1, 2, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 2, 0, 1, 1, 1, 1, 2, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 2, 1, 1, 2, 0, 0, 2, 0, 0, 2, 0, 0, 1, 1, 1, 1
Offset: 1
Examples
n=132, 3 of the 12 divisors of 132 have largest digit =3: {3,33,132}, therefore a(132)=3.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Crossrefs
Programs
-
Magma
[#[d:d in Divisors(n) | Max(Intseq(d)) eq 3]: n in [1..130]]; // Marius A. Burtea, Oct 06 2019
-
Maple
f:= proc(n) nops(select(t -> max(convert(t, base, 10))=d, numtheory:-divisors(n))) end proc: d:= 3: map(f, [$1..200]); # Robert Israel, Oct 06 2019
-
Mathematica
With[{k = 3}, Array[DivisorSum[#, 1 &, And[#[[k]] > 0, Total@ #[[k + 1 ;; 9]] == 0] &@ DigitCount[#] &] &, 105]] (* Michael De Vlieger, Oct 06 2019 *) Table[Count[Divisors[n],?(Max[IntegerDigits[#]]==3&)],{n,120}] (* _Harvey P. Dale, Sep 05 2020 *)