login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A078371 A265056 A049741 * A146846 A296200 A041825
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Definition rewritten by Bruno Berselli, Apr 17 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 00:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)