OFFSET
1,1
COMMENTS
It appears that most of the terms of this sequence are primes. The composite terms are 35, 169, 385, 899, 961, 1121, ... (A319042).
The primes in the sequence give A001132 (primes == +-1 (mod 8)), since for primes p we have Pell(p) == (2/p) (mod p) where (2/p) is the Legendre symbol. - Jianing Song, Sep 10 2018
EXAMPLE
k = 7 is in the sequence since Pell(7) = 169 = 7 * 24 + 1 == 1 (mod 7).
k = 11 is not in the sequence: Pell(11) = 5741 = 11 * 522 - 1 !== 1 (mod 11).
k = 35 is in the sequence: Pell(35) = 8822750406821 = 35 * 252078583052 + 1 == 1 (mod 35).
MAPLE
isA319040 := k -> simplify(2^(k-1)*hypergeom([1-k/2, (1-k)/2], [1-k], -1)) mod k = 1: A319040List := b -> select(isA319040, [$1..b]):
A319040List(600); # Peter Luschny, Sep 09 2018
MATHEMATICA
Select[Range[500], Mod[Fibonacci[#, 2], #] == 1 &] (* Alonso del Arte, Sep 08 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon E. Schoenfield, Sep 08 2018
STATUS
approved