|
|
A083889
|
|
Number of divisors of n with largest digit = 2 (base 10).
|
|
11
|
|
|
0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 1, 2, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 2, 0, 2, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 1, 1, 1, 0, 2, 0, 1, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 0, 2, 0, 1, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,12
|
|
LINKS
|
|
|
FORMULA
|
Asymptotic mean: Limit_{m->oo} (1/m) * Sum_{k=1..m} a(k) = Sum_{k>=1} 1/A277964(k) = 0.85636382912390578285... . - Amiram Eldar, Jan 04 2024
|
|
EXAMPLE
|
n=120, 4 of the 16 divisors of 120 have largest digit =2: {2,12,20,120}, therefore a(120)=4.
|
|
MAPLE
|
f:= proc(n) nops(select(t -> max(convert(t, base, 10))=d, numtheory:-divisors(n))) end proc:
d:= 2:
|
|
MATHEMATICA
|
With[{k = 2}, Array[DivisorSum[#, 1 &, And[#[[k]] > 0, Total@ #[[k + 1 ;; 9]] == 0] &@ DigitCount[#] &] &, 105]] (* Michael De Vlieger, Oct 06 2019 *)
|
|
PROG
|
(Magma) [#[d:d in Divisors(n) | Max(Intseq(d)) eq 2]: n in [1..120]]; // Marius A. Burtea, Oct 06 2019
|
|
CROSSREFS
|
Cf. A054055, A000005, A083897, A083888, A083890, A083891, A083892, A083893, A083894, A083895, A083896, A277964.
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|