OFFSET
1,1
COMMENTS
If p is a prime, then A003500(p)==4 (mod p).
This sequence contains the composite integers for which the congruence holds.
The generalized Pell-Lucas sequences of integer parameters (a,b) defined by V(n+2)=a*V(n+1)-b*V(n) and V(0)=2, V(1)=a, satisfy the identity V(p)==a (mod p) whenever p is prime and b=-1,1.
For a=4, b=1, V(n)=A003500(n).
REFERENCES
D. Andrica, O. Bagdasar, Recurrent Sequences: Key Results, Applications and Problems. Springer (to appear, 2020).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (first 1000 odd terms from Chai Wah Wu)
D. Andrica and O. Bagdasar, On some new arithmetic properties of the generalized Lucas sequences, preprint for Mediterr. J. Math. 18, 47 (2021).
EXAMPLE
m=10 is the first composite integer for which A003500(m)==4 (mod m).
MATHEMATICA
Select[Range[3, 20000], CompositeQ[#] && Divisible[Round@LucasL[2#, Sqrt[2]] - 4, #] &] (* Amiram Eldar, Jun 18 2020 *)
PROG
(PARI) my(M=[1, 2; 1, 3]); forcomposite(m=5, 10^5, if(trace(Mod(M, m)^m)==4, print1(m, ", "))); \\ Joerg Arndt, Jun 18 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Ovidiu Bagdasar, Jun 17 2020
EXTENSIONS
More terms from Joerg Arndt, Jun 18 2020
STATUS
approved