A037168 a(n) = 2*prime(n) - 2.
2, 4, 8, 12, 20, 24, 32, 36, 44, 56, 60, 72, 80, 84, 92, 104, 116, 120, 132, 140, 144, 156, 164, 176, 192, 200, 204, 212, 216, 224, 252, 260, 272, 276, 296, 300, 312, 324, 332, 344, 356, 360, 380, 384, 392, 396, 420, 444, 452, 456
Offset: 1
Examples
a(3) = 8 since the third prime is 5 and 2 * 5 - 2 = 8.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 1..1000
- Barry Brent, On the constant terms of certain meromorphic modular forms for Hecke groups, arXiv:2212.12515 [math.NT], 2022.
- Barry Brent, On the Constant Terms of Certain Laurent Series, Preprints (2023) 2023061164.
Programs
-
Magma
[2*p-2: p in PrimesUpTo(300)]; // Vincenzo Librandi, Mar 19 2014
-
Mathematica
2Prime[Range[50]] - 2 (* Alonso del Arte, Jun 30 2013 *)
-
PARI
A037168 = n->prime(n)*2-2 \\ M. F. Hasler, Jun 29 2013
Formula
a(n) = 2 * prime(n) - 2 = 2 * phi(prime(n)). - Alonso del Arte, Jun 30 2013
a(n) = 2 * A006093(n). - Ray Chandler, Jun 30 2013
Extensions
Definition simplified and extended to n=1, following a suggestion from Alonso del Arte, by M. F. Hasler, Jun 29 2013
Comments