login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A267109 a(n) = A080791(A267111(n)). 5
0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 0, 2, 1, 1, 2, 4, 3, 2, 1, 0, 3, 2, 1, 2, 1, 1, 3, 2, 2, 2, 3, 5, 4, 3, 2, 1, 0, 4, 3, 2, 1, 3, 2, 1, 2, 1, 1, 4, 3, 2, 3, 2, 2, 3, 2, 2, 2, 4, 3, 3, 3, 3, 4, 6, 5, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 4, 3, 2, 1, 3, 2, 1, 2, 1, 1, 5, 4, 3, 2, 4, 3, 2, 3, 2, 2, 4, 3, 2, 3, 2, 2, 3, 2, 2, 2, 5, 4, 3, 4, 3, 3, 4, 3, 3, 3, 4, 3, 3, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,4

LINKS

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

FORMULA

a(1) = 0; for n > 1, if A265332(n) = 1 [when n is one of the terms of A088359], a(n) =  a(A004001(n)-1), otherwise 1 + a(n) = a(n-A004001(n)).

a(n) = A080791(A267111(n)).

Other identities. For all n >= 1:

a(n) = A070939(n) - A267108(n).

PROG

(Scheme, with memoization-macro definec)

(definec (A267109 n) (cond ((<= n 1) 0) ((= 1 (A265332 n)) (A267109 (- (A004001 n) 1))) (else (+ 1 (A267109 (- n (A004001 n)))))))

CROSSREFS

Cf. A004001, A070939, A080791, A088359, A265332, A267108, A267110, A267111.

Sequence in context: A332670 A118344 A119270 * A175804 A241063 A340251

Adjacent sequences:  A267106 A267107 A267108 * A267110 A267111 A267112

KEYWORD

nonn

AUTHOR

Antti Karttunen, Jan 16 2016

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 19 15:46 EST 2021. Contains 340270 sequences. (Running on oeis4.)