login
A266349
a(n) = 1 + A053644(n) - A004001(n+1) = 1 + A072376(n) - A266348(n).
2
1, 1, 1, 2, 1, 1, 1, 4, 3, 2, 2, 1, 1, 1, 1, 8, 7, 6, 5, 5, 4, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 16, 15, 14, 13, 12, 12, 11, 10, 9, 9, 8, 7, 7, 6, 6, 6, 5, 4, 4, 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 32, 31, 30, 29, 28, 27, 27, 26, 25, 24, 23, 23, 22, 21, 20, 20, 19, 18, 18, 17, 17, 17, 16, 15, 14, 14, 13, 12, 12, 11, 11, 11, 10
OFFSET
1,4
COMMENTS
Used in a recursive formula of A265754.
LINKS
FORMULA
a(n) = 1 + A053644(n) - A004001(n+1).
a(n) = 1 + A072376(n) - A266348(n).
MATHEMATICA
b[1] = 1; b[2] = 1; b[n_] := b[n] = b[b[n - 1]] + b[n - b[n - 1]]; Table[1 + 2^(Ceiling@ Log2[n + 1] - 1) - b[n + 1], {n, 96}] (* Michael De Vlieger, Jan 26 2016, after Robert G. Wilson v at A004001 *)
PROG
(Scheme, two variants)
(define (A266349 n) (+ 1 (- (A053644 n) (A004001 (+ 1 n)))))
(define (A266349 n) (+ 1 (- (A072376 n) (A266348 n))))
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 22 2016
STATUS
approved