A346651 a(n) is the number of divisors of A139245(n) ending with 2.
1, 2, 2, 2, 3, 2, 2, 3, 2, 2, 3, 3, 2, 4, 2, 2, 3, 2, 3, 4, 2, 2, 3, 2, 3, 5, 2, 3, 3, 2, 2, 4, 3, 2, 3, 4, 2, 4, 2, 3, 3, 2, 2, 5, 3, 2, 6, 2, 2, 4, 2, 3, 3, 3, 2, 4, 2, 4, 3, 3, 3, 5, 2, 2, 3, 2, 2, 7, 4, 2, 4, 2, 2, 4, 3, 3, 3, 2, 3, 6, 2, 3, 3, 4, 2, 4, 2, 2, 5, 2
Offset: 1
Examples
a(14) = 4 since there are 4 divisors of A139245(14) = 264 ending with 2: 2, 12, 22 and 132.
Crossrefs
Programs
-
Mathematica
a[n_]:=Length[Drop[Select[Divisors[20n-16], (Last[IntegerDigits[#]]==2&)]]]; Array[a, 90]
-
PARI
a(n) = sumdiv(20*n-16, d, (d%10) == 2); \\ Michel Marcus, Jul 26 2021
Comments