login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A276374
Numbers n such that A240024(n) = A002808(n).
2
5, 6, 8, 13, 14, 24, 26, 31, 32, 34, 51, 54, 57, 62, 69, 82, 83, 93, 99, 113, 114, 119, 125, 132, 133, 139, 143, 145, 151, 161, 165, 181, 182, 192, 195, 212, 217, 219, 224, 233, 266, 282, 293, 295, 304, 311, 312, 318, 325, 338, 354, 364, 369, 375, 376, 382
OFFSET
1,1
MATHEMATICA
c = Select[Range@ 500, CompositeQ]; a = {1, 4}; Do[k = 6; While[Or[PrimeQ@ k, MemberQ[a, k], CoprimeQ[a[[i - 1]], k]], k++]; AppendTo[a, k], {i, 3, Length@ c}]; Flatten@ Position[Union /@ Transpose@ {a, c}, w_ /; Length@ w == 1] (* Michael De Vlieger, Sep 01 2016 *)
PROG
(Haskell)
a276374 n = a276374_list !! (n - 1)
a276374_list = filter (\i -> a240024 i == a002808 i) [1..]
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Kagey, Aug 31 2016
STATUS
approved