OFFSET
1,2
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
EXAMPLE
7 is in the sequence because phi(7) = 6, and 7 is the smallest n such that phi(n) = 6 (the sequence A000010 starts 1, 1, 2, 2, 4, 2, 6, ...).
MATHEMATICA
nn = 185; s = EulerPhi[Range[nn]]; Select[Range[nn], ! MemberQ[Take[s, # - 1], s[[#]]] &] (* T. D. Noe, Dec 17 2012 *)
PROG
(PARI) is_a210719(n) = {local(i, r, p); r=1; p=eulerphi(n); for(i=1, n-1, if(eulerphi(i)==p, r=0)); r} \\ Michael B. Porter, Dec 16 2012
(Haskell)
a210719 n = a210719_list !! (n-1)
a210719_list = f (zip [1..] a000010_list) [] where
f ((i, x):ixs) phis | x `elem` phis = f ixs phis
| otherwise = i : f ixs (x : phis)
-- Reinhard Zumkeller, Dec 18 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 16 2012
STATUS
approved