OFFSET
1,2
COMMENTS
In other words, numbers n such that A015518(n-1) is divisible by n.
This sequence generates prime numbers except 2 and 3.
The first few composite terms in this sequence are 91, 121, 671, 703, 949. Note that they are pseudoprimes to base 3.
Also, numbers k such that 3^(k-1) mod (4*k) = 1. In the first million terms only 908 terms are nonprimes. - David A. Corneth, Oct 02 2020
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000
EXAMPLE
5 is a term because round(3^5/12) = 20 is divisible by 5.
6 is not a term because round(3^6/12) = 61 which is not divisible by 6. - David A. Corneth, Oct 02 2020
MATHEMATICA
Select[Range@ 308, Divisible[Round[3^#/12], #] &] (* Michael De Vlieger, Mar 31 2016 *)
PROG
(PARI) f(n) = round(3^n/12);
for(n=1, 1e3, if(f(n) % n == 0, print1(n, ", ")));
(PARI) is(n) = lift(Mod(3, 4*n)^(n-1))==1 \\ David A. Corneth, Oct 02 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Altug Alkan, Mar 31 2016
STATUS
approved