OFFSET
1,2
COMMENTS
This is the number of pairs of positive integers (i,j) such that i*j = n or i+j = n (where (2,2) is double-counted as both 2+2=4 and 2*2=4.) - Peter Kagey, Oct 02 2020
FORMULA
a(n) = Sum_{k=1..n} A158906(n,k).
a(p) = p + 1 for prime p. [corrected by Ruediger Jehn, Dec 25 2020]
a(n) = A032741(n) + n. - R. J. Mathar, Jan 08 2015
a(n) = Sum_{i=1..n} floor(n/i)-floor((n-1)/(i+1)). - Wesley Ivan Hurt, Sep 13 2017
EXAMPLE
a(4) = 6 = (4 + 1 + 0 + 1).
MAPLE
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gary W. Adamson and Mats Granvik, Mar 29 2009
STATUS
approved