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!)
A349660 Numbers which are the sum of a prime and the square of the next prime. 4

%I #46 Mar 18 2022 14:32:02

%S 11,28,54,128,180,302,378,548,864,990,1400,1718,1890,2252,2856,3534,

%T 3780,4550,5108,5400,6314,6968,8004,9498,10298,10710,11552,11988,

%U 12878,16242,17288,18900,19458,22340,22950,24800,26726,28052,30096,32214,32940,36662

%N Numbers which are the sum of a prime and the square of the next prime.

%H Karl-Heinz Hofmann, <a href="/A349660/b349660.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = prime(n) + prime(n+1)^2.

%F a(n) = A000040(n) + A001248(n+1).

%F a(n) = A036690(n+1) - A001223(n).

%F a(n) = A001043(n) + A036689(n+1). - _Michel Marcus_, Nov 24 2021

%e a(2) = 3 + 5^2 = 28; a(3) = 5 + 7^2 = 54.

%t nterms=100;Table[Prime[n]+Prime[n+1]^2,{n,nterms}] (* _Paolo Xausa_, Nov 24 2021 *)

%o (Python) from sympy import sieve;

%o for n in range(1,10001): print(sieve[n] + sieve[n+1]**2)

%o (PARI) a(n) = prime(n) + prime(n+1)^2; \\ _Michel Marcus_, Nov 24 2021

%Y Cf. A140511, A000040, A001248, A036690, A001223, A001043, A036689, A349661, A124129.

%K nonn,easy

%O 1,1

%A _Karl-Heinz Hofmann_, Nov 24 2021

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 August 10 09:02 EDT 2024. Contains 375044 sequences. (Running on oeis4.)