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”).

A181149
a(n) = prime(n)^3 + prime(n)^2 + prime(n).
3
14, 39, 155, 399, 1463, 2379, 5219, 7239, 12719, 25259, 30783, 52059, 70643, 81399, 106079, 151739, 208919, 230763, 305319, 363023, 394419, 499359, 578759, 712979, 922179, 1040603, 1103439, 1236599, 1307019
OFFSET
1,1
COMMENTS
a(n) is semiprime just when prime(n) is in A053182. - Charles R Greathouse IV, Apr 23 2022
LINKS
FORMULA
a(n) = A135178(n) + A000040(n). - Elmo R. Oliveira, Mar 22 2023
EXAMPLE
a(4)=399 because the 4th prime is 7, 7^3 = 343, 7^2 = 49, and 343 + 49 + 7 = 399.
MAPLE
A181149 := n -> map (p -> p^(3)+p^(2)+p, ithprime(n)):
seq (A181149(n), n=1..40);
MATHEMATICA
#^3+#^2+#&/@Prime[Range[30]] (* Harvey P. Dale, Aug 13 2013 *)
PROG
(Magma) [p^3+p^2+p: p in PrimesUpTo(500)] // Vincenzo Librandi, Jan 26 2011
(PARI) a(n, p=prime(n))=p^3+p^2+p \\ Charles R Greathouse IV, Apr 23 2022
CROSSREFS
Cf. p: A000040; p^2: A001248; p^3: A030078; p^2+p: A036690; p^3+p^2: A135178.
Sequence in context: A051866 A162266 A368717 * A019063 A101740 A069126
KEYWORD
nonn,easy
AUTHOR
Jani Melik, Jan 24 2011
STATUS
approved