1,4

Antti Karttunen, Table of n, a(n) for n = 1..10001

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

a(n) = n - A244988(n).

For all n >= 1, a(A244991(n)) = n. [This works as an inverse function for the injection A244991].

(definec (A244989 n) (if (<= n 1) 0 (+ (A244992 n) (A244989 (-1+ n)))))

Cf. A244988, A244991, A244992, A244321.

Sequence in context: A218447 A305845 A120565 * A296021 A267097 A194198

Adjacent sequences: A244986 A244987 A244988 * A244990 A244991 A244992

nonn

Antti Karttunen, Jul 22 2014

approved