A307120 a(1) = 3, for n>1, a(n) = A000005(n-1) + A000005(n) + A000005(n+1).
3, 5, 7, 7, 9, 8, 10, 9, 11, 9, 12, 10, 12, 10, 13, 11, 13, 10, 14, 12, 14, 10, 14, 13, 15, 11, 14, 12, 16, 12, 16, 12, 14, 12, 17, 15, 15, 10, 16, 14, 18, 12, 16, 14, 16, 12, 16, 15, 19, 13, 16, 12, 16, 14, 20, 16, 16, 10, 18, 16, 18, 12, 17, 17, 19, 14, 16, 12, 18, 14, 22, 16, 18, 12, 16, 16, 18, 14, 20
Offset: 1
Keywords
Examples
a(10) = 9 as 9 has 3 divisors, 10 has 4 divisors and 11 has 2 divisors. - _David A. Corneth_, Mar 26 2019
Programs
-
Mathematica
{3}~Join~Map[Total, Partition[DivisorSigma[0, Range@ 80], 3, 1]] (* Michael De Vlieger, Jun 06 2019 *)
-
PARI
a(n) = if(n == 3, return(1)); sum(i = n-1, n+1, numdiv(i)) \\ David A. Corneth, Mar 26 2019
Comments