The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A344598 a(n) = Sum_{k=1..n} phi(k) * (floor(n/k)^2 - floor((n-1)/k)^2). 2
1, 4, 7, 12, 13, 24, 19, 32, 33, 44, 31, 68, 37, 64, 75, 80, 49, 108, 55, 124, 109, 104, 67, 176, 105, 124, 135, 180, 85, 240, 91, 192, 177, 164, 199, 300, 109, 184, 211, 320, 121, 348, 127, 292, 333, 224, 139, 432, 217, 340, 279, 348, 157, 432, 323, 464, 313, 284, 175, 660, 181 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
Sum_{k=1..n} a(k) = A018806(n).
G.f.: Sum_{k>=1} phi(k) * x^k * (1 + x^k)/(1 - x^k)^2.
Conjecture: a(n) = Sum_{k = 1..2*n} (-1)^k * gcd(k, 4*n). Cf. A344372. - Peter Bala, Jan 01 2024
MATHEMATICA
a[n_] := Sum[EulerPhi[k] * First @ Differences @ (Quotient[{n - 1, n}, k]^2), {k, 1, n}]; Array[a, 50] (* Amiram Eldar, May 24 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, eulerphi(k)*((n\k)^2-((n-1)\k)^2));
(PARI) my(N=66, x='x+O('x^N)); Vec(sum(k=1, N, eulerphi(k)*x^k*(1+x^k)/(1-x^k)^2))
CROSSREFS
Sequence in context: A344159 A092574 A310769 * A058271 A332935 A244590
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, May 24 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 5 01:34 EDT 2024. Contains 373102 sequences. (Running on oeis4.)