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!)
A306190 a(n) = p^2 - p - 1 where p = prime(n), the n-th prime. 2
1, 5, 19, 41, 109, 155, 271, 341, 505, 811, 929, 1331, 1639, 1805, 2161, 2755, 3421, 3659, 4421, 4969, 5255, 6161, 6805, 7831, 9311, 10099, 10505, 11341, 11771, 12655, 16001, 17029, 18631, 19181, 22051, 22649, 24491, 26405, 27721, 29755, 31861, 32579, 36289 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Terms are divisible by 5 iff p is of the form 10*m + 3 (A030431).
LINKS
FORMULA
a(n) = A036689(n) - 1.
a(n) = A036690(n) - A072055(n).
a(n) = A060800(n) - A089241(n).
From Amiram Eldar, Nov 07 2022: (Start)
Product_{n>=1} (1 + 1/a(n)) = A065488.
Product_{n>=2} (1 - 1/a(n)) = A065479. (End)
EXAMPLE
a(3) = 19 because 5^2 - 5 - 1 = 19.
MAPLE
map(p -> p^2-p-1, [seq(ithprime(i), i=1..100)]); # Robert Israel, Mar 11 2019
MATHEMATICA
Table[Prime[n]^2-Prime[n]-1, {n, 1, 100}] (* Jinyuan Wang, Feb 02 2019 *)
PROG
(PARI) a(n) = {p=prime(n); p^2-p-1; } \\ Jinyuan Wang, Feb 02 2019
CROSSREFS
Supersequence of A091568.
Subsequence of A028387 or A165900.
A039914 is an essentially identical sequence.
Sequence in context: A155737 A100572 A119534 * A033622 A091568 A147307
KEYWORD
nonn
AUTHOR
Kritsada Moomuang, Jan 28 2019
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 08:33 EDT 2024. Contains 371905 sequences. (Running on oeis4.)