A083899 Number of divisors of n with largest digit <= 4 (base 10).
1, 2, 2, 3, 1, 3, 1, 3, 2, 3, 2, 5, 2, 3, 2, 3, 1, 3, 1, 5, 3, 4, 2, 6, 1, 3, 2, 4, 1, 5, 2, 4, 4, 3, 1, 5, 1, 2, 3, 6, 2, 6, 2, 6, 2, 3, 1, 6, 1, 3, 2, 4, 1, 3, 2, 4, 2, 2, 1, 8, 1, 3, 3, 4, 2, 6, 1, 4, 3, 4, 1, 6, 1, 2, 2, 3, 2, 4, 1, 6, 2, 3, 1, 8, 1, 3, 2, 6, 1, 5, 2, 4, 3, 2, 1, 7, 1, 3, 4, 6, 2, 5, 2, 5, 3
Offset: 1
Programs
-
Mathematica
a[n_] := DivisorSum[n, 1 &, Max[IntegerDigits[#]] <= 4 &]; Array[a, 100] (* Amiram Eldar, Jan 04 2024 *)