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.

A299795 Numbers of the form p*2^(p-1) where p is prime.

Original entry on oeis.org

4, 12, 80, 448, 11264, 53248, 1114112, 4980736, 96468992, 7784628224, 33285996544, 2542620639232, 45079976738816, 189115999977472, 3307330976350208, 238690780250636288, 17005592192950992896, 70328211781017665536, 4943727411754159833088, 83822005070936202543104
Offset: 1

Views

Author

Peter Luschny, Mar 03 2018

Keywords

Crossrefs

A subsequence of A001787 and A300332.

Programs

  • Magma
    [NthPrime(n)*2^(NthPrime(n) -1): n in [1..30]]; // G. C. Greubel, Mar 07 2018
  • Maple
    Primes := select(isprime, [$1..71]):
    seq(p*2^(p-1), p in Primes);
  • Mathematica
    Table[Prime[n]*2^(Prime[n] -1), {n,1,30}] (* G. C. Greubel, Mar 07 2018 *)
  • PARI
    a(n) = my(p = prime(n)); p*2^(p-1); \\ Michel Marcus, Mar 07 2018
    

Formula

From Michel Marcus, Mar 07 2018: (Start)
a(n) = prime(n)*2^(prime(n)-1).
a(n) = A000040(n)*A061286(n).
a(n) = A001787(A000040(n)).
(End)