OFFSET
1,1
COMMENTS
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000 (terms 1..998 from Harvey P. Dale)
FORMULA
Equals {3} union A001132. - Jianing Song, Apr 21 2022
MATHEMATICA
Select[Prime[Range[150]], Divisible[6^((#-1)/2)-3^((#-1)/2), #]&] (* Harvey P. Dale, Dec 25 2021 *)
PROG
(PARI) \s = +-1, d=diff ptopm1d2(n, x, d, s) = { forprime(p=3, n, p2=(p-1)/2; y=x^p2 + s*(x-d)^p2; if(y%p==0, print1(p", "))) }
(PARI) isA097958(p) = (p==3) || (isprime(p) && kronecker(p, 2)==1) \\ Jianing Song, Apr 21 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Cino Hilliard, Sep 06 2004
EXTENSIONS
Definition corrected by Cino Hilliard, Nov 10 2008
Definition clarified by Harvey P. Dale, Dec 25 2021
Offset corrected by Jianing Song, Apr 21 2022
STATUS
approved