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!)
A106588 Difference between n-th prime squared and n-th perfect square. 2
3, 5, 16, 33, 96, 133, 240, 297, 448, 741, 840, 1225, 1512, 1653, 1984, 2553, 3192, 3397, 4128, 4641, 4888, 5757, 6360, 7345, 8784, 9525, 9880, 10665, 11040, 11869, 15168, 16137, 17680, 18165, 20976, 21505, 23280, 25125, 26368, 28329, 30360 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = prime(n)^2 - n^2.
EXAMPLE
a(5) = 96 because 121 (fifth prime^2) - 25 (fifth square) = 96.
MATHEMATICA
Table[Prime[n]^2 - n^2, {n, 50}]
PROG
(Magma) [NthPrime(n)^2 - n^2: n in [1..50]]; // G. C. Greubel, Sep 07 2021
(Sage) [nth_prime(n)^2 - n^2 for n in (1..50)] # G. C. Greubel, Sep 07 2021
(PARI) a(n) = prime(n)^2 - n^2; \\ Michel Marcus, Sep 08 2021
CROSSREFS
Sequence in context: A295358 A369930 A077551 * A123785 A121646 A226205
KEYWORD
easy,nonn
AUTHOR
Alexandre Wajnberg, May 10 2005
EXTENSIONS
Extended by Ray Chandler, May 13 2005
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 23 23:26 EDT 2024. Contains 371917 sequences. (Running on oeis4.)