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!)
A087316 a(n) = Sum_{k=1..n} prime(k)^prime(n-k+1). 10

%I #20 Apr 17 2021 08:16:53

%S 4,17,84,545,7824,281771,51540600,3347558057,1146374959980,

%T 288113965730819,529172633067826888,283453407513524913023,

%U 4122282265785671687518812,1586581830624893452605127040309,412109111737176949907195758658736

%N a(n) = Sum_{k=1..n} prime(k)^prime(n-k+1).

%H T. D. Noe, <a href="/A087316/b087316.txt">Table of n, a(n) for n=1..50</a>

%e Examples from _Jonathan Vos Post_, Jan 06 2006: (Start)

%e a(1) = 4 because prime(1)^prime(1) = 2^2 = 4.

%e a(2) = 17 because prime(1)^prime(2) + prime(2)^prime(1) = 2^3 + 3^2 = 17.

%e a(3) = 84 because 2^5 + 3^3 + 5^2 = 84.

%e a(4) = 545 = 2^7 + 3^5 + 5^3 + 7^2.

%e a(5) = 7824 = 2^11 + 3^7 + 5^5 + 7^3 + 11^2.

%e a(6) = 281771 = 2^13 + 3^11 + 5^7 + 7^5 + 11^3 + 13^2.

%e a(7) = 51540600 = 2^17 + 3^13 + 5^11 + 7^7 + 11^5 + 13^3 + 17^2.

%e a(8) = 3347558057 = 2^19 + 3^17 + 5^13 + 7^11 + 11^7 + 13^5 + 17^3 + 19^2.

%e a(9) = 1146374959980 = 2^23 + 3^19 + 5^17 + 7^13 + 11^11 + 13^7 + 17^5 + 19^3 + 23^2. (End)

%p a:=n->sum(ithprime(k)^ithprime(n-k+1),k=1..n): seq(a(n),n=1..16); # _Emeric Deutsch_, Apr 13 2005

%o (PARI) a(n) = sum(k=1, n, prime(k)^prime(n-k+1)); \\ _Michel Marcus_, Aug 20 2019

%o (Python)

%o from sympy import prime

%o def a(n): return sum(prime(k)**prime(n-k+1) for k in range(1, n+1))

%o print([a(n) for n in range(1, 16)]) # _Michael S. Branicky_, Apr 17 2021

%Y Cf. A000040, A005408, A087315, A113122, A113153, A113154.

%K nonn

%O 1,1

%A _Amarnath Murthy_, Sep 03 2003

%E More terms from _Sam Alexander_, Oct 20 2003

%E Further terms from _Emeric Deutsch_, Apr 13 2005

%E Edited by _N. J. A. Sloane_, Aug 19 2008 at the suggestion of _R. J. Mathar_

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 April 18 09:47 EDT 2024. Contains 371779 sequences. (Running on oeis4.)