OFFSET
2,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 2..1000
A. Cayley, Über die analytischen Figuren, welche in der Mathematik Bäume genannt werden und ihre Anwendung auf die Theorie chemischer Verbindungen, Chem. Ber. 8 (1875), 1056-1059. (Annotated scanned copy) [Annotation on p. 1057 references this A-number, but probably A034790 (which is given at the end of p. 1058) was meant instead. - Andrey Zabolotskiy, Nov 03 2023]
FORMULA
a(n) = Sum_{k=2..n} floor((2n + (n^2 mod k))/k).
EXAMPLE
a(3)=5 because the only pairs of numbers > 1 that form a product between 3^2 and 4^2 are (2,5) (2,6) (3,4) (2,7) (3,5).
MATHEMATICA
Array[Sum[Floor[(2 # + PowerMod[#, 2, k])/k], {k, 2, #}] &, 48, 2] (* Michael De Vlieger, Jan 22 2018 *)
PROG
(PARI) A034806(n) = sum(k=2, n, floor(((n+1)^2-1)/k)-floor(n^2/k)) \\ Michael B. Porter, Mar 13 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Joe K. Crump (joecr(AT)carolina.rr.com)
STATUS
approved