OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
For n = 2, 3*prime(2)^2 = 3*3^2 = 27.
MATHEMATICA
3 #^2 & /@ Prime[Range[40]]
3 Prime[Range[30]]^2 (* Vincenzo Librandi, Mar 27 2014 *)
PROG
(PARI) forprime (p=2, 100, print1(p^2*3, ", "))
(PARI) a(n) = 3*prime(n)^2; \\ Michel Marcus, Dec 27 2021
(Magma) [3*p^2: p in PrimesUpTo(200)]; // Vincenzo Librandi, Mar 27 2014
(Python)
from sympy import primerange
print([3*p**2 for p in primerange(1, 180)]) # Michael S. Branicky, Dec 27 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jon Perry, Jan 31 2003
EXTENSIONS
More terms from Harvey P. Dale, Feb 13 2003
Offset corrected by Vincenzo Librandi, Mar 27 2014
STATUS
approved