OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..1000 from Reinhard Zumkeller)
MATHEMATICA
Join[{1, 2}, Select[Range[700], PowerMod[2, #-1, #]==2&]] (* Harvey P. Dale, May 15 2015 *)
PROG
(Haskell)
import Data.List (elemIndices)
a192109 n = a192109_list !! (n-1)
a192109_list = map (+ 1) $ elemIndices 0 $ zipWith mod a000918_list [1..]
-- Reinhard Zumkeller, Apr 23 2013
(PARI) is(n)=Mod(2, n)^(n-1)==2 \\ Charles R Greathouse IV, Nov 04 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Max Alekseyev, Apr 22 2013
STATUS
approved