login
Smallest number missing in the EKG sequence (A064413) after n terms.
1

%I #10 Jun 04 2022 21:36:13

%S 2,3,3,3,5,5,5,5,5,7,7,7,7,11,11,11,11,11,11,13,13,13,13,13,13,13,13,

%T 17,17,17,17,17,19,19,19,19,23,23,23,23,23,23,29,29,29,29,29,29,29,29,

%U 29,29,29,29,29,29,31,31,31,31,37,37,37,37,37,37,41,41,41,41,41,41,41,43

%N Smallest number missing in the EKG sequence (A064413) after n terms.

%C Lengths of runs gives A064425 prefixed by a 2.

%H <a href="/index/Ed#EKG">Index entries for sequences related to EKG sequence</a>

%e a(1)=2 because the least integer absent in EKG with 1 term, {1}, is 2;

%e a(2..4)=3 because the least integer absent in EKG with 4 terms, {1,2,4,6}, is 3;

%e a(5..9)=5 because the least integer absent in EKG with 9 terms, {1,2,4,6,3,9,12,8,10}, is 5;

%e a(10..13)=7 because the least integer absent in EKG with 15 terms, {1,2,4,6,3,9,12,8,10}, is 7.

%Y Cf. A064413, A064425.

%K nonn

%O 1,1

%A _Zak Seidov_, May 12 2008

%E Entries checked by _Jacques Tramu_ and _Vladeta Jovovic_.