|
|
A227480
|
|
Triangular numbers of the form p^2 - 1 where p is a prime.
|
|
0
|
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
EXAMPLE
|
139128 is both 527*528/2 and 373^2 - 1 (and 373 is prime).
|
|
MATHEMATICA
|
Select[Prime[Range[100000]]^2-1, OddQ[Sqrt[8#+1]]&] (* The program generates the first six terms of the sequence. *) (* Harvey P. Dale, Sep 17 2023 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|