1,4

Useful for computing A232749.

Table of n, a(n) for n=1..68.

Index entries for Hofstadter-type sequences

a(1)=0, and for n>1, a(n) = A232748(n-1) + (1-(A232746(n)-A232746(n-1))).

(Scheme, with memoization macro definec from Antti Karttunen's IntSeq-library)

(definec (A232748 n) (cond ((< n 2) (- n 1)) (else (+ (A232748 (- n 1)) (- 1 (- (A232746 n) (A232746 (- n 1))))))))

Cf. A030124, A232746, A232749.

Sequence in context: A303787 A090223 A171974 * A308936 A187737 A109401

Adjacent sequences: A232745 A232746 A232747 * A232749 A232750 A232751

nonn

Antti Karttunen, Nov 30 2013

approved