OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..500
Eric Weisstein's World of Mathematics, Squarefree.
FORMULA
a(n) = Sum_{i=1..n} Sum_{j= 1..i} mu(i*j)^2, where mu is the Moebius function (A008683). - Ridouane Oudra, Oct 17 2019
EXAMPLE
There are seven rectangles with sides <= 5 having a squarefree area: 1 X 1, 1 X 2, 1 X 3, 1 X 5, 2 X 3, 2 X 5 and 3 X 5, whereas 1 X 4, 2 X 2, 2 X 4, 3 X 3, 3 X 4, 4 X 4, 4 X 5 and 5 X 5 are not squarefree; therefore a(5)=7.
PROG
(Haskell)
a070072 n = length [() | x <- [1..n], y <- [1..x], a008966 (x*y) == 1]
-- Reinhard Zumkeller, May 26 2012
(Magma) [&+[&+[MoebiusMu(i*j)^2:j in [1..i]]:i in [1..n]]:n in [1..53]]; // Marius A. Burtea, Oct 17 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Apr 21 2002
STATUS
approved