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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A163913 Number of integers i in range [A000302(n-1)..A024036(n)] of permutation A163355/A163356 with A163915(i)=i, but not A163355(i)=i. 3
0, 0, 6, 3, 30, 27, 162, 171, 885, 987, 4839, 5502, 26436, 30216 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..13.

PROG

(MIT Scheme:)

(define (A163913 n) (let ((rp (range-of-n-th-quaternary-forest n))) (let loop ((s 0) (i (car rp))) (cond ((> i (cdr rp)) s) ((and (not (= (A163355 i) i)) (= (A163915 i) i)) (loop (1+ s) (1+ i))) (else (loop s (1+ i)))))))

(define (range-of-n-th-quaternary-forest n) (if (zero? n) (cons n n) (cons (A000302 (-1+ n)) (+ (A000302 (-1+ n)) (-1+ (A002001 n))))))

CROSSREFS

a(n) = 3*A163914(n). See also A163903.

Sequence in context: A286174 A282076 A282553 * A022666 A202363 A038257

Adjacent sequences:  A163910 A163911 A163912 * A163914 A163915 A163916

KEYWORD

nonn

AUTHOR

Antti Karttunen, Sep 19 2009

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 August 1 22:36 EDT 2021. Contains 346408 sequences. (Running on oeis4.)