cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A152117 a(n) = n*(n-th prime) + (n+1)*((n+1)-th prime).

Original entry on oeis.org

8, 21, 43, 83, 133, 197, 271, 359, 497, 631, 785, 977, 1135, 1307, 1553, 1851, 2101, 2371, 2693, 2953, 3271, 3647, 4045, 4561, 5051, 5407, 5777, 6157, 6551, 7327, 8129, 8713, 9247, 9941, 10651, 11245, 12003, 12707, 13433, 14259, 14941, 15815, 16705
Offset: 1

Views

Author

Klaus Brockhaus, Dec 10 2008

Keywords

Comments

a(n) = A033286(n) + A033286(n+1).

Examples

			5*(fifth prime) + 6*(sixth prime) = 5*11 + 6*13 = 55 + 78 = 133.
		

Crossrefs

Cf. A000040 (prime numbers), A033286 (n*(n-th prime)), A033287 (first differences of A033286), A119487 (primes in this sequence).

Programs

  • Magma
    [ n*NthPrime(n)+(n+1)*NthPrime(n+1): n in [1..43] ];
    
  • Mathematica
    Total/@Partition[Times@@@Table[{n,Prime[n]},{n,50}],2,1] (* Harvey P. Dale, Aug 13 2019 *)
  • PARI
    a(n) = n*prime(n) + (n+1)*prime(n+1); \\ Michel Marcus, Feb 05 2016