0,3

Antti Karttunen, Table of n, a(n) for n = 0..8649

a(0)=0 and in the later terms i occurs whenever A213729(i) differs from A213729(i-1).

(Scheme with Antti Karttunen's intseq-library): (define A218784 (MATCHING-POS 0 0 (lambda (i) (or (< i 1) (not (= (A213729 i) (A213729 (-1+ i))))))))

Cf. A213728, A213729, A218545, A218546, A218547. A218544(n)=a(n)+1.

Sequence in context: A306588 A219636 A047428 * A039066 A304800 A197911

Adjacent sequences: A218781 A218782 A218783 * A218785 A218786 A218787

nonn

Antti Karttunen, Nov 10 2012

approved