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

Every string of 2 consecutive base 4 digits contains exactly 2 distinct numbers.
8

%I #8 Nov 24 2018 15:19:31

%S 0,1,2,3,4,6,7,8,9,11,12,13,14,17,18,19,24,25,27,28,29,30,33,34,35,36,

%T 38,39,44,45,46,49,50,51,52,54,55,56,57,59,68,70,71,72,73,75,76,77,78,

%U 97,98,99,100,102,103,108,109,110,113,114,115

%N Every string of 2 consecutive base 4 digits contains exactly 2 distinct numbers.

%C No two consecutive base 4 digits are the same. - _Harvey P. Dale_, Nov 24 2018

%F A031942 UNION {0}. [From _R. J. Mathar_, Oct 20 2008]

%t Select[Range[0,120],SequenceCount[IntegerDigits[#,4],{x_,x_}]==0&] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Nov 24 2018 *)

%K nonn,base

%O 0,3

%A _Clark Kimberling_