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!)
A005722 a(n) = (prime(n) - 1)^2. 6
1, 4, 16, 36, 100, 144, 256, 324, 484, 784, 900, 1296, 1600, 1764, 2116, 2704, 3364, 3600, 4356, 4900, 5184, 6084, 6724, 7744, 9216, 10000, 10404, 11236, 11664, 12544, 15876, 16900, 18496, 19044, 21904 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A192134(A095874(A001248(n))) - 1. - Reinhard Zumkeller, Jun 26 2011
a(n) = A006093(n)^2. - Wesley Ivan Hurt, Mar 27 2014
Sum_{n>=1} 1/a(n) = A086242. - Amiram Eldar, Nov 09 2020
From Amiram Eldar, Jan 23 2021: (Start)
Product_{n>=1} (1 + 1/a(n)) = A065485.
Product_{n>=2} (1 - 1/a(n)) = A005597. (End)
MAPLE
A005722:=n->(ithprime(n)-1)^2; seq(A005722(n), n=1..40); # Wesley Ivan Hurt, Mar 27 2014
MATHEMATICA
Table[(Prime[n] - 1)^2, {n, 40}] (* Vincenzo Librandi, Mar 27 2014 *)
PROG
(Magma) [(p-1)^2: p in PrimesUpTo(200)]; // Vincenzo Librandi, Mar 27 2014
(PARI) a(n) = (prime(n) - 1)^2; \\ Michel Marcus, Nov 09 2020
CROSSREFS
Sequence in context: A207069 A207436 A189145 * A075408 A206981 A318149
KEYWORD
nonn,easy
AUTHOR
Scorpion(AT)aol.com
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 18 03:01 EDT 2024. Contains 371767 sequences. (Running on oeis4.)