login
A166010
a(n) = prime(n)^2-4.
5
0, 5, 21, 45, 117, 165, 285, 357, 525, 837, 957, 1365, 1677, 1845, 2205, 2805, 3477, 3717, 4485, 5037, 5325, 6237, 6885, 7917, 9405, 10197, 10605, 11445, 11877, 12765, 16125, 17157, 18765, 19317, 22197, 22797, 24645, 26565, 27885, 29925, 32037
OFFSET
1,2
COMMENTS
Least common multiple of prime(n)-2 and prime(n)+2.
LINKS
FORMULA
a(n) = A001248(n)-4 = A040976(n)*A052147(n). [Bruno Berselli, Apr 17 2012]
MATHEMATICA
f[n_]:=LCM[n-2, n+2]; lst={}; Do[p=Prime[n]; AppendTo[lst, f[p]], {n, 5!}]; lst
Prime[Range[5!]]^2 - 4 (* Zak Seidov, Apr 17 2012 *)
PROG
(Magma) [NthPrime(n)^2-4: n in [1..41]]; // Bruno Berselli, Apr 17 2012
(PARI) a(n)=prime(n)^2-4 \\ Charles R Greathouse IV, Apr 17 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Definition rewritten by Bruno Berselli, Apr 17 2012
STATUS
approved