1,2

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

a(1) = 1; for n > 1, a(n) = A095901(n) + a(n-1).

Other identities. For all n >= 1:

a(A283481(n)) = n.

a(2^n) = A095902(n).

a[n_] := a[n] = If[n <= 2, 1, a[a[n - 1]] + a[n - a[n - 1]]]; Accumulate@ Table[Mod[a@ n, 2], {n, 92}] (* Michael De Vlieger, Mar 18 2017, after Robert G. Wilson v at A004001 *)

(Scheme, with memoization-macro definec)

(definec (A283480 n) (if (= 1 n) n (+ (A095901 n) (A283480 (- n 1)))))

;; Code for A004001 given under that entry.

The least monotonic left inverse of A283481.

Cf. A004001, A095901, A095902.

Sequence in context: A088676 A276797 A166872 * A189575 A216503 A216672

Adjacent sequences: A283477 A283478 A283479 * A283481 A283482 A283483

nonn

Antti Karttunen, Mar 18 2017

approved