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!)
A369394 AGM transform of the primes. 4
0, 1, 190, 29761, 9991618, 3349024561, 1787557230622, 1073002497284641, 913569251212186570, 1211439486817121619201, 1701996355944048723430570, 3350440495714062711027347281, 7769260076569386601943106748798, 18992268581018658446853739996365841, 54445901270324824915088660223022735282 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
See A368366 for the definition of the AGM transform.
LINKS
MATHEMATICA
A369394[n_] := With[{p = Prime[Range[n]]}, Total[p]^n - n^n*Apply[Times, p]];
Array[A369394, 15] (* Paolo Xausa, Jan 29 2024 *)
PROG
(PARI) a369394(n) = {my(v=primes(n)); vecsum(v)^n - n^n*vecprod(v)};
(Python)
from sympy import prime, primorial
def A369394(n): return sum(prime(i) for i in range(1, n+1))**n-n**n*primorial(n) # Chai Wah Wu, Jan 25 2024
CROSSREFS
Cf. A368366.
Sequence in context: A229903 A221386 A217225 * A207211 A207205 A206731
KEYWORD
nonn,easy
AUTHOR
Hugo Pfoertner, Jan 24 2024
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 May 15 10:44 EDT 2024. Contains 372540 sequences. (Running on oeis4.)