login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = (prime(n)^5 - prime(n))/10.
3

%I #15 Sep 08 2022 08:45:33

%S 3,24,312,1680,16104,37128,141984,247608,643632,2051112,2862912,

%T 6934392,11585616,14700840,22934496,41819544,71492424,84459624,

%U 135012504,180422928,207307152,307705632,393904056,558405936,858734016,1051010040

%N a(n) = (prime(n)^5 - prime(n))/10.

%H Vincenzo Librandi, <a href="/A138428/b138428.txt">Table of n, a(n) for n = 1..200</a>

%F a(n) = A138404(n)/10. - _R. J. Mathar_, Oct 15 2017

%t a = {}; Do[p = Prime[n]; AppendTo[a, (p^5 - p)/10], {n, 1, 50}]; a

%t (#^5-#)/10&/@Prime[Range[30]] (* _Harvey P. Dale_, Dec 18 2014 *)

%o (Magma) [(NthPrime((n))^5 - NthPrime((n)))/10: n in [1..30]]; // _Vincenzo Librandi_, Jun 18 2011

%o (PARI) forprime(p=2,1e3,print1((p^5-p)/10", ")) \\ _Charles R Greathouse IV_, Jul 15 2011

%K nonn,easy

%O 1,1

%A _Artur Jasinski_, Mar 19 2008