OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from T. D. Noe)
FORMULA
From Vladeta Jovovic, Apr 22 2002: (Start)
a(n) = n^4 - A005353(n).
Multiplicative with a(p^e) = p^(2*e - 1)*(p^(e+1) + p^e - 1). (End)
Dirichlet g.f.: zeta(s-2)*zeta(s-3)/zeta(s-1).
A102631(n) | a(n). - R. J. Mathar, Mar 30 2011
Sum_{k=1..n} a(k) ~ Pi^2 * n^4 / (24*Zeta(3)). - Vaclav Kotesovec, Jan 31 2019
From Piotr Rysinski, Sep 11 2020: (Start)
a(n) = n * A069097(n).
MATHEMATICA
f[p_, e_] := p^(2*e - 1)*(p^(e + 1) + p^e - 1); a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Oct 22 2020 *)
PROG
(PARI) a(n)=if(n<1, 0, direuler(p=2, n, (1-p*X)/((1-p^2*X)*(1-p^3*X)))[n])
(PARI) a(n)=local(c=0); forvec(x=vector(4, k, [1, n]), c+=((x[1]*x[2]-x[3]*x[4])%n==0)); c
CROSSREFS
KEYWORD
nonn,mult,easy
AUTHOR
STATUS
approved