OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..15498 (terms 1..138 from R. J. Mathar)
F. Richman, Primality testing with Fermat's little theorem
FORMULA
a(n) = n-th positive integer k(>1) such that 2^(k-1) = 1 (mod k) and 7^(k-1) = 1 (mod k).
EXAMPLE
a(1)=561 since it is the first positive integer k(>1) which satisfies 2^(k-1) = 1 (mod k) and 7^(k-1) = 1 (mod k).
PROG
(PARI) is(n)=!isprime(n)&&Mod(2, n)^(n-1)==1&&Mod(7, n)^(n-1)==1 \\ Charles R Greathouse IV, Apr 12 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Serhat Sevki Dincer (sevki(AT)ug.bilkent.edu.tr), May 05 2003
STATUS
approved