OFFSET
1,2
COMMENTS
Terms are divisible by 5 iff p is of the form 10*m + 3 (A030431).
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = A036689(n) - 1.
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
KEYWORD
nonn
AUTHOR
Kritsada Moomuang, Jan 28 2019
STATUS
approved