OFFSET
1,1
COMMENTS
In other words, odd k>1 such that there are no bases 2 <= b <= k-2 in which k is a strong pseudoprime.
Odd k = 2*m+1 such that A071294(m) = 2.
According to the formula of A071294, k is a term if and only if k has a prime factor congruent to 3 modulo 4 and gcd(p-1,k-1) is a power of 2 for every prime factor p of k.
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
EXAMPLE
105 = 3*5*7 is a term since gcd(3-1,105-1) = 2, gcd(5-1,105-1) = 4, and gcd(7-1,105-1) = 2 are all powers of 2.
231 = 3*7*11 is not a term since gcd(11-1,231-1) = 10. Indeed, A071294((231-1)/2) = 10.
221 = 13*17 is not a term: even if gcd(13-1,221-1) = 4 and gcd(17-1,221-1) = 4, it does not have a prime factor congruent to 3 modulo 4. Indeed, A071294((221-1)/2) = 6.
PROG
(PARI) isA394177(k) = if(k%2==0, return(0)); my(f=factor(k), r=#f~, found_3_mod_4=0); for(i=1, r, if(!isprimepower(2*gcd(f[i, 1]-1, k-1)), return(0)); if(f[i, 1]%4==3, found_3_mod_4=1)); return(found_3_mod_4)
CROSSREFS
A394182, which is the sequence where "strong pseudoprime" is replaced by "Euler-Jacobi pseudoprime", is a supersequence.
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Mar 11 2026
STATUS
approved
