OFFSET
1,1
COMMENTS
Next term is 123 or 125.
A sufficient condition for an odd number > 1 to belong to this sequence is that it not be congruent to 3, 15 or 27 mod 30.
EXAMPLE
3 is not in the sequence because 3*4^1 - 1 = 11 and 3*4^1 + 1 = 13 are a pair of twin primes.
5 is in the sequence because gcd(5 + 1, 4 - 1) = 3 is a trivial factor of 5*4^k + 1. Therefore, for all k >= 1 the numbers 5*4^k - 1 and 5*4^k + 1 do not form a twin prime pair.
PROG
(Magma) lst:=[]; for n in [3..121 by 2] do if not n mod 30 in {3, 15, 27} then Append(~lst, n); else k:=1; while not IsPrime(n*4^k+1) or not IsPrime(n*4^k-1) do k+:=1; end while; end if; end for; lst;
CROSSREFS
KEYWORD
nonn
AUTHOR
Arkadiusz Wesolowski, Feb 05 2017
STATUS
approved