login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A267108 a(n) = A000120(A267111(n)). 5
1, 1, 2, 1, 2, 3, 2, 1, 2, 3, 4, 2, 3, 3, 2, 1, 2, 3, 4, 5, 2, 3, 4, 3, 4, 4, 2, 3, 3, 3, 2, 1, 2, 3, 4, 5, 6, 2, 3, 4, 5, 3, 4, 5, 4, 5, 5, 2, 3, 4, 3, 4, 4, 3, 4, 4, 4, 2, 3, 3, 3, 3, 2, 1, 2, 3, 4, 5, 6, 7, 2, 3, 4, 5, 6, 3, 4, 5, 6, 4, 5, 6, 5, 6, 6, 2, 3, 4, 5, 3, 4, 5, 4, 5, 5, 3, 4, 5, 4, 5, 5, 4, 5, 5, 5, 2, 3, 4, 3, 4, 4, 3, 4, 4, 4, 3, 4, 4, 4, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(1) = 1; for n > 1, if A265332(n) = 1 [when n is one of the terms of A088359], a(n) = 1 + a(A004001(n)-1), otherwise a(n) = a(n-A004001(n)).
a(n) = A000120(A267111(n)).
Other identities. For all n >= 1:
a(n) = A070939(n) - A267109(n).
PROG
(Scheme, with memoization-macro definec)
(definec (A267108 n) (cond ((<= n 1) n) ((= 1 (A265332 n)) (+ 1 (A267108 (- (A004001 n) 1)))) (else (A267108 (- n (A004001 n))))))
CROSSREFS
Sequence in context: A100661 A088696 A257249 * A004738 A043554 A005811
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 17:20 EDT 2024. Contains 372297 sequences. (Running on oeis4.)