OFFSET
1,2
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..5000
EXAMPLE
70 in binary is 1000110. There is a run of one 1, followed by a run of three 0's, followed by a run of two 1's, followed finally by a run of one 0. And there are seven binary digits all together. Since 1, 3, 2, and 1 each are coprime to 7, then 70 is in the sequence.
MATHEMATICA
cpQ[n_]:=Module[{d=Length/@Split[IntegerDigits[n, 2]]}, And@@CoprimeQ[ d, Total[ d]]]; Select[Range[100], cpQ] (* Harvey P. Dale, Mar 25 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, May 07 2010
EXTENSIONS
More terms from Sean A. Irvine, Mar 02 2011
STATUS
approved