OFFSET
2,1
COMMENTS
Write the natural numbers as an infinite sequence of digits, starting at the left; and count the contiguous non-2 digits separated by digits "2".
EXAMPLE
a(1)=2: the two digits ("0" and "1") before the first "2".
a(2)=12: the twelve digits 01(2)345678910111(2)1314... between the first "2" and the "2" of 12.
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Alexandre Wajnberg, Mar 28 2005
STATUS
approved