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”).

Numbers n such that A240024(n) = A002808(n).
2

%I #18 Sep 10 2016 16:25:14

%S 5,6,8,13,14,24,26,31,32,34,51,54,57,62,69,82,83,93,99,113,114,119,

%T 125,132,133,139,143,145,151,161,165,181,182,192,195,212,217,219,224,

%U 233,266,282,293,295,304,311,312,318,325,338,354,364,369,375,376,382

%N Numbers n such that A240024(n) = A002808(n).

%H Peter Kagey, <a href="/A276374/b276374.txt">Table of n, a(n) for n = 1..10000</a>

%t 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 *)

%o (Haskell)

%o a276374 n = a276374_list !! (n - 1)

%o a276374_list = filter (\i -> a240024 i == a002808 i) [1..]

%Y Cf. A002808, A240024, A276375.

%K nonn

%O 1,1

%A _Peter Kagey_, Aug 31 2016