OFFSET
0,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = Sum_{k=0..4n+2} gcd(4n-k+3, k+1)/4.
MATHEMATICA
Table[Sum[GCD[4n-k+3, k+1]/4, {k, 0, 4n+2}], {n, 0, 60}] (* Harvey P. Dale, May 19 2019 *)
f[p_, e_] := (e*(p - 1)/p + 1)*p^e; a[n_] := (Times @@ f @@@ FactorInteger[4*n+4]) / 4 - n - 1; Array[a, 100, 0] (* Amiram Eldar, Apr 26 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, May 03 2005
STATUS
approved